[Cubicweb] NameError: name 'ENGINE' is not defined

Dhaval Sharma dhavalsharma at gmail.com
Sat Jul 18 16:28:26 CEST 2009


Yes , cubicweb.common is there but its not able to read ENGINE

ENGINE = TransformEngine()
ENGINE.add_transform(rest_to_html())
ENGINE.add_transform(html_to_html())

The above three lines in mtransform dont work and thus could be ENGINE is
not defined

On Sat, Jul 18, 2009 at 3:30 PM, <cubicweb-request at lists.cubicweb.org>wrote:

> Send Cubicweb mailing list submissions to
>        cubicweb at lists.cubicweb.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.cubicweb.org/mailman/listinfo/cubicweb
> or, via email, send a message with subject or body 'help' to
>        cubicweb-request at lists.cubicweb.org
>
> You can reach the person managing the list at
>        cubicweb-owner at lists.cubicweb.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cubicweb digest..."
>
>
> Today's Topics:
>
>   1. NameError: name 'ENGINE' is not defined (Dhaval Sharma)
>   2. Re: NameError: name 'ENGINE' is not defined (Aur?lien Camp?as)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 18 Jul 2009 02:29:45 +0530
> From: Dhaval Sharma <dhavalsharma at gmail.com>
> Subject: [Cubicweb] NameError: name 'ENGINE' is not defined
> To: cubicweb at lists.cubicweb.org
> Message-ID:
>        <c9ba346f0907171359p69d016d4y884f2d3d4eb800e3 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have created a clean mercurial setup in virtualenv and changed db to
> mysql
> in sources of app instance
>
> Now when I do
> cubicweb-ctl db-init myrose
>
> and get
>
> File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/entity.py", line 139,
> in <module>
>    class Entity(AppRsetObject, dict):
>  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/entity.py", line 470,
> in Entity
>    _engine=ENGINE):
> NameError: name 'ENGINE' is not defined
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090718/3a38174b/attachment.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 17 Jul 2009 23:45:23 +0200
> From: Aur?lien Camp?as <aurelien.campeas at free.fr>
> Subject: Re: [Cubicweb] NameError: name 'ENGINE' is not defined
> To: Dhaval Sharma <dhavalsharma at gmail.com>
> Cc: cubicweb at lists.cubicweb.org
> Message-ID: <4A60F0F3.8070008 at free.fr>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Le 17/07/09 22:59, Dhaval Sharma a ?crit :
> > I have created a clean mercurial setup in virtualenv and changed db to
> > mysql in sources of app instance
> >
> > Now when I do
> > cubicweb-ctl db-init myrose
> >
> > and get
> >
> > File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/entity.py", line
> > 139, in <module>
> >      class Entity(AppRsetObject, dict):
> >    File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/entity.py", line
> > 470, in Entity
> >      _engine=ENGINE):
> > NameError: name 'ENGINE' is not defined
>
> I guess the cubicweb-common package is missing. Can you check ?
>
>
> ------------------------------
>
> _______________________________________________
> Cubicweb mailing list
> Cubicweb at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/cubicweb
>
>
> End of Cubicweb Digest, Vol 5, Issue 10
> ***************************************
>



-- 
With Warm Regards,
Dhaval
http://dsteps.blogspot.com
http://www.linkedin.com/in/dhavalsharma
http://carpoolkaro.appspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090718/f72cf78d/attachment-0187.html>


More information about the Cubicweb mailing list