[tg-trunk] Re: Alternate template engines and config options

2007-01-06 Thread Cliff Wells
Cliff Wells wrote: Hi, So I'm almost done with a new template engine and an issue I had with TurboStan has arisen again. The first time around I didn't concern myself too much since I only supported TurboGears with TurboStan, but this time around I'm primarily supporting the Buffet API.

[tg-trunk] Re: Alternate template engines and config options

2007-01-06 Thread Cliff Wells
Cliff Wells wrote: Hi, So I'm almost done with a new template engine and an issue I had with TurboStan has arisen again. The first time around I didn't concern myself too much since I only supported TurboGears with TurboStan, but this time around I'm primarily supporting the Buffet API.

[TurboGears] Re: identity and login

2007-01-06 Thread Patrick Lewis
That works fine when you go straight to the /login page. But, if you go to a protected page like /secret (and aren't already authenticated), the progression goes something like this: - user goes to /secret - internally, user is redirected to /login. Browser url still appears to say /secret -

[TurboGears] Re: td in DataGrid should have css class

2007-01-06 Thread Steve Bergman
On Jan 5, 1:55 pm, Jorge Godoy [EMAIL PROTECTED] wrote: var hideMyScript = function (element_id) { element = $(element_id); previous_sibling = element.previousSibling; updateNodeAttributes(element, {'class':'invisible'});

[TurboGears] Re: API information

2007-01-06 Thread Patrick Lewis
I started to respond with API in a post, but I figure it will be more useful in the actual docs. This should be it. http://docs.turbogears.org/1.0/IdentityManagment#exposed-interfaces-in-identity-current --~--~-~--~~~---~--~~ You received this message because

[TurboGears] Re: td in DataGrid should have css class

2007-01-06 Thread Jorge Godoy
Steve Bergman [EMAIL PROTECTED] writes: Nope. previousSibling returns something of type text. However, this Probably it should be something like element.previousSibling.parentNode. hides the whole row of the TableForm by setting the tr's class to invisible, which is just what I want: I

[TurboGears] Help with getting head around widget, fields forms and SingleSelect

2007-01-06 Thread Glenn Davy
wondering if any one can help me make sense of a couple of things. I have this block of code in controllers.py out side of root class. def get_client_list_as_options(): options = [(client.id, client.clientName) for client in Client.select()] return options class

[TurboGears] widgets.TextField shows self for new record

2007-01-06 Thread glenn
hi im trying to use a TableForm with a TextField (passed in as a widgetList). Because its for a new record, im passing in values=. What Im getting in my browser is an input text field with built-in method title of str object at 0xb7dbc098 as the 'value'. Is there an easy way I can surpress that

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Christopher Arndt
glenn schrieb: hi im trying to use a TableForm with a TextField (passed in as a widgetList). Because its for a new record, im passing in values=. What Im getting in my browser is an input text field with built-in method title of str object at 0xb7dbc098 as the 'value'. Is there an easy way I

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Christopher Arndt
Jorge Godoy schrieb: Use the widget the correct way. Send some code to the list. You are not doing what you think you're doing. Be patient with him. Without any proper API documentation on widgets, he's not really to blame. And looking into the source code does not really help either. It's

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Jorge Godoy
Christopher Arndt [EMAIL PROTECTED] writes: Be patient with him. Without any proper API documentation on widgets, he's not really to blame. I'm not impatient (otherwise I wouldn't be answering). All of his questions are answered without an API documentation.

[TurboGears] Re: API information

2007-01-06 Thread Lee Connell
Excellent! Thanks Patrick. Looks as if the API documentation is still under heavy work, is there any more API docs available for other parts of TG? -Original Message- From: turbogears@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Lewis Sent: Saturday, January 06,

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Jorge Godoy
Christopher Arndt [EMAIL PROTECTED] writes: Sorry, that is not my idea of an API documentation. These are mere usage examples. I didn't say they were API. Let me repeat: without an API documentation. I wouldn't call that exactly a lot, esp. since the last is only a list and no. 2 is only

[TurboGears] Widget documentation (Was: widgets.TextField shows self for new record)

2007-01-06 Thread Christopher Arndt
Jorge Godoy schrieb: If you restrict yourself to the wiki then there isn't a lot. :-) Search the archives here and you'll see a lot more of resources and examples. There are blogs with recipes, notes, etc. I think that scattered notes, hints, mailing list messages etc. don't count as

[TurboGears] Re: Help with getting head around widget, fields forms and SingleSelect

2007-01-06 Thread Karl Guertin
On 1/6/07, Jorge Godoy [EMAIL PROTECTED] wrote: There are docs explaining all the process. I believe that even the 20 minute wiki shows that... There are some widgets tutorials available on docs.turbogears.org as well. Take some time to read them. The book explains this process. There are

[TurboGears] Re: Pycon 2007 Sprint?

2007-01-06 Thread John M Camara
I have added a wiki page for the sprint. http://us.pycon.org/TX2007/TurboGearsSprint --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

[TurboGears] Doc Sprint next week

2007-01-06 Thread Mark Ramm
On Saturday the 13th of January, I'll be organizing (I use the term loosely) a Doc Sprint. We'll discuss our work on the TurboGears Docs mailing list, on the #turbogears, and organize or efforts around the work listed on the Docs wiki. http://docs.turbogears.org/1.0/DocSprintOrganization If

[TurboGears] Re: Trac does not accept file attachments

2007-01-06 Thread Lee McFadden
I've tracked this down to a bug in Trac itself. As soon as I can get the latest release installed on the server it will be fixed. I'm aiming to have this done tomorrow. Lee On 1/5/07, Christopher Arndt [EMAIL PROTECTED] wrote: Florent Aide schrieb: I receive this error: 500 Internal

[TurboGears] Re: Doc Sprint next week

2007-01-06 Thread Christopher Arndt
Mark Ramm schrieb: http://docs.turbogears.org/1.0/DocSprintOrganization Just beautified that a bit and added basic info (took the liberty to steal most of your text here). If you want to help, add your name to the list of participants. Just added myself. How will contribution work if we

[TurboGears] Re: Widget documentation (Was: widgets.TextField shows self for new record)

2007-01-06 Thread Steve Bergman
I think that scattered notes, hints, mailing list messages etc. don't count as documentation. If you're determined, you'll get along, but I still maintain that TurboGears (i.e. the distribution, wiki, trac and amin page) itself has no proper documentation on widgets. Have you looked at the

[TurboGears] Re: Help with getting head around widget, fields forms and SingleSelect

2007-01-06 Thread glenn
Hi Jorge Thanks for taking the time to reply... Jorge Godoy wrote: Glenn Davy [EMAIL PROTECTED] writes: 1) Id __like__ to say: project_formwidget.fields.client.default=p.clientID However the 500 err tells me that: AttributeError: 'ProjectFields' object has no attribute 'client', but

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Steve Bergman
On Jan 6, 7:18 pm, glenn [EMAIL PROTECTED] wrote: I notice many people pass in key value pairs, but, well... I dont want to have to - It seems I can almost get away with just passing in the object (p) and I'd like to make this work. You can turn most data model objects into dictionaries

[TurboGears] TurboCheetah and template search path (like on django)

2007-01-06 Thread [EMAIL PROTECTED]
Hi people! I was working on a plugin to turbogears that gives me the same funcionality of the django templates. My goal is to be able to define some template paths and when loading the template, search through this paths to find the proper template. I want to be able to import the proper

[TurboGears] Handling 404(cherrypy.NotFound) with @exception_handler

2007-01-06 Thread k3
Hi, Can I use @exception_handler to catch 404(cherrypy.NotFound) exception. I used @exception_handler decorator in my index, but the 404 error kept showing without calling my own exception handler. I tried calling my index page with an additional parameter, which my index function doesn't

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Christopher Arndt
glenn schrieb: I notice many people pass in key value pairs, but, well... I dont want to have to - It seems I can almost get away with just passing in the object (p) and I'd like to make this work. I think you can actually also pass in model objects to the value argument of forms but not

[TurboGears] Re: identity and login

2007-01-06 Thread Patrick Lewis
Lee Connell wrote: Also, the login controller is still called when the user attempts to authenticate, it just redirects it to in this case /verify_login if the authentication is successful, otherwise it reports the authentication error message to the login.kid template? Not quite. Yes, the

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread glenn
Steve Bergman wrote: On Jan 6, 7:18 pm, glenn [EMAIL PROTECTED] wrote: I notice many people pass in key value pairs, but, well... I dont want to have to - It seems I can almost get away with just passing in the object (p) and I'd like to make this work. You can turn most data model

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread Steve Bergman
Well, to be honest, I didn't realize that you *could* pass a model object. I just created this simple project and it works. Perhaps you will see something in this that will help: Model.py: from turbogears.database import PackageHub from sqlobject import * hub =

[TurboGears] Re: Doc Sprint next week

2007-01-06 Thread Mark Ramm
We can post patches to tickets in Trac -- I'm sure we can talk somebody into comitting those patches :) --Mark Ramm On 1/6/07, Christopher Arndt [EMAIL PROTECTED] wrote: Mark Ramm schrieb: http://docs.turbogears.org/1.0/DocSprintOrganization Just beautified that a bit and added basic info

[TurboGears] Re: widgets.TextField shows self for new record

2007-01-06 Thread glenn
hey steve Steve Bergman wrote: Well, to be honest, I didn't realize that you *could* pass a model object. neither did I, but its what they do in 1 sample of the famous bookmark example in chp5 I just created this simple project and it works. yp - mine works as for as you've gone also... I

[TurboGears] Re: Widget documentation (Was: widgets.TextField shows self for new record)

2007-01-06 Thread Mark Ramm
I'm relatively confident that widgets docs will be addressed during the docs sprint, since people who DO know the widgets system should be participating and it's the only major area of TG that isn't documented online. The official position is that the book documents widgets, which is true, but

[TurboGears] Re: Widget documentation (Was: widgets.TextField shows self for new record)

2007-01-06 Thread Mark Ramm
Go for it! But remember that ToscaWidgets will become the standard. I know. That's what's so fascinating about TurboGears. We don't really need documentation, because before you'll get to know a component properly, it'll be replaced by another anyway ;-) Buwahahaha! You've figured out

[TurboGears] Testin POST vars

2007-01-06 Thread iain duncan
This is a little off topic, but my googling is not turning much up. Is there a firefox extension or other easy way of testing pages with arbitrary post variables? I'm interested in finding out what the best way of making manual and automated tests of browser page loads with preset get and post

[TurboGears] Really simple MochiKit...

2007-01-06 Thread [EMAIL PROTECTED]
I'm having a hard time wrapping my head around MochiKit, because I have very little javascript experience. I want to do something really simple. When I click a specific link on a page, I want some text to appear in the middle of the page. I understand enough that I need to put something in my