[tg-trunk] nosetest failing for 1.0 on Ubuntu

2007-01-08 Thread Jeff Hinrichs - DMT
Sorry -- I searched the list but didn't see an answer, so I'll ask. I've tried both trunk and the 1.0 branch and if I run nosetest immediately afterwards I am seeing 9 failures. This is the first and they all seem to be failing because the case of the attribute, i.e. NAME != name

[TurboGears] Re: Really simple MochiKit...

2007-01-08 Thread [EMAIL PROTECTED]
Thank you everyone who replied! I took Jorge's advice to use the Dom approach, and Arnar I used your code to do this. It works like a charm. But now I want to up the anteand instead of just having the text appear, I want it to appear as html, so I can have Your bstring/b here appear with

[TurboGears] Re: redefining builtin 'hash' in model.py

2007-01-08 Thread Diez B. Roggisch
On Monday 08 January 2007 07:24, Jeff Hinrichs - DMT wrote: Working my way through the Identity system, wrt model.py, I see that the _set_password(self, method in the User class is redefining the python built-in keyword, hash(1) def _set_password(self, cleartext_password): Runs

[TurboGears] Re: decimal column support in SO/Postgres

2007-01-08 Thread Diez B. Roggisch
On Friday 05 January 2007 20:57, Jorge Godoy wrote: Diez B. Roggisch [EMAIL PROTECTED] writes: today I stumbled over the fact that my SQLObject columns of type CurrencyCol don't return decimal-Objects - which is crucial for my application. Now the SO-docs state that it works when first

[TurboGears] Re: tg, indexes and apache proxy

2007-01-08 Thread Ed Singleton
On 18/12/06, Seb [EMAIL PROTECTED] wrote: Hello ! I've got a problem on my tg installation. I'm behind an apache proxy who redirect every demand to turbogears and works well. But, when I try to acces in my classes indexs, tg bugs if I don't add the ending slash in the URL. If try

[TurboGears] Re: URL redirection problem

2007-01-08 Thread Ed Singleton
On 02/01/07, Bogdan Hlevca [EMAIL PROTECTED] wrote: If I type in browser www.mysite.org:8082/users it gets redirected to localhost:8082/users/ and I get an error since I am not working on the local machine, but if I type directly www.mysite.org:8082/users/ it goes to the right page. Is

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Jorge Godoy
Paul Johnston [EMAIL PROTECTED] writes: The way ASP.NET solves this is the __VIEWSTATE hidden field. The state of the controls is stored in that, and it is protected from tampering using a MAC. As we start to do more complicated things with widgets forms, I think a TG equivalent of __VIEWSTATE

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

2007-01-08 Thread Alberto Valverde
On Jan 6, 2007, at 11:31 AM, k3 wrote: 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. If you're raising that exception explicitly it

[TurboGears] identity help

2007-01-08 Thread Jose Soares
Hi all, This morning I cannot login my appl. Evidently I changed something in my db/model, but what? I can't understand where's the problem. Is there a way to log the queries that tg does in the identity phase? thanks for any help. jo --~--~-~--~~~---~--~~

[TurboGears] Re: redefining builtin 'hash' in model.py

2007-01-08 Thread Jorge Godoy
Jeff Hinrichs - DMT [EMAIL PROTECTED] writes: Working my way through the Identity system, wrt model.py, I see that the _set_password(self, method in the User class is redefining the python built-in keyword, hash(1) def _set_password(self, cleartext_password): Runs cleartext_password

[TurboGears] Re: Really simple MochiKit...

2007-01-08 Thread Jorge Godoy
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: But now I want to up the anteand instead of just having the text appear, I want it to appear as html, so I can have Your bstring/b here appear with 'string' bolded. How can I change Arnar's code (which I understand (yay!)) to allow me to have

[TurboGears] Turbogears plugin, how to know the app root directory (where my app resides)?

2007-01-08 Thread [EMAIL PROTECTED]
Hi guys! I'm working on a plugin to cheetah template that let me use template inheritance a easier way. I want to know how can I refer to the application root directory (where my application resides). Suppose I start the wiki20 application, how can I refer to the

[TurboGears] irregular controller names

2007-01-08 Thread [EMAIL PROTECTED]
Hi all, Anyone know if it's possible to create irregular controller names in Turbogears. Or aliases. I'm basically wanting to emulate a legacy interface with my app, which means that I need to support a URL of the form http://mysite.com/opt_out.php?email=addresspass=secret Can I do this

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Paul Johnston
Hi, I don't know for sure, but I believe it's a HMAC. For ASP.NET it seems the HMAC key is a per-server secret (with hooks for syncronising this in a cluster). I actually think that is a weakness and a per-session key would be preferable. Another thing to consider is cross-site request

[TurboGears] Re: Pycon 2007 Sprint?

2007-01-08 Thread Alberto Valverde
On Jan 6, 2007, at 5:01 AM, John M Camara wrote: Kevin Dangoor wrote: Given that TurboGears is much bigger than it was a year ago, I'd imagine there won't be trouble finding people to join in a sprint. I won't be able to attend the sprint this year. It's also a rather long drive for

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 11:44 AM, Jorge Godoy wrote: Paul Johnston [EMAIL PROTECTED] writes: The way ASP.NET solves this is the __VIEWSTATE hidden field. The state of the controls is stored in that, and it is protected from tampering using a MAC. As we start to do more complicated things

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 2:23 PM, Paul Johnston wrote: Hi, I don't know for sure, but I believe it's a HMAC. For ASP.NET it seems the HMAC key is a per-server secret (with hooks for syncronising this in a cluster). I actually think that is a weakness and a per-session key would be preferable.

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Jorge Godoy
Alberto Valverde [EMAIL PROTECTED] writes: The easiest way IMO would be to pickle a FormState (unimplemented) object and encrypt that. That object could be extended if a need for something similar Hmmm... I don't think so. What if I have dynamic controls that enable / disable fields

[TurboGears] Re: Turbogears plugin, how to know the app root directory (where my app resides)?

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 1:50 PM, [EMAIL PROTECTED] wrote: Hi guys! I'm working on a plugin to cheetah template that let me use template inheritance a easier way. I want to know how can I refer to the application root directory (where my application resides). Suppose I start the wiki20

[TurboGears] Re: irregular controller names

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 2:11 PM, [EMAIL PROTECTED] wrote: Hi all, Anyone know if it's possible to create irregular controller names in Turbogears. Or aliases. I'm basically wanting to emulate a legacy interface with my app, which means that I need to support a URL of the form

[TurboGears] Re: identity help

2007-01-08 Thread Ksenia
I am not sure about identity setting, but you can see al application queries by changing some database parameters in the config file. For SQLObject, add debug=1 at the end of connection string: sqlobject.dburi=postgres://@/mydb?debug=1 For SQLAlchemy: sqlalchemy.echo = 1 HTH Ksenia.

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 2:55 PM, Jorge Godoy wrote: Alberto Valverde [EMAIL PROTECTED] writes: The easiest way IMO would be to pickle a FormState (unimplemented) object and encrypt that. That object could be extended if a need for something similar Hmmm... I don't think so. What if I

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Jorge Godoy
Alberto Valverde [EMAIL PROTECTED] writes: Phew! Then I can't think of a safe way to do that... How can you trust JS code to decide which fields should skip validation? I think that that hidden There's no way to delegate that to the user side. Not safely. JavaScript can be (easily)

[TurboGears] Re: Turbogears plugin, how to know the app root directory (where my app resides)?

2007-01-08 Thread [EMAIL PROTECTED]
Hi Alberto! Ok, I can use pkg-resources.resource_filename, but how can I know the wiki20 name without pass it as a template argument? Now, to use cheetah, I need to expose my method as follow: @expose(template='wiki20.templates.index') def index(self): ... Because the way my plugin

[TurboGears] Re: identity help

2007-01-08 Thread Jose Soares
Ksenia ha scritto: I am not sure about identity setting, but you can see al application queries by changing some database parameters in the config file. For SQLObject, add debug=1 at the end of connection string: sqlobject.dburi=postgres://@/mydb?debug=1 For SQLAlchemy: sqlalchemy.echo = 1

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 3:21 PM, Jorge Godoy wrote: Alberto Valverde [EMAIL PROTECTED] writes: Phew! Then I can't think of a safe way to do that... How can you trust JS code to decide which fields should skip validation? I think that that hidden There's no way to delegate that to the

[TurboGears] Re: Turbogears plugin, how to know the app root directory (where my app resides)?

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 3:27 PM, [EMAIL PROTECTED] wrote: Hi Alberto! Ok, I can use pkg-resources.resource_filename, but how can I know the wiki20 name without pass it as a template argument? Now, to use cheetah, I need to expose my method as follow: @expose(template='wiki20.templates.index')

[TurboGears] Jumpmenu widget to alter PaginateDataGrid display limit

2007-01-08 Thread Aaron Bostick
I wanted a PaginateDataGrid where the user could change the number of results to be displayed with a simple Jumpmenu widget. Here is what works for me: 1. Make the jump menu with simple options like this - limit_options = [('10','10',), ('20','20',),

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Jorge Godoy
Alberto Valverde [EMAIL PROTECTED] writes: I was thinking of something more like a a Schema subclass (which you'd have to subclass if you want this functionallity that did something like: class TGSmartSchema(Schema): def _to_python(self, value, state=None):

[TurboGears] Inter-controller communication.

2007-01-08 Thread Jonathan Wight
I need to communicate between a thread running in my TG application and _all_ controllers hosted in the application. Is there a recommending way of communicating between controllers? Jon. --~--~-~--~~~---~--~~ You received this message because you

[TurboGears] Re: Inter-controller communication.

2007-01-08 Thread Jorge Godoy
Jonathan Wight [EMAIL PROTECTED] writes: I need to communicate between a thread running in my TG application and _all_ controllers hosted in the application. Is there a recommending way of communicating between controllers? I'd use some persistance mechanism. The database would be my

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 5:24 PM, Jorge Godoy wrote: Alberto Valverde [EMAIL PROTECTED] writes: I was thinking of something more like a a Schema subclass (which you'd have to subclass if you want this functionallity that did something like: class TGSmartSchema(Schema): def

[TurboGears] Re: identity help

2007-01-08 Thread Alberto Valverde
On Jan 8, 2007, at 5:25 PM, Jose Soares wrote: Hi all, This morning I cannot login my appl. Evidently I changed something in my db/model, but what? I can't understand where's the problem. Is there a way to log the queries that tg does in the identity phase? thanks for any help. You

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Jorge Godoy
Jorge Godoy [EMAIL PROTECTED] writes: They might be disabled client side as well... The idea is really signaling that to the server so that it knows. Of course, if a widget has no can_be_disabled attribute or it is false, then it can't be disabled... The idea of using the hashes is that

[TurboGears] Re: Turbogears plugin, how to know the app root directory (where my app resides)?

2007-01-08 Thread [EMAIL PROTECTED]
Ouch :) Well, I think on that, I can't find any solution but pass a configuration parameter telling the project name and path. This could be set on the tg-admin quickstart, the config parameters could be tg.application_root and tg.application_name. This way my plugin can parse these config

[TurboGears] Re: Inter-controller communication.

2007-01-08 Thread Jonathan Wight
On Jan 8, 2007, at 11:40 AM, Jorge Godoy wrote: Jonathan Wight [EMAIL PROTECTED] writes: I need to communicate between a thread running in my TG application and _all_ controllers hosted in the application. Is there a recommending way of communicating between controllers? I'd use some

[TurboGears] CherryPy - send uppercase http response headers?

2007-01-08 Thread Nick Murdoch
Hi, For compatibility reasons with an older project, I'm trying to get CherryPy to return a header in uppercase, eg: X-UPPERCASE-TEST: Hello! My code for this looks something like this: class Root(controllers.RootController) @expose() def index(self, *args, **kw):

[TurboGears] Re: Inter-controller communication.

2007-01-08 Thread Christopher Arndt
Jonathan Wight schrieb: Well that wouldn't help me. I need _live_ updating of data in the controller. I've tried using a background thread and a message queue between controllers - but that didn't get me very far. So I'm wondering if there is anything built-in. Why not? That's what I

[TurboGears] MochiKit, IE 7.0, doSimpleXMLHttpRequest

2007-01-08 Thread Yin
I've written a Turbogears application that uses Mochikit to call doSimpleXMLHttpRequest. In Firefox, the callback returns an XMLHttpRequest object and the text I am returning from the kid template is rendered in the view. (working as expected) In Internet Explorer, the callback returns an

[TurboGears] turbogeared cherrypy upload filter

2007-01-08 Thread os.getlogin
from turbogears import n00b Is there a slick way to use the cherrypy upload filter in turbogears? I'm not sure what I mean, but I looked at the tut09_files.py tutorial (also here: http://www.cherrypy.org/wiki/FileUpload) and found it quite nice. How would I incorporate this into my TG app?

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

2007-01-08 Thread iain duncan
On Sat, 2007-06-01 at 18:45 +0100, Christopher Arndt wrote: 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

[TurboGears] Re: Inter-controller communication.

2007-01-08 Thread Jonathan Wight
On Jan 8, 2007, at 1:46 PM, Christopher Arndt wrote: Jonathan Wight schrieb: Well that wouldn't help me. I need _live_ updating of data in the controller. I've tried using a background thread and a message queue between controllers - but that didn't get me very far. So I'm wondering if

[TurboGears] Re: FormEncode 0.5.1+ missing from install list

2007-01-08 Thread percious
also missing sqlalchemy --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL

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

2007-01-08 Thread iain duncan
Perhaps a change in philosophy going forward will assist in keeping the documentation complete. Documentation is not something that is done after code has been accepted it should be considered a part of the code just like the BSD's do, missing or incomplete documentation is considered a bug.

[TurboGears] Re: FormEncode 0.5.1+ missing from install list

2007-01-08 Thread percious
also missing mysqldb --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL

[TurboGears] Re: Inter-controller communication.

2007-01-08 Thread Jorge Godoy
Jonathan Wight [EMAIL PROTECTED] writes: Yeah it is now working. I think the problem I was originally seeing was related to the double reloading of modules. Now I successfully have comet pushing updates to pages when the back-end database is updated. Pretty cool. How about sharing this

[TurboGears] What TG 1.0 is missing and needs

2007-01-08 Thread iain duncan
I just touched on this in another thread but thought I'd start a new topic as it seems timely with the docsprint coming up, release of 1.0, and changes in management positions. Please take my opinions with much salt and so on, and of course know that I am very thankful for all the work gone into

[TurboGears] Re: What TG 1.0 is missing and needs

2007-01-08 Thread Tim Lesher
On 1/8/07, iain duncan [EMAIL PROTECTED] wrote: I personally am surprised we are giving it the big 1.0 as things stand. While the details of your complaints are valid, you might want to read this regarding why calling the release '1.0 is important:

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

2007-01-08 Thread Tim Lesher
On 1/7/07, Jeff Hinrichs - DMT [EMAIL PROTECTED] wrote: Perhaps a change in philosophy going forward will assist in keeping the documentation complete. Documentation is not something that is done after code has been accepted it should be considered a part of the code just like the BSD's do,

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Paul Johnston
Hi Guys, A lot of interesting ideas here! I'm really not sure what the best approach is. My guy feel is to sit on this for now, someone will get some inspiration in the course of time. Regarding encrypting pickle data, that alone won't make it safe as encrypted data can still be tampered

[TurboGears] Re: TableFormWidget, disabled_fields and validation

2007-01-08 Thread Jorge Godoy
Paul Johnston [EMAIL PROTECTED] writes: One design aspect I do feel strongly about is that the secure mode should be the default. A programmer should have to explicitly turn off security if they want to do some fancy things. If we get the design right though, most client-side manipulation will

[TurboGears] Re: What TG 1.0 is missing and needs

2007-01-08 Thread iain duncan
On 1/8/07, iain duncan [EMAIL PROTECTED] wrote: I personally am surprised we are giving it the big 1.0 as things stand. While the details of your complaints are valid, you might want to read this regarding why calling the release '1.0 is important:

[TurboGears] Re: CherryPy - send uppercase http response headers?

2007-01-08 Thread Elvelind Grandin
HTTP Headers are as far as I know case insensitive. so it's a bug in the older project. I dont think you can force CP into sending uppercase headers. On 1/8/07, Nick Murdoch [EMAIL PROTECTED] wrote: Hi, For compatibility reasons with an older project, I'm trying to get CherryPy to return a

[TurboGears] Re: What TG 1.0 is missing and needs

2007-01-08 Thread Karl Guertin
On 1/8/07, iain duncan [EMAIL PROTECTED] wrote: 1.0 Stable: - all features are documented in one central place with docs detailing exactly what they are *known* to do reliably, and no mention of new unstable features All features that are documented are on docs.turbogears.org. The trac wiki

[TurboGears] TextField questions

2007-01-08 Thread Jim Steil
Hi: I'm pretty green here and am looking for a list of ALL of the attributes I can set on a TextField. I've been struggling with setting the value of the Label field and just found that there is a 'label' attribute I can set. This is not listed in the widget browser in the toolbox. I also want

[TurboGears] Re: What TG 1.0 is missing and needs

2007-01-08 Thread iain duncan
1.x devel: - the new features go here, changes in packages, etc - add on docs that are known to be moving targets This is already how it works. Did I miss new features being added to the 1.0 branch? I'm sure you did not, and my comments should not be taken to be complaining for

[TurboGears] ANN: Breve - new template engine for TurboGears, Pylons, Django

2007-01-08 Thread Cliff Wells
Greetings all, It's been a long time since I've made any announcements regarding TurboStan, but despite this I'm quite happy to announce its demise and replacement with a ground-up rewrite that is around 99% compatible with TurboStan. http://breve.twisty-industries.com/ There are

[TurboGears] Re: TG 1.0 - failed on Offline Instalation, please help

2007-01-08 Thread Jorge Vargas
On 1/5/07, b3d70 [EMAIL PROTECTED] wrote: Dear TG friends, I tried to install TG 1.0, and I already download tgsetup.py and all dependencies file as mention on TG download file list. All these file I put on a single directory and try to run the tgsetup.py. actually the goal of tgsetup is

[TurboGears] Re: TextField questions

2007-01-08 Thread Jorge Vargas
On 1/8/07, Jim Steil [EMAIL PROTECTED] wrote: I'm pretty green here and am looking for a list of ALL of the attributes I can set on a TextField. I've been struggling with setting the value of the Label field and just found that there is a 'label' attribute I can set. This is not listed in the

[TurboGears] Re: Trac does not accept file attachments

2007-01-08 Thread Jorge Vargas
On 1/5/07, Christopher Arndt [EMAIL PROTECTED] wrote: Florent Aide schrieb: I receive this error: 500 Internal Server Error when trying to attach a patch to a ticket in trac: Yep, I already reported this and Lee is looking after it ASAP:

[TurboGears] Re: idenity.current.user problem

2007-01-08 Thread Jorge Vargas
On 1/5/07, Lee Connell [EMAIL PROTECTED] wrote: I am calling this in one of my controllers and it is giving me this error: id = identity.current.user.user_name AttributeError: 'NoneType' object has no attribute 'user_name' even though this was usage error, I believe the API should handle

[TurboGears] Re: TextField questions

2007-01-08 Thread os.getlogin
Jorge Vargas wrote: I'm not exactly sure what you mean by not having everything on the widget browser you want a TextField to show ALL atributes of all it's parent classes? isn't that a huge waste of space? any suggestions on how this can be improved? maybe add links on each widgets to each

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

2007-01-08 Thread Jorge Vargas
On 1/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi people! Maybe I missing something but I think this is a starting point. This is for my specific case, I didn't know how to get the project working directory to automatically set project/appname/templates as a path for template search.

[TurboGears] Re: ANN: Breve - new template engine for TurboGears, Pylons, Django

2007-01-08 Thread Karl Guertin
Good to see a stan replacement. My only complaint is on the docs page: Most Python template engines (with only a few notable exceptions) are XML derivatives. That is, they are either valid XML (e.g. Zope's ZPT) or they are non-validating XML derivatives (i.e. Kid and Genshi) with template

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

2007-01-08 Thread iain duncan
On Mon, 2007-08-01 at 15:00 -0500, Tim Lesher wrote: On 1/7/07, Jeff Hinrichs - DMT [EMAIL PROTECTED] wrote: Perhaps a change in philosophy going forward will assist in keeping the documentation complete. Documentation is not something that is done after code has been accepted it should be

[TurboGears] Re: Turbogears Ubuntu dependencies (please read if ur in this platform)

2007-01-08 Thread Jorge Vargas
On 1/8/07, Jeff Hinrichs - DMT [EMAIL PROTECTED] wrote: On 1/7/07, Glenn Davy [EMAIL PROTECTED] wrote: hi jorge ive only got ubuntu here atm (except for one win32 box, booted occassionally) - i'll see what I can discover, but can I just clarify you are wanting, on ubuntu

[TurboGears] Re: Doc Sprint next week

2007-01-08 Thread Jorge Vargas
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 (took the liberty to steal most of your text here). dont forget this ones

[TurboGears] Re: idenity.current.user problem

2007-01-08 Thread Jason Chu
On Mon, 8 Jan 2007 17:22:38 -0400 Jorge Vargas [EMAIL PROTECTED] wrote: On 1/5/07, Lee Connell [EMAIL PROTECTED] wrote: I am calling this in one of my controllers and it is giving me this error: id = identity.current.user.user_name AttributeError: 'NoneType' object has no

[TurboGears] Re: Doc Sprint next week

2007-01-08 Thread Jorge Vargas
On 1/7/07, Mark Ramm [EMAIL PROTECTED] wrote: I'll *try* updating and extending the widgets' docstrings before I leave on wednesday to ease Christopher's job though... So, are we finally going to use pyDoc for API docs? Ooops, and Florent's ;) no please not pydoc it's ugly. That woud

[TurboGears] Genshi and executing python code?

2007-01-08 Thread iain duncan
I remember there was some noise a while back about Genshi possibly adopting the kid feature of being able to execute arbitrary python code in the template. I find this really useful during prototyping and testing, anyone know if this exists yet in Genshi? Also, can anyone give me opinions on

[TurboGears] Re: ANN: Breve - new template engine for TurboGears, Pylons, Django

2007-01-08 Thread Cliff Wells
Karl Guertin wrote: ZPT, Kid, and Genshi are all well formed XML and should validate unless the schema is written to disallow attributes in a different namespace or the schema depends on the expanded template structure (though you could write your template so that it would work). Ah, I knew

[TurboGears] Re: Trac does not accept file attachments

2007-01-08 Thread Lee McFadden
Well, it's fixed :) So attach patches at your leisure. Lee -- Lee McFadden blog: http://www.splee.co.uk work: http://fireflisystems.com skype: fireflisystems --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[TurboGears] Will Genshi be default in future TurboGears releases?

2007-01-08 Thread Bernardo Torres
Hi, I'm seeing a lot of people transitioning to Genshi due to its flexiblity and I wonder: will it be default in future TurboGears releases? Thanks, Bernardo Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[TurboGears] Re: Will Genshi be default in future TurboGears releases?

2007-01-08 Thread Jorge Godoy
Bernardo Torres [EMAIL PROTECTED] writes: I'm seeing a lot of people transitioning to Genshi due to its flexiblity and I wonder: will it be default in future TurboGears releases? Yes. For TG 2.0. -- Jorge Godoy [EMAIL PROTECTED] --~--~-~--~~~---~--~~

[TurboGears] Genshi vs. Kid and Genshi to Kid Conversion

2007-01-08 Thread Matthew Bevan
Howdy! After examining Genshi as an alternative to Kid (which is working quite nicely for me so far), I can see the following reasons to switch: * Genshi is faster than Kid in many circumstances. * Genshi is non-validating, although I -like- validating. * Genshi provides a mechanism to

[TurboGears] Re: Trac does not accept file attachments

2007-01-08 Thread Florent Aide
On 1/8/07, Jorge Vargas [EMAIL PROTECTED] wrote: [...] I'll really prefer if you guys could hold of patches until it's fix because that just means more work for whoever tests the patch, not to mention that I believe whitespace will get screwed I have been able to refrain until now :) This

[TurboGears] Re: Trac does not accept file attachments

2007-01-08 Thread Florent Aide
On 1/8/07, Lee McFadden [EMAIL PROTECTED] wrote: Well, it's fixed :) So attach patches at your leisure. Super, Thx Lee! Florent. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to

[TurboGears] Re: Doc Sprint next week

2007-01-08 Thread Christopher Arndt
Jorge Vargas schrieb: dont forget this ones http://docs.turbogears.org/1.0/RoughDocs/DocumentationWishList I would separate those into basic, advanced and special topics Basic: - API docs - SimpleWidgetForms - Visit framework - init scripts (options for starting/stopping the CherryPy

[TurboGears] FCGI on Dreamhost - KeyError and NameError in stderror.log

2007-01-08 Thread philroche
Hi Guys, I'm new to Turbogears (version 1.0) and I am trying to get it working using FCGI. I have created an app using tg-admin quickstart. When I try and run tg_fastcgi.fcgi, I get the following errors in stderror.log. KeyError: 'global' NameError: name 'mymoz' is not defined The relevant

[TurboGears] Re: Genshi and executing python code?

2007-01-08 Thread Karl Guertin
On 1/8/07, iain duncan [EMAIL PROTECTED] wrote: I remember there was some noise a while back about Genshi possibly adopting the kid feature of being able to execute arbitrary python code in the template. I find this really useful during prototyping and testing, anyone know if this exists yet

[TurboGears] JavaScript errors with CalendarDatePicker

2007-01-08 Thread Igor Foox
Hi all, I'm trying to use CalendarDatePicker in my app, and am getting strange errors. It seems that the JS files that were supposed to be included by the JSLink are not getting included. When I open the page up in firefox I get the following JS error: 'Calendar is not defined' on the

[TurboGears] Re: Doc Sprint next week

2007-01-08 Thread Karl Guertin
On 1/8/07, Christopher Arndt [EMAIL PROTECTED] wrote: Jorge Vargas schrieb: dont forget this ones http://docs.turbogears.org/1.0/RoughDocs/DocumentationWishList I would separate those into basic, advanced and special topics RoughDocs and the pages linked off of it are freely editable.

[TurboGears] Re: Genshi vs. Kid and Genshi to Kid Conversion

2007-01-08 Thread Karl Guertin
On 1/8/07, Matthew Bevan [EMAIL PROTECTED] wrote: * Genshi is not yet well supported by TurboGears for components like Widgets. ToscaWidgets has a few API changes that allow for Genshi widget definitions. I believe you can mix across templating languages, but Alberto would have to give you

[TurboGears] Re: JavaScript errors with CalendarDatePicker

2007-01-08 Thread Alberto Valverde
On Jan 9, 2007, at 12:45 AM, Igor Foox wrote: Hi all, I'm trying to use CalendarDatePicker in my app, and am getting strange errors. It seems that the JS files that were supposed to be included by the JSLink are not getting included. When I open the page up in firefox I get the

[TurboGears] Re: JavaScript errors with CalendarDatePicker

2007-01-08 Thread Igor Foox
On 8-Jan-07, at 6:57 PM, Alberto Valverde wrote: On Jan 9, 2007, at 12:45 AM, Igor Foox wrote: Hi all, I'm trying to use CalendarDatePicker in my app, and am getting strange errors. It seems that the JS files that were supposed to be included by the JSLink are not getting

[TurboGears] How to use Genshi with widgets?

2007-01-08 Thread Bernardo Torres
I have this code in Genshi: div py:for=w in course${w()} div style=margin:5px / /div (course is a list containing widgets) It renders to: Element u'legend' at 0181E758Element u'div' at 0181E608Element u'div' at 0181E818Element u'div' at 0181E8C0Element u'div' at 0181E7E8 instead of the

[TurboGears] Re: How to use Genshi with widgets?

2007-01-08 Thread Alberto
To display widgets in a genshi template you'll need to wrap them with ET to transform Element trees into genshi streams: ${ET(w())} HTH, Alberto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group.

[TurboGears] Re: How to use Genshi with widgets?

2007-01-08 Thread Bernardo Torres
Awesome! Working perfect. Thanks, Bernardo Torres --~--~-~--~~~---~--~~ 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 To unsubscribe from this

[TurboGears] ignore wildcard words while using AutoCompleteField

2007-01-08 Thread venkatbo
Hi folks, I can basically get the AutoCompleteField widget to work is my app. However, I need to implement a case where: . in the strings (to be matched) maintained on the server-side, I'd like to specify wild-card placeholders like say: Hello Mr. *fill-in*, Are you there

[TurboGears] Re: CherryPy - send uppercase http response headers?

2007-01-08 Thread fumanchu
Elvelind Grandin wrote: HTTP Headers are as far as I know case insensitive. so it's a bug in the older project. I dont think you can force CP into sending uppercase headers. Correct. If you want to hack CP into doing it, just grep for .title() in the source and the offending bits should come

[TurboGears] Re: CherryPy - send uppercase http response headers?

2007-01-08 Thread Bob Ippolito
HTTP headers are indeed case insensitive by specification. However, I have worked on commercial projects in the past where the producers or consumers of HTTP are embedded devices with firmware written in sloppy C by people that don't really know what the hell they're doing... and they're tested

[TurboGears] Re: CherryPy - send uppercase http response headers?

2007-01-08 Thread Karl Guertin
On 1/8/07, Bob Ippolito [EMAIL PROTECTED] wrote: (The particular device I'm remembering to also had a SOAP implementation which was even more brain damaged. It of course didn't use an XML parser or generator anywhere). Oh come on, you know hand parser that's hard-coded for your schema runs

[TurboGears] Plain old stable components vs. future components.

2007-01-08 Thread Leandro Lucarella
Hi, it been a while since I stop looking at this list with attention, and I'm starting a new project in TG. I've followed very closely this list in the past, even submitting some patches, but I never ended up using TG for anything serious (just played with it), so I have (or had =) a pretty well

[TurboGears] Re: Plain old stable components vs. future components.

2007-01-08 Thread Karl Guertin
On 1/8/07, Leandro Lucarella [EMAIL PROTECTED] wrote: snip discussion You've basically got the idea. TurboGears 1.0 is Kid and SQLObject. If those don't fit your needs, you can swap them out with something else. During the push to 2.0 (which is only in the planning stages at the moment), the

[TurboGears] Re: Plain old stable components vs. future components.

2007-01-08 Thread gasolin
I think it's a good point to be well discussed in the incoming doc sprint, and produce some solid guide about the discussion result. It's time to do something for this situation. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[TurboGears] Re: Doc Sprint next week

2007-01-08 Thread Mark Ramm
How will contribution work if we wan't to add source code docs? Will we sent patches? Who will review commit them? I can take care of that, but lets not make tickets cause we'll do a lot of them maybe just use the paste or email or something. My thought was to have a general Improve the

[TurboGears] Re: Doc Sprint next week

2007-01-08 Thread Jorge Vargas
On 1/9/07, Mark Ramm [EMAIL PROTECTED] wrote: How will contribution work if we wan't to add source code docs? Will we sent patches? Who will review commit them? I can take care of that, but lets not make tickets cause we'll do a lot of them maybe just use the paste or email or

[TurboGears] Re: Turbogears Ubuntu dependencies (please read if ur in this platform)

2007-01-08 Thread Jeff Hinrichs - DMT
On 1/8/07, Jorge Vargas [EMAIL PROTECTED] wrote: On 1/8/07, Jeff Hinrichs - DMT [EMAIL PROTECTED] wrote: On 1/7/07, Glenn Davy [EMAIL PROTECTED] wrote: hi jorge ive only got ubuntu here atm (except for one win32 box, booted occassionally) - i'll see what I can discover, but can I

[TurboGears] Re: RuntimeError: dictionary changed size during iteration

2007-01-08 Thread Adam M Peacock
I am also getting this error on Mac OS X 10.4 with MacPython 2.4 (fresh install of MacPython). It doesn't happen on my Windows or Linux boxes, just my mac box. On Jan 4, 2007, at 5:39 AM, Ksenia wrote: Hi, (Cant fill the ticket... I forgot how to register on trac. My old login

[TurboGears] Re: RuntimeError: dictionary changed size during iteration

2007-01-08 Thread Matthew Bevan
+1 I too have this problem. Matthew Bevan, Systems Administrator Top Floor Computer Systems Ltd. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

  1   2   >