[tg-trunk] Pylons+TurboGears=????

2007-03-05 Thread Mark Ramm
Reciently there have been some rumors about a TurboGears/Pylons merge. Perhaps sparked by a number of intense discussions on the subject of working together more that I had with Ben Bangert at PyCon last week. I think we all agree that working together more is a good idea. And CherrPy 3

[tg-trunk] Re: CP3 branch in SVN

2007-03-05 Thread Andrew Grover
Kickass, thanks to everyone working on this! -- Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears Trunk group. To post to this group, send email to turbogears-trunk@googlegroups.com To unsubscribe

[tg-trunk] Re: CP3 branch in SVN

2007-03-05 Thread fumanchu
On Mar 5, 8:01 am, Mark Ramm [EMAIL PROTECTED] wrote: * Tools have replaced cherrpy 2.2 filters, and we've done work on that, but for some reason the dictonary values we're passing into the config aren't lining up with cherrypy 3 is expecting. Can you elaborate? Code link? Robert Brewer

[tg-trunk] Re: dbstuff in Pycon Trunk

2007-03-05 Thread John M Camara
It was decided today that DBMechanic will not initially be ORM independent. Instead it will be built on SQLAlchemy and will support model objects using standard mappers. It was going to be too much work to have it support SQLObject and at this time I need something up and running soon.

[tg-trunk] Re: CP3 branch in SVN

2007-03-05 Thread [EMAIL PROTECTED]
On Mar 6, 6:40 am, fumanchu [EMAIL PROTECTED] wrote: On Mar 5, 8:01 am, Mark Ramm [EMAIL PROTECTED] wrote: * Tools have replaced cherrpy 2.2 filters, and we've done work on that, but for some reason the dictonary values we're passing into the config aren't lining up with cherrypy 3 is

[tg-trunk] Re: CP3 branch in SVN

2007-03-05 Thread fumanchu
On Mar 5, 6:22 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: * Tools have replaced cherrpy 2.2 filters, and we've done work on that, but for some reason the dictonary values we're passing into the config aren't lining up with cherrypy 3 is expecting. Can you elaborate? Code link?

[tg-trunk] Re: CP3 branch in SVN

2007-03-05 Thread Mark Ramm
As a shortcut, I'm sending the same configuration dictionary to both global config (which gets the first level of config (no paths), and I'm passing that same dictionary in when I mount the turbogears application. I thought that was explicitly allowed as a simple upgrade path. It's late, and I

[tg-trunk] Re: Pylons+TurboGears=????

2007-03-05 Thread Max Ischenko
Mark, On 3/5/07, Mark Ramm [EMAIL PROTECTED] wrote: Reciently there have been some rumors about a TurboGears/Pylons merge. Perhaps sparked by a number of intense discussions on the subject of working together more that I had with Ben Bangert at PyCon last week. I think we all agree that

[TurboGears] Re: More Flashy Python Pages

2007-03-05 Thread Diez B. Roggisch
SamFeltus schrieb: Here is another shiny, bandwidth wasting Flash page generated/edited by TurboGears. http://samfeltus.com/as3/primavera.html Happy Spring Ya'll Oh boy. This makes me remember through which hoops one had to jump back on the AMIGA to get some nice effects like parallax

[TurboGears] Creating an in-window pop-up window style box...

2007-03-05 Thread [EMAIL PROTECTED]
Hi... I want to create a pop-up style window that is actually inside my browser window. So really it's not a pop-up window at all. :) Just xhtml/css/javascript? styled to look like a window. I'd like it to appear about ten seconds after the site loads. It will ask the user if they want to

[TurboGears] Re: Creating an in-window pop-up window style box...

2007-03-05 Thread Florent Aide
Hi, try looking at submodal: http://sublog.subimage.com/articles/2006/01/01/subModal easy_install submodal It may be what you are searching. Regards, Florent. On 3/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi... I want to create a pop-up style window that is actually inside my

[TurboGears] IntegrityError: column title is not unique

2007-03-05 Thread Mariano Viola
Hi, I've tried to build a simple CRUD with TurboGears 1.0.1 that work for create, read and delete in 15 minutes but I'm now blocked from about an hour on the update that don't work for this unpleasant error: File /usr/lib/python2.4/site-packages/SQLObject-0.7.3-py2.4.egg/

[TurboGears] Re: IntegrityError: column title is not unique

2007-03-05 Thread Leandro Lucarella
Mariano Viola, el 5 de marzo a las 04:26 me escribiste: Hi, I've tried to build a simple CRUD with TurboGears 1.0.1 that work for create, read and delete in 15 minutes but I'm now blocked from about an hour on the update that don't work for this unpleasant error: File

[TurboGears] Re: IntegrityError: column title is not unique

2007-03-05 Thread Mariano Viola
On Mar 5, 1:55 pm, Leandro Lucarella [EMAIL PROTECTED] wrote: Mariano Viola, el 5 de marzo a las 04:26 me escribiste: Hi, I've tried to build a simple CRUD with TurboGears 1.0.1 that work for create, read and delete in 15 minutes but I'm now blocked from about an hour on the

[TurboGears] Re: SingleSelectField should call from_python rather than to_python

2007-03-05 Thread Rick
First off, thanks for the insights into the design philosophy of TG widgets. OK, let me see if I can recap what you are saying. The current implementation of _is_option_selected assumes that the value in the options list [(value,desc,options)] is a Python value, but the current implementation

[TurboGears] *** glibc detected *** free(): invalid pointer: 0x086449e7 ***

2007-03-05 Thread [EMAIL PROTECTED]
Can anyone help me with debugging this? I've got a site that works fine on my development platform (Ubuntu Edgy) but that fails quite spectacularly on Debian Etch. It looks horribly like a bug in Python on that platform somewhere, but I can't make this happen outwith TurboGears, and without a

[TurboGears] Re: SingleSelectField should call from_python rather than to_python

2007-03-05 Thread Diez B. Roggisch
On Monday 05 March 2007 14:40, Rick wrote: First off, thanks for the insights into the design philosophy of TG widgets. OK, let me see if I can recap what you are saying. The current implementation of _is_option_selected assumes that the value in the options list [(value,desc,options)] is a

[TurboGears] Re: *** glibc detected *** free(): invalid pointer: 0x086449e7 ***

2007-03-05 Thread Diez B. Roggisch
On Monday 05 March 2007 14:46, [EMAIL PROTECTED] wrote: Can anyone help me with debugging this? I've got a site that works fine on my development platform (Ubuntu Edgy) but that fails quite spectacularly on Debian Etch. It looks horribly like a bug in Python on that platform somewhere, but

[TurboGears] Re: *** glibc detected *** free(): invalid pointer: 0x086449e7 ***

2007-03-05 Thread [EMAIL PROTECTED]
On 5 Mar, 13:56, Diez B. Roggisch [EMAIL PROTECTED] wrote: Did you try running python through gdb to get a stack-trace? Right, that was a good pointer ;) With some poking, I've got a backtrace and it does look indeed like it was libxml: (gdb) bt #0 0xb7fcd410 in ?? () #1 0xb4a9ac4c in ?? ()

[TurboGears] Re: SingleSelectField should call from_python rather than to_python

2007-03-05 Thread Rick
Sounds good. I have created ticket #1314 http://trac.turbogears.org/ticket/1314 with an attached patch (which also contains a test case) that does not break any of the existing tests. (I had to tweak it slightly to handle MultipleSelectFields, but it seems to work now.) Thanks again for

[TurboGears] Re: IntegrityError: column title is not unique

2007-03-05 Thread Jorge Godoy
Mariano Viola [EMAIL PROTECTED] writes: Thanks but I can't have two or more object with the same title, the problem is that I've only an object with the hello title but when I try to update it I've always the same error. You should *never* catch all exceptions like you do in your code. What

[TurboGears] widgets: JSLink to external link adress

2007-03-05 Thread Gregor Horvath
Hi, How is it possible to include a JSLink to an external adress for example: http://soemurl/somejavascript.js It seems from the source of class Link in base.py the link is hardcoded to a local adress: d[link] = /%stg_widgets/%s/%s % (startup.webpath,

[TurboGears] Re: How do I set the identity upon login.

2007-03-05 Thread Ben Sizer
On Mar 4, 8:58 pm, Jesse James [EMAIL PROTECTED] wrote: yes. Well, then, in this case you would especially want to just bypass the boilerplate code and just reassign the user to this session. Yes? Unless someone has a good way of delegating identity authentication to outside sources that

[TurboGears] Re: Output is very slow if passing huge data from controller.

2007-03-05 Thread Ben Sizer
On Mar 4, 7:18 pm, Olli Wang [EMAIL PROTECTED] wrote: Yeah, there must be something wrong here. It taken 35 secs to generate the output page since I press Enter though Firebug said it taken 984ms. Perhaps try with a different browser. I expect Lynx might be quite quick due to the lack of

[TurboGears] TG with supporting other protocols

2007-03-05 Thread writeson
Hi all, I'm looking at in implementing a TurboGears solution for an inhouse distributed system and was wondering if anyone had tried something I'm thinking about. The first is implementing the Pyro system for other parts of the system to access the Model in TG. Has anyone does this? The other

[TurboGears] Re: Implementing single sign-on with openid in a Turbogears application

2007-03-05 Thread gasolin
I've take some time to follow the tutorial, the overall is good. Is there a way to separate all openid related code to another file, then people could reuse the code immediately without take care of the details? --~--~-~--~~~---~--~~ You received this message

[TurboGears] Re: More Flashy Python Pages

2007-03-05 Thread SamFeltus
Oh boy. This makes me remember through which hoops one had to jump back on the AMIGA to get some nice effects like parallax scrolling and textured cubes Hehe... So it's called parallax scrolling. I was just looking for a cartoonish/flowery template to write web pages in. Same with

[TurboGears] Page generation time?

2007-03-05 Thread Mikkel Høgh
Hi guys, I was wondering wheter it is possible to output the page generation time, like many PHP-based sites do. It is great to get an overview how wasteful your code is :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[TurboGears] Re: Page generation time?

2007-03-05 Thread Florent Aide
On 3/5/07, Mikkel Høgh [EMAIL PROTECTED] wrote: Hi guys, Hi Mikkel, I was wondering wheter it is possible to output the page generation time, like many PHP-based sites do. It is great to get an overview how wasteful your code is :) import datetime class Root(controllers.RootController):

[TurboGears] Re: Page generation time?

2007-03-05 Thread Florent Aide
You can also do the same with import time t1 = time.time() t2 = time.time() elapsed_time = t2 - t1 in this case elapsed_time is a float expressed in seconds. Cheers. On 3/5/07, Florent Aide [EMAIL PROTECTED] wrote: On 3/5/07, Mikkel Høgh [EMAIL PROTECTED] wrote: Hi guys, Hi Mikkel, I

[TurboGears] Re: Page generation time?

2007-03-05 Thread Mikkel Høgh
But isn't that only part of the picture? Does the controller code actually get loaded first on a request? On Mar 5, 8:55 pm, Florent Aide [EMAIL PROTECTED] wrote: You can also do the same with import time t1 = time.time() t2 = time.time() elapsed_time = t2 - t1 in this case elapsed_time

[TurboGears] Re: Page generation time?

2007-03-05 Thread Florent Aide
This will give you the time your method (in my example index) took. It will not give you the full-stack execution. But this will be the same as what you get on many (all?) PHP-based sites. :) Florent. On 3/5/07, Mikkel Høgh [EMAIL PROTECTED] wrote: But isn't that only part of the picture?

[TurboGears] Re: TurboGears, Identity and SCGI

2007-03-05 Thread Chris Kurecka
I apologize and don't want to bother people who don't know the answer to my problem, but I wanted to repost my question before it gets buried. A lot of people seem to be able to run TurboGears with LightTPD, Apache or something similar, and I would really appreciate any help as to why everything

[TurboGears] Re: Page generation time?

2007-03-05 Thread fumanchu
On Mar 5, 11:40 am, Mikkel Høgh [EMAIL PROTECTED] wrote: I was wondering wheter it is possible to output the page generation time, like many PHP-based sites do. It is great to get an overview how wasteful your code is :) CherryPy 2 includes a log_debug_info filter which does this. It was

[TurboGears] tabber widget customization

2007-03-05 Thread [EMAIL PROTECTED]
Is it possible to have the tabs in the tabber widget have rounded corners? Also, how do I increase the horizontal spacing between the tabs? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post

[TurboGears] TurboLucene API Documentation now available

2007-03-05 Thread Krys Wilken
Hi everyone, I am pleased to announce that TurboLucene now has API documentation, courtesy of Epydoc. You can find the API Reference at: http://dev.krys.ca/downloads/turbolucene/api/ As always, feedback is most welcome. :-) If you do not already know, TurboLucene is a library for TurboGears

[TurboGears] Re: widgets: JSLink to external link adress

2007-03-05 Thread Andrew Grover
On 3/5/07, Gregor Horvath [EMAIL PROTECTED] wrote: How is it possible to include a JSLink to an external adress for example: http://soemurl/somejavascript.js subclass JSLink, like so: from turbogears.widgets import JSLink class ExtJSLink(JSLink): def update_params(self, d):

[TurboGears] Re: Implementing single sign-on with openid in a Turbogears application

2007-03-05 Thread Sanjay
I've take some time to follow the tutorial, the overall is good. :) Is there a way to separate all openid related code to another file, then people could reuse the code immediately without take care of the details? Nice suggestion. I also see at least one more scope of improvement: In