[TurboGears] Re: Can't get turbogears.scheduler to work. Please help.

2007-05-29 Thread Puck
Hi Chris, did you add tg.scheduler = True to your configuration? HTH, Puck On 28 Mai, 19:42, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to run a certain controller daily. At top of my controller file I imported the turbogears.scheduler and I added something like the following

[TurboGears] Re: starting independent batch job in turbogears.

2007-05-29 Thread uniblue
I'm getting a module not found error. and If I run 'tg-admin shell', I see that the package name exists as a key in the sys.modules dictionary. Hi sam, we got this same error yesterday while trying to do something different. What that error message means is that the specified location of a

[TurboGears] Re: turbogears stress tests - issues

2007-05-29 Thread uniblue
One final and, now probably the most important for us at the moment, is the QueuePool of SQLAlchemy. If 20+ simultaneous requests are sent to the server, we get the following error: for someone who might need the info, in the prod.cfg all you need to do is add the following lines:

[TurboGears] profiling / optimising KID

2007-05-29 Thread uniblue
Hi, does anyone know if there are any tools checking what section of a KID template takes a long time? thanks aldo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email

[TurboGears] Re: SQL without ORM's in TG

2007-05-29 Thread SamDonaldson
I wanted this too. It seems a bit too cumbersome to use sqlalchemy just to get some simple sql running. Instead of getting back a ResultProxy, I was hoping I could get back instances. Would you guys know how to do this? On May 28, 7:31 pm, Uwe C. Schroeder [EMAIL PROTECTED] wrote: Thanks,

[TurboGears] Re: SQL without ORM's in TG

2007-05-29 Thread Paul Johnston
Hi, I wanted this too. It seems a bit too cumbersome to use sqlalchemy just to get some simple sql running. Instead of getting back a ResultProxy, I was hoping I could get back instances. Would you guys know how to do this? Well, if you're using assignmapper, you do something like:

[TurboGears] identity working

2007-05-29 Thread Diarmuid
Guys, I cannot get identity to work at all really. I can specify that a class is protected, and the login screen is displayed. The login works and the username is displayed, but when I go off to another page, the login name disappears, and if I go to another protected page, the login page is

[TurboGears] Re: Database modules

2007-05-29 Thread Krys
HI there, You don't even need a blank sqlite db if you are not planing on using SO or SA. I am using TG without a DB in one app and I have used TG with just sql strings and the low level driver. Less fun, but very easy to do. As a tip, I might suggest becoming aware of the

[TurboGears] Problems installing TurboGears

2007-05-29 Thread chell
Hello, I'm running Mac OS X here. Since I already had easy_install, I just ran sudo easy_install \ --script-dir /usr/local/bin TurboGears. It didn't give me any error. But when I run tg-admin quickstart, I get the following error: ... import sqlobject ImportError: No module named sqlobject

[TurboGears] Re: Problems installing TurboGears

2007-05-29 Thread Christopher Arndt
chell schrieb: I'm running Mac OS X here. Since I already had easy_install, I just ran sudo easy_install \ --script-dir /usr/local/bin TurboGears. It didn't give me any error. But when I run tg-admin quickstart, I get the following error: import sqlobject ImportError: No module named

[TurboGears] Re: SQL without ORM's in TG

2007-05-29 Thread Krys
Hi Uwe, Something to consider is to use SqlAlchemy without the ORM stuff. SA supports working at the Table level and building SQL select statements as functions, instead of using raw SQL strings. This has the advantage of being SQLy, but keeps the database independence feature. You can use

[TurboGears] Re: Problems installing TurboGears

2007-05-29 Thread chell
I used the tgsetup.py script. Now everything works. Thank you! On 29 Mai, 13:35, Christopher Arndt [EMAIL PROTECTED] wrote: chell schrieb: I'm running Mac OS X here. Since I already had easy_install, I just ran sudo easy_install \ --script-dir /usr/local/bin TurboGears. It didn't give me

[TurboGears] Re: turbolucene source code.

2007-05-29 Thread Krys
Hi Sam, I am the author of TurboLucene. :) All the source is in the __init__.py. TL is still pretty young and evolving (albeit more slowly than I would like.) I do plan on breaking the out of __init__.py into separate modules. I also plan on providing some kind of full PyLucene access at

[TurboGears] Re: profiling / optimising KID

2007-05-29 Thread Krys
Hi uniblue, I'm not sure about profiling, but I do know this: 1) Genshi is supposed to be faster than Kid. 2) You can tell Kid (with an environment variable, I think) to not deleted the compiles .py versions of your templates. You could then just profile as normal and then manually map the

[TurboGears] Re: Database modules

2007-05-29 Thread johnbraduk
Thanks for that tip, it looks as if it will be easier than I thought to continue with the low level database routines that I know work with Firebird/ kinterbasdb. John On 29 May, 12:26, Krys [EMAIL PROTECTED] wrote: HI there, You don't even need a blank sqlite db if you are not planing on

[TurboGears] Re: in production config on Unix, edits to controllers.py don't take effect dynamically without restart

2007-05-29 Thread buffalob
On May 28, 10:30 pm, Dominique Eav [EMAIL PROTECTED] wrote: buffalob wrote: When in development config when running on my Windows laptop (using localhost in browswer), I enjoyed the convenience of TG dynamically accounting for each save of an edit to 'controllers.py'. snip I don't know

[TurboGears] Re: identity working

2007-05-29 Thread Diarmuid
Not Working even!!! On May 29, 12:03 pm, Diarmuid [EMAIL PROTECTED] wrote: Guys, I cannot get identity to work at all really. I can specify that a class is protected, and the login screen is displayed. The login works and the username is displayed, but when I go off to another page, the

[TurboGears] Re: tgcrud and session

2007-05-29 Thread anderbubble
Thanks. I wasn't using SQLAlchemy. Does tgcrud not support sqlobject? On May 22, 5:51 pm, Christopher Arndt [EMAIL PROTECTED] wrote: anderbubble schrieb: I just tried to use tgcrud for the first time, but the controller it created tried to import session from my model. What does this

[TurboGears] Re: in production config on Unix, edits to controllers.py don't take effect dynamically without restart

2007-05-29 Thread buffalob
Noah - thank you, yes the screen command is a very good suggestion. I did not know about it. For others needing to do a similar thing, after following Noah's suggestion for the screen python start- project.py and then control-A and d, the detached unix process keeps running after I exit to log

[TurboGears] Re: identity working

2007-05-29 Thread Patrick Lewis
A few things to check: 1- If you refresh the first protected page, does that work, or does it display the login screen again? 2- Is your browser recieving the 'tg-visit' cookie from the server? Is your browser saving that cookie? 3- Do you see that cookie value stored in the visitIdentity

[TurboGears] Re: in production config on Unix, edits to controllers.py don't take effect dynamically without restart

2007-05-29 Thread buffalob
Also when using screen to detach unix processes, another helpful thing is to type screen -list to verify whether or not your process is running. I realize this aspect wasn't directly TG-related, but if any novice unix users want their TG web app to keep running after logoff as I did, they might

[TurboGears] Calendar event planner examples?

2007-05-29 Thread Frumious
Is there an example of a calendar/event planner written in TG out there somewhere? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com

[TurboGears] Re: Database modules

2007-05-29 Thread Krys Wilken
On Tuesday 29 May 2007 10:31, johnbraduk wrote: Thanks for that tip, it looks as if it will be easier than I thought to continue with the low level database routines that I know work with Firebird/ kinterbasdb. John You are welcome. Though, if you ever feel so inclined, I'm sure helping

[TurboGears] Re: continue form validation inside controller AKA raise validators.Invalid() from inside a controller

2007-05-29 Thread aspineux
These excellent posts from Alberto Valverde in Need help understanding decorators explain a lot how @validate and @error_handling together http://groups.google.com/group/turbogears/browse_frm/thread/110eb08dd357b675/396ea9bc8a1d7d42 On 26 mai, 19:57, aspineux [EMAIL PROTECTED] wrote: On

[TurboGears] Re: in production config on Unix, edits to controllers.py don't take effect dynamically without restart

2007-05-29 Thread Kevin Horn
On 5/29/07, buffalob [EMAIL PROTECTED] wrote: (and my understanding is that TG running in dev config does not allow access via a real URL - only standalone localhost, correct?) AFAIK, this is not the case, but I could be wrong...though I have been able to access my TG apps in dev mode from

[TurboGears] Re: in production config on Unix, edits to controllers.py don't take effect dynamically without restart

2007-05-29 Thread Dominique Eav
buffalob wrote: Dom, thanks much for reply. The reason for having TG running in prod config even while still doing some developing on the unix server is that some of the use cases I'm working on involve some two-way interaction with with external web apps on other computers (and my

[TurboGears] Re: in production config on Unix, edits to controllers.py don't take effect dynamically without restart

2007-05-29 Thread Noah Gift
Hmm...I wonder how hard it would be to script screen a little and make this hook into the tg-admin tool. I would be willing to give this a go sounds fun. something like: tg-admin start-project.py screen-deploy On 5/29/07, Kevin Horn [EMAIL PROTECTED] wrote: On 5/29/07, buffalob

[TurboGears] FeedController RSS feeds usable with Bloglines but not Google Reader or Yahoo?

2007-05-29 Thread buffalob
I've verified using the W3C feed validator utility that the RSS 2.0 feed that I'm creating via TG FeedController is fully valid. And I am able to sucessfully subscribe to this feed from the Bloglines.com aggregator, and everything seems displayed just fine within it - feed parameters and