[TurboGears] validators.DateConverter() want self.assert_string ?

2005-10-07 Thread [EMAIL PROTECTED]
I attempt to use this validator but got the following error : 2005/10/07 13:59:34 HTTP INFO 192.168.0.14 - GET /user/access_log?frdate=2005%2F10%2F7todate=2005%2F10%2F8active=1 HTTP/1.1 2005/10/07 13:59:34 INFO Traceback (most recent

[TurboGears] Re: dynamic layouts in kid ?

2005-10-07 Thread forgems
Ok, i made it working, but now my session data dissapears after first response, and i have to login again if i wan't to see another page

[TurboGears] 0.8a1 incompatible with formencode 0.23dev ?

2005-10-07 Thread [EMAIL PROTECTED]
== 2005/10/07 16:44:22 INFO Traceback (most recent call last): File /home/gary/lib/python2.4/site-packages/CherryPy-2.1.0_rc1-py2.4.egg/cherrypy/_cphttptools.py, line 272, in run main() File

[TurboGears] How does the current validator mechanism works ?

2005-10-07 Thread [EMAIL PROTECTED]
I begin to start using the validator and got confused of what is the design philosophy behind it. 1. There is an instance method validator_error that would be called if exist otherwise it would raise another exception. I believe this has to be mentioned in the documentation as otherwise, this

[TurboGears] Re: PATCH - Add Authorization and fix for Opera JSON

2005-10-07 Thread Krys Wilken
Hmm... I haven't started using Ajax in TG yet, so I had not thought of that. Since I am planning on using ajax, I had better figure out what I am going to do. :-) Thanks much. [EMAIL PROTECTED] wrote: I use the same approach(decorator on selectioned url links). The login form is just a

[TurboGears] Re: Quickstart problems -newbie

2005-10-07 Thread Krys Wilken
Heh. I probably skipped that part since I already had python installed. :-) Krys Kevin Dangoor wrote: On 10/5/05, Krys Wilken [EMAIL PROTECTED] wrote: I know that ActivePython puts the python folder in the path, but not the scripts folder. It also sets up an association for .py files.

[TurboGears] guess what the #1 browser at turbogears.org is

2005-10-07 Thread Kevin Dangoor
I've got a demo copy of Sawmill that I'm trying out and it had something interesting to say... Apparently, the #1 browser at turbogears.org is... Python-urllib 2.4! Other than possibly the cheeseshop, turbogears.org is probably the only site that can make that claim :) Kevin -- Kevin Dangoor

[TurboGears] Re: Problem with Tutorial

2005-10-07 Thread Kevin Dangoor
You need docutils if you want to do that. easy_install docutils Kevin On 10/7/05, Tom Smith [EMAIL PROTECTED] wrote: when i added ... from docutils.core import publish_parts I got.. Tom-Smiths-Computer-2:~/wiki20 tomsmith$ python wiki20-start.py Traceback (most recent call last):

[TurboGears] Non-DB SQLObject instances

2005-10-07 Thread Jeff Watkins
I've been taking on the challenge of building an identity management and access control framework for TurboGears. One of the features I really liked about working with BroadVision's Web framework (back in 2001) was the notion of an anonymous visitor.During the course of a visit, you could collect

[TurboGears] Re: Problem with Tutorial

2005-10-07 Thread Lee McFadden
I came across a few dependancy issues like this during the 20 minute wiki demo. Could these dependancies be documented in the installation or packaged with the rest of the install?

[TurboGears] Strange behavior with non-UTF8 encondings

2005-10-07 Thread David Guaraglia
I'm having some problems when exporting my XHTML files to Kid. I create the pages using Dreamweaver MX, then save them as XHTML and modify them to be a Kid's template. Now to the problem: the pages need to be exported as UTF8 *and* the entities have to be replaced by UTF8 equivalents, or Kid

[TurboGears] noob -- Page.byPagename()?

2005-10-07 Thread Chris Curvey
Is the definition of byPagename() missing from the current tutorial? I'm at the bottom of page 2 of the 20-minute wiki, and I'm getting complaints that Page.byPagename doesn't exist. (Which seems right, as *I* sure didn't write it :)

[TurboGears] Re: noob -- Page.byPagename()?

2005-10-07 Thread Lethalman
On 10/7/05, Chris Curvey [EMAIL PROTECTED] wrote: Is the definition of byPagename() missing from the current tutorial? I'm at the bottom of page 2 of the 20-minute wiki, and I'm getting complaints that Page.byPagename doesn't exist. (Which seems right, as *I* sure didn't write it :)

[TurboGears] Re: Problem with Tutorial

2005-10-07 Thread Ramon Hernandez
On Oct 7, 2005, at 8:33 AM, Tom Smith wrote: Tom-Smiths-Computer-2:~/wiki20 tomsmith$ python wiki20-start.py Traceback (most recent call last): File wiki20-start.py, line 15, in ? from wiki20.controllers import Root File /Users/tomsmith/wiki20/wiki20/controllers.py, line 3, in ?

[TurboGears] Re: Using a different ORM with TG

2005-10-07 Thread leo
Thanks guys for the quick replies - Its not that SQLObject isn't capable, its that our data model isn't a typical data model. We have a data broker type situation, where a centralized server distributes data to all the clients. Typically, this server will go to a database and get the

[TurboGears] Re: Using a different ORM with TG

2005-10-07 Thread [EMAIL PROTECTED]
I don't think Turbogears need SQLObject at all. model.py is just a particular implementation example, you can write your own .py and name it(structure the whole thing) whatever you want. For your case, it seems that you want the feature of SQLObject but the real data backend is not the supported

[TurboGears] Re: Does tg-admin create directory static?

2005-10-07 Thread xio
Still the same with r43: C:\Devtg-admin quickstart Enter project name: test Enter package name [test]: test generating test\dev.cfg generating test\prod.cfg generating test\test-start.py generating test\setup.py generating test\test\controllers.py generating test\test\model.py generating

[TurboGears] Re: Does tg-admin create directory static?

2005-10-07 Thread xio
Ok, I haven't tried to investigate why, but it works fine when run in trunk directory: C:\svn\turbogears\trunktg-admin quickstart Enter project name: test Enter package name [test]: test generating test\dev.cfg generating test\prod.cfg generating test\test-start.py generating test\setup.py

[TurboGears] Classes instead of functions

2005-10-07 Thread Lethalman
class Root: class index(Page): template = blabla content_type = text/html validators = def render(self): return dict(bla) This would be easier to handle with a: class Page: def __init__(self, bla): ... init_instance_variables ... instead of decorators.

[TurboGears] Building from subversion

2005-10-07 Thread Bill Woodward
Good morning, I've downloaded the latest (I think) version of TurboGears via subversion (svn co http://www.turbogears.org/svn/turbogears/trunk turbogears), and I go to build the development version, as detailed on http://www.turbogears.org/community/contributing.html, by running: python

[TurboGears] Re: Building from subversion

2005-10-07 Thread [EMAIL PROTECTED]
first, you need to follow exactly the installation instruction on TurboGears(to kick start a base, could be outdated but doesn't matter). Then you can do your svn upgrade as described above, including any new Kid, Cherrypy, SQLObject etc. TurboGears has a pretty long list of dependencies and

[TurboGears] TurboGears.egg-info in repository?

2005-10-07 Thread Fabian Neumann
Hi Kevin, is it intended to have the TurboGears.egg-info/ directory in svn? It always conflicts with my own that is created by python setup.py develop. Cheers, Fabian.

[TurboGears] Re: Building from subversion

2005-10-07 Thread Bill Woodward
On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: first, you need to follow exactly the installation instruction on TurboGears(to kick start a base, could be outdated but doesn't matter). Then you can do your svn upgrade as described above, including any new Kid, Cherrypy, SQLObject

[TurboGears] Re: turbogears-admin shell initial data file

2005-10-07 Thread Fabian Neumann
Krys Wilken wrote: I think both ideas are of value. An exec command for running scripts, and a special module-level function in model.py that is run automatically by sql create. I might like it, too. What do you think of this: Index: turbogears/quickstart/projectname/model.py.source

[TurboGears] Re: How does the current validator mechanism works ?

2005-10-07 Thread [EMAIL PROTECTED]
To me it seems like it should be an error if there's no validation_error method and any validators are given. This way the error is caught early during development. Yes, but there are sometimes(many times I would say) soft-errors that don't need this kind of handling. A typical case would be

[TurboGears] Re: TurboGears.egg-info in repository?

2005-10-07 Thread Kevin Dangoor
Hi Fabian, I had thought at one point that I saw Phillip advise to put egg-info in svn. I don't see that now... *some* egg-info entries could be manually maintained (eg sqlobject.txt that is in new quickstarted projects). That's not the case now, though, for TG. I left the directory there but

[TurboGears] Re: Does tg-admin create directory static?

2005-10-07 Thread Kevin Dangoor
I see the problem now. It works in develop mode, but not installed. It looks like the static directories do not get installed. Kevin On 10/7/05, xio [EMAIL PROTECTED] wrote: Ok, I haven't tried to investigate why, but it works fine when run in trunk directory:

[TurboGears] Re: How does the current validator mechanism works ?

2005-10-07 Thread Ian Bicking
[EMAIL PROTECTED] wrote: I begin to start using the validator and got confused of what is the design philosophy behind it. 1. There is an instance method validator_error that would be called if exist otherwise it would raise another exception. I believe this has to be mentioned in the

[TurboGears] Re: [SQLObject] Non-DB SQLObject instances

2005-10-07 Thread Ian Bicking
Jeff Watkins wrote: I've been taking on the challenge of building an identity management and access control framework for TurboGears. One of the features I really liked about working with BroadVision's Web framework (back in 2001) was the notion of an anonymous visitor. During the course of

[TurboGears] Re: Does tg-admin create directory static?

2005-10-07 Thread Kevin Dangoor
OK, this is fixed in r46. Kevin On 10/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote: I see the problem now. It works in develop mode, but not installed. It looks like the static directories do not get installed. Kevin On 10/7/05, xio [EMAIL PROTECTED] wrote: Ok, I haven't tried to

[TurboGears] turbogears.flash() only displays every other call

2005-10-07 Thread Tim Lesher
[Env: Turbogears 0.5, running on Windows XP] I have a template containing a form, which posts back to the same URL. My controller looks like this: @turbogears.expose(html=yadda) def showStuff(self, **kwargs): if 'submit' in kwargs: # [ Update the db ] turbogears.flash('DB

[TurboGears] Re: eric3/open source ide with turbogears

2005-10-07 Thread David Guaraglia
[EMAIL PROTECTED] wrote: Friends: Now , with turbogears, I am using a text editor as an ide. Before starting my first turbogear project, I was planning on moving to the eric3 ide for my python coding. 1)Are any of you using an ide for your turbogears projects, and how is it going? 2)Many

[TurboGears] delayed responses

2005-10-07 Thread Kevin Dangoor
There are a number of messages that have been sent recently that I'd like to respond to and intend to... but between the TurboGears 0.8 release and tomorrow's sprint, I just don't have the time right now to respond to them all. So for everyone who has sent all of that interesting mail today,

[TurboGears] Re: Building from subversion

2005-10-07 Thread Bill Woodward
On 10/7/05, David Stanek [EMAIL PROTECTED] wrote: That is probably better than what I had done. I just grabbed the eggs from the TurboGears download page and since I am on Linux I built a cElementTree egg. Then I wrote a little shell script to set my PATH and PYTHONPATH. Well, I'm still

[TurboGears] JSON serialization with RuleDispatch

2005-10-07 Thread Ian Bicking
I wanted to try RuleDispatch out, so I played around with a very little JSON serialization routine, since that was brought up here before. Doesn't actually create JSON, just JSONable objects. You install RuleDispatch with: easy_install -Zf http://peak.telecommunity.com/snapshots/

[TurboGears] Re: Building from subversion

2005-10-07 Thread Bill Woodward
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: ValueError: (Missing 'Version:' header and/or PKG-INFO file, TurboGears [unknown version] (c:\documents and settings\william_woodward\turbogears)) Now, I could swear that I did not get this error this morning. Perhaps something was removed

[TurboGears] Re: JSON serialization with RuleDispatch

2005-10-07 Thread Kevin Dangoor
I use generic functions for scoring in Zesty News. They are very spiffy, and I definitely owe it to Phillip for introducing them to me. (And giving me the code to use them!) Thanks for putting this out there Ian! You rock! Kevin On 10/7/05, Ian Bicking [EMAIL PROTECTED] wrote: I wanted to

[TurboGears] Re: Building from subversion

2005-10-07 Thread Kevin Dangoor
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: ValueError: (Missing 'Version:' header and/or PKG-INFO file, TurboGears [unknown version] (c:\documents and settings\william_woodward\turbogears)) Now, I could swear that I did not

[TurboGears] Re: PATCH - Add Authorization and fix for Opera JSON

2005-10-07 Thread [EMAIL PROTECTED]
Keep in mind that if TurboGears is in control of both the authentication/authorization *and* the choice of HTML vs. JSON, that means that making an AJAX request that gets JSON back can automatically trigger a JSON response that represents an authentication failure. This is the nice thing about

[TurboGears] Re: Building from subversion

2005-10-07 Thread Bill Woodward
On 10/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote: On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: So, it looks like maybe the PKG-INFO file, plus several other files, were removed form the TurboGears.egg-info/ directory in revision 44. The comments in the rev show that it was

[TurboGears] Re: Building from subversion

2005-10-07 Thread Bill Woodward
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: Good morning, I've downloaded the latest (I think) version of TurboGears via subversion (svn co http://www.turbogears.org/svn/turbogears/trunk turbogears), and I go to build the development version, as detailed on

[TurboGears] Re: TurboGears.egg-info in repository?

2005-10-07 Thread Bill Woodward
On 10/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote: Hi Fabian, I had thought at one point that I saw Phillip advise to put egg-info in svn. I don't see that now... *some* egg-info entries could be manually maintained (eg sqlobject.txt that is in new quickstarted projects). That's not the

[TurboGears] Re: Building from subversion

2005-10-07 Thread Kevin Dangoor
On 10/7/05, Bill Woodward [EMAIL PROTECTED] wrote: Whew! All done! Thanks to everyone for all the help. I'm sure some portion of that can be automated :) Have a good time in Germany! Kevin -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company:

[TurboGears] Re: PATCH - Add Authorization and fix for Opera JSON

2005-10-07 Thread Kevin Dangoor
On 10/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Keep in mind that if TurboGears is in control of both the authentication/authorization *and* the choice of HTML vs. JSON, that means that making an AJAX request that gets JSON back can automatically trigger a JSON response that