schooltoolers team mailing list archive
-
schooltoolers team
-
Mailing list archive
-
Message #00012
Re: grok and schooltool
Ooops! This:
> import grokcore.view
>
> class MyView(grokcore.View):
> ...
would have to be:
import grokcore.view
class MyView(grokcore.view.View):
...
Sorry :D
Douglas
"... allí es cuando te das cuenta que las cosas malas pueden resultar bastante buenas..." - Lionel Messi
Por favor, evite enviarme adjuntos de Word, Excel o PowerPoint.
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
--- On Wed, 4/15/09, Douglas Cerna <douglascerna@xxxxxxxxx> wrote:
> From: Douglas Cerna <douglascerna@xxxxxxxxx>
> Subject: Re: [Schooltoolers] grok and schooltool
> To: thomas.richter@xxxxxxx
> Cc: schooltoolers@xxxxxxxxxxxxxxxxxxx
> Date: Wednesday, April 15, 2009, 11:53 AM
> Thomas:
>
> What we did was to use the grokcore.* family packages, not
> the grok package itself, to get rid of some zcml in those
> packages (schooltool.contact and schooltool.basicperson)
>
> If you check grok's configuration, you will see that
> its newer versions depends on the grokcore.* family. Those
> packages have been extracted from original grok in order to
> make them usable by other Zope 3 projects (like SchoolTool!)
>
> For example if you're creating a view in grok and do
> something like:
>
> import grok
>
> class MyView(grok.View):
> ...
>
> you can also do it in grok (and maybe other Zope 3 project)
> like:
>
> import grokcore.view
>
> class MyView(grokcore.View):
> ...
>
> So, in SchoolTool we include grokcore.* packages
> configuration (in setup.py and configure.zcml) and we're
> able to use their functionality. We still have to use zcml
> to configure class security though.
>
> I hope this clarifies a little what has been done. If you
> have more questions I gladly answer what I can :)
>
> Regards, Douglas
>
> "... allí es cuando te das cuenta que las cosas
> malas pueden resultar bastante buenas..." - Lionel
> Messi
>
> Por favor, evite enviarme adjuntos de Word, Excel o
> PowerPoint.
> Vea
> http://www.gnu.org/philosophy/no-word-attachments.es.html
>
>
> --- On Wed, 4/15/09, Thomas Richter
> <thomas.richter@xxxxxxx> wrote:
>
> > From: Thomas Richter <thomas.richter@xxxxxxx>
> > Subject: [Schooltoolers] grok and schooltool
> > To: schooltoolers@xxxxxxxxxxxxxxxxxxx
> > Date: Wednesday, April 15, 2009, 11:39 AM
> > Hi everybody,
> >
> > I just installed grok 1.0a3 via grokproject and asking
> > myself how to
> > start using grok for extending schooltool. As far as
> > researched the irc
> > protocolls of #schooltool I found some hint for a
> > "grokked" st-module I
> > found the schooltool_grokking_contacts. There I found
> the
> > grokcore eggs
> > but no grok-egg. Just include grok inside the
> > install_requires= in
> > setup.py doen't work, may be because the grok1.0a3
> is
> > for python 2.5 and
> > not for 2.4 so came to an end for me.
> >
> > Can somebody help me to get all the grok running
> inside
> > schooltool?
> >
> > Thomas
> > _______________________________________________
> > Mailing list: https://launchpad.net/~schooltoolers
> > Post to : schooltoolers@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~schooltoolers
> > More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~schooltoolers
> Post to : schooltoolers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~schooltoolers
> More help : https://help.launchpad.net/ListHelp
References