List Info

Thread: Errors in DeployTemplate code




Errors in DeployTemplate code
country flaguser name
United States
2007-09-07 11:21:02
I just cut-and-pasted the code from the cpdeploy.py sample
in
http://cherr
ypy.org/wiki/DeployTemplate. I presume it's been edited
a
couple of times, and the result doesn't actually run. I
don't think I
can login to the Wiki, so I'll just point out here that the
"root"
referred to a couple of times isn't defined. Probably it
should be
defined as root = Root () or simply replaced by Root ()
where it
occurs. In addition, os needs to be imported as it's used to
construct
the absolute filename.

TJG


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Errors in DeployTemplate code
country flaguser name
United States
2007-09-07 14:25:58

Tim Golden wrote:
> I just cut-and-pasted the code from the cpdeploy.py
> sample in http://cherrypy.org/wiki/DeployTemplate.
> I presume it's been edited a couple of times, and
> the result doesn't actually run. I don't think I
> can login to the Wiki, so I'll just point out here
>; that the "root" referred to a couple of times isn't
> defined. Probably it should be defined as root =
> Root() or simply replaced by Root() where it occurs.
> In addition, os needs to be imported as it's used
>; to construct the absolute filename.

Thanks! Fixed.


Robert Brewer
fumanchuaminus.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )