[TurboGears] Re: dynamic widget.TableForm

2006-01-05 Thread Jeremy Jones
Kevin Dangoor wrote: On 1/4/06, JP Farias [EMAIL PROTECTED] wrote: Is there a way to pass parameters to the callback? I just wanted to pass the **kw the controller method receives to the callback to create the form. No, the callback can't take parameters. However, cherrypy.request

[TurboGears] Re: kid problem in turbogear

2006-01-05 Thread Lee McFadden
Enumerate may be your friend here: ?python pages = ['one','two','three','two'] ? div py:strip=True py:for=i,pagename in enumerate(pages) a href=${std.url('/%s' % pagename)} py:content=pagenameContent/a span class=separator py:if=len(pages) i|/span /div Now, I can't quite remember, but

[TurboGears] Re: How to avoid importing SQLObjectNotFound

2006-01-05 Thread Lee McFadden
I'm curious as to why you don't want to import SQLObjectNotFound. With SQLObjectNotFound in the except statement it's perfectly clear as to when you want the exception to be handled and when you don't. LookupError may cover other things in your try block and could cause bugs down the road. On

[TurboGears] Re: how to recover from aborted transaction

2006-01-05 Thread Kevin Dangoor
Note also that TurboGears 0.9 makes the hub.begin(), commit() and end() automatic. Kevin On 1/5/06, Olivier Favre-Simon [EMAIL PROTECTED] wrote: Unless I miss something, this much more simple code should work: n = 'a subject' hub.begin() try: rs =

[TurboGears] Re: Connections with existing SQLObject classes

2006-01-05 Thread Kevin Dangoor
Hi Randall, You don't *have* to use one of those two hubs unless you want TurboGears' database features (TG config file for the connection URI, automatic connection per thread, automatic transactions in 0.9). Setting _connection on the class to the hub is a fine way to set the hub. You might

[TurboGears] Re: Announcing Scaffolding - A CMS for Turbogears

2006-01-05 Thread Cliff Wells
Karl Guertin wrote: On 1/4/06, Gábor Farkas [EMAIL PROTECTED] wrote: an interesting discussion about this to trigger or not to trigger issue was spawned based in a blog entry on David Heinemeier Hansson's (ruby on rails...) blog: http://www.loudthinking.com/arc/000516.html You'll

[TurboGears] Re: SQLObject Help

2006-01-05 Thread zgoda
The doc you mention says it's possible. You can use the keyword arguments orderBy to create ORDER BY in the select statements: orderBy takes a string, which should be the database name of the column, or a column in the form Person.q.firstName. You can use -colname to specify descending order,

[TurboGears] TurboStan 0.7

2006-01-05 Thread Cliff Wells
Hot on the tails of 0.5, because 0.6 was boring, TurboStan 0.7 is released. I probably wouldn't have mentioned it except that there are a couple important bugfixes and a new feature that everyone (well, me) was screaming for: template inheritance. From the Changelog (since 0.5): - Added std

[TurboGears] Re: Connections with existing SQLObject classes

2006-01-05 Thread Michael Schneider
Kevin, Is ticket #77 (the SQLObject classes) must be defined in model.py? http://trac.turbogears.org/turbogears/ticket/77 I started my project in a similar situation. I imported my SQLObjects into model.py and it did not work. I ended up, pasting all of my objects into model.py. This gets

[TurboGears] Re: TurboStan 0.7

2006-01-05 Thread Michael Schneider
Thanks Cliff, That is a great feature. I am stuck in meetings this morning, but look forward to trying it out this afternoon. Mike

[TurboGears] Re: TurboStan 0.7

2006-01-05 Thread [EMAIL PROTECTED]
What python modules we need to install TurboStan? Nevow (zope ???) turbogears

[TurboGears] Re: Announcing Scaffolding - A CMS for Turbogears

2006-01-05 Thread Kevin Dangoor
On 1/5/06, Cliff Wells [EMAIL PROTECTED] wrote: What I took away from this article is the sense that while David is a brilliant programmer with an uncanny sense of where to ride the line on many ideas, he's not really a database guy. In fact, I'd say he'd probably happily agree, judging from

[TurboGears] Re: SQLObject Help

2006-01-05 Thread Ksenia Marasanova
2006/1/5, zgoda [EMAIL PROTECTED]: The doc you mention says it's possible. You can use the keyword arguments orderBy to create ORDER BY in the select statements: orderBy takes a string, which should be the database name of the column, or a column in the form Person.q.firstName. You can

[TurboGears] What is sqlobject-history meant for?

2006-01-05 Thread Soni Bergraj
Hello, tg-admin quickstart creates a directory 'sqlobject-history' and I'm really puzzled what it's meant for? Didn't found something useful in the archives. Thanks, -- Soni Bergraj

[TurboGears] Re: Connections with existing SQLObject classes

2006-01-05 Thread Kevin Dangoor
On 1/5/06, Michael Schneider [EMAIL PROTECTED] wrote: I started my project in a similar situation. I imported my SQLObjects into model.py and it did not work. I ended up, pasting all of my objects into model.py. This gets ugly as your model gets complicated (many SQLObjects). I agree.

[TurboGears] sqlwidgets

2006-01-05 Thread Randall
I think sqlwidgets is a great idea and I'm determined not to duplicate data and logic in my forms. Referring to formmaker.column_params, couldn't you use column.validator as the validator by default? Also, could there be a use for these attributes? foreignKey: for creating a list or search to

[TurboGears] Re: Announcing Scaffolding - A CMS for Turbogears

2006-01-05 Thread Karl Guertin
On 1/5/06, Cliff Wells [EMAIL PROTECTED] wrote: It's well-known that language to a large extent limits what you can express. I'm not entirely sure about 'express', but the definitely affect how you think. This is the Sapir-Whorf Hypothesis.

[TurboGears] Re: fastdata DataController does not coerce types

2006-01-05 Thread Randall
True. Where should the limit be defined? I think the select list could be created using convention. In my experience, an id/name combo is the most often used. With SQLObject, even if you don't have a name field, it is easy to add a method for it. I'm implementing this now. Will check back.

[TurboGears] Problems installing pysqlite on Linux

2006-01-05 Thread Michael Schneider
Hello All, This is a specific question on linux, sqlite, pysqlite. Sorry to ask such a specific question to this group, but my email to the pysqlite is awaiting moderator approval. Any help would be very apreciated. Thanks Mike

[TurboGears] Static Site question

2006-01-05 Thread SamFeltus
Maybe there should be some marker to put on your CherryPy pages, for an option to publish all marked pages, with associated JavaScript, images, CSS, etc, as a static site. Perhaps publish as a tar file or FTP to a site? I haven't seen this feature (am I blind). Seems to me it oughta be added,

[TurboGears] Re: Attention: people running TurboGears 0.9 out of SVN

2006-01-05 Thread markc
This seemed to work for me (ubuntu/breezy)... cd /path/to/svn/turbogears svn up . python ez_setup.py setuptools python ez_setup.py http://www.turbogears.org/download/eggs/PasteScript-0.4dev_r4192-py2.4.egg python ez_setup.py

[TurboGears] Re: fastdata DataController does not coerce types

2006-01-05 Thread Randall
Check this out. I added this to formmaker.py It creates a select box if your SQLObject class has an attribute named 'option_name'. option_name should be configurable. Really cool I think! # Added to handle foreign keys. def column_widget_fk_col(column): parms = column_parms(column)

[TurboGears] Re: sqlwidgets

2006-01-05 Thread Randall
Forgive me for cross posting, but this really belongs under sqlwidgets. I think sqlwidgets rocks! Check this out. I added this to formmaker.py It creates a select box if your SQLObject class has an attribute named 'option_name'. option_name should be configurable. Really cool I think! # Do

[TurboGears] Re: What is sqlobject-history meant for?

2006-01-05 Thread Jeff Grimmett
I think that's used for database backup and restore (upgrade?).On 1/5/06, Soni Bergraj [EMAIL PROTECTED] wrote: Hello,tg-admin quickstart creates a directory 'sqlobject-history' and I'm really puzzled what it's meant for?Didn't found something useful in the archives.Thanks,--Soni Bergraj-- I never

[TurboGears] Re: What is sqlobject-history meant for?

2006-01-05 Thread Karl Guertin
On 1/5/06, Jeff Grimmett [EMAIL PROTECTED] wrote: I think that's used for database backup and restore (upgrade?). My guess is that eventually it'll be a db migration feature like rails has.

[TurboGears] Re: tg-admin sql create failing with MySQL 3.23

2006-01-05 Thread Kevin Dangoor
I just double checked this, and I think you must be using an AutoConnectHub rather than a PackageHub. This behavior is actually implemented in PackageHub. Kevin On 1/4/06, Mike Kent [EMAIL PROTECTED] wrote: I decided to try TurboGears 0.9 (svn) on another linux box at work, which has MySQL

[TurboGears] Re: What is sqlobject-history meant for?

2006-01-05 Thread Kevin Dangoor
usage: tg-admin sql record [options] Record historical information about the database status Record state of table definitions. The state of each table is written out to a separate file in a directory, and that directory forms a version. A table is also added to you datebase

[TurboGears] Re: Proposal: Visitor Tracking

2006-01-05 Thread Michele Cella
Kevin Dangoor wrote: On 1/3/06, Michele Cella [EMAIL PROTECTED] wrote: Can this be a starting point? http://www.cherrypy.org/changeset/908 Yeah, that's good stuff. Unfortunately, that is likely CherryPy 3.0. It would be nice if we can implement a stopgap before then. Good news (if I'm

[TurboGears] Re: Problems installing pysqlite on Linux

2006-01-05 Thread [EMAIL PROTECTED]
Michael, I had a similar problem (the exact same message from the import, actually), and I eventually solved it by fixing my LD_LIBRARY_PATH to include 'libsqlite3.so.0' I think you're having the same problem. When I do ldd on _sqlite.so, I get this: [phedex]

[TurboGears] Re: tg-admin sql create failing with MySQL 3.23

2006-01-05 Thread Karl Guertin
On 1/5/06, Mike Kent [EMAIL PROTECTED] wrote: Now, it's true that this model.py, and my entire project, was originally created for TG 0.8, and moved over to a new project using TG 0.9. Could this be a factor? I just quickstarted a project from scratch (r457) and I'm still seeing the issue.

[TurboGears] 1000+ Users Subscribed

2006-01-05 Thread Jared Kuolt
Some time between Tuesday and today we passed the 1000 users mark on the mailing list! Congratulations to all involved, especially Kevin The Danger Dangoor! -- [EMAIL PROTECTED]

[TurboGears] escaping text for kid templates...

2006-01-05 Thread Jonathan LaCour
I am seeing a bug in a TurboGears application that I have in production where people are entering text in textile format. I am saving this text in the database, and on the way out textile encoding it, and passing it into a kid template, which then includes the string in the template

[TurboGears] Re: 1000+ Users Subscribed

2006-01-05 Thread Kevin Dangoor
On 1/5/06, Jared Kuolt [EMAIL PROTECTED] wrote: Some time between Tuesday and today we passed the 1000 users mark on the mailing list! Congratulations to all involved, especially Kevin The Danger Dangoor! Boy, I sure hope The Danger that doesn't stick. I haven't been planning to enter pro

[TurboGears] Re: tg-admin sql create failing with MySQL 3.23

2006-01-05 Thread Kevin Dangoor
On 1/5/06, Mike Kent [EMAIL PROTECTED] wrote: From the top of my model.py: from sqlobject import * from turbogears.database import PackageHub hub = PackageHub(books) __connection__ = hub Now, it's true that this model.py, and my entire project, was originally created for TG 0.8, and

[TurboGears] Re: Proposal: Visitor Tracking

2006-01-05 Thread Kevin Dangoor
On 1/5/06, Michele Cella [EMAIL PROTECTED] wrote: Good news (if I'm not mistake), it seems as this (or sort of) has found its way into CP trunk (2.2): http://www.cherrypy.org/ticket/145 Gadzooks. All hail the mighty Fumanchu! This puts me in a bit of a quandry as far as CP 2.2 is concerned.

[TurboGears] Re: escaping text for kid templates...

2006-01-05 Thread Kevin Dangoor
Hi Jonathan, You might want to try cgi.escape. There was a change made to Kid that gives it (some|all) of the common HTML entities. Kevin On 1/5/06, Jonathan LaCour [EMAIL PROTECTED] wrote: I am seeing a bug in a TurboGears application that I have in production where people are entering

[TurboGears] Re: Proposal: Visitor Tracking

2006-01-05 Thread Michele Cella
Kevin Dangoor wrote: Gadzooks. All hail the mighty Fumanchu! :-) This puts me in a bit of a quandry as far as CP 2.2 is concerned. IMHO, this is a hugely important feature for a variety of reasons. I think I'll work on clearing the TurboGears 0.9 queue in Trac and then decide whether CP

[TurboGears] Re: Catwalk hates me

2006-01-05 Thread [EMAIL PROTECTED]
hi, i got the same empty page comming from catwalk request solved with: tg.allow_json = True in dev.cfg and prod.cfg andre

[TurboGears] Re: Proposal: Visitor Tracking

2006-01-05 Thread Ben Bangert
I would also consider the flexibility and re-usability of middleware to be a big assist too since it will allow a variety of talented developers using multiple frameworks ways to consolidate efforts. Some examples of current middleware in Paste: - Eval Exception (that awesome AJAX-based

[TurboGears] Re: Dynamic setting of config options (e.g., database URI)

2006-01-05 Thread markc
This is the very first time I have ever messed with python code and only then with help from #python. I know there are probably a zillion righteous ways to do it but this actually works, for me. Aim; to provide a dynamic default database value to TurboGears so that no config file(s) have to be

[TurboGears] Re: Made a filter similar to variablesdecode()

2006-01-05 Thread Igor Murashkin
Sorry to double post, but a cleaned up and tested version is here, in the cherrypy wiki: http://www.cherrypy.org/wiki/NestedListFilter There is also an example of a FormEncode schema.. very easy to set them up now that this filter does a lot of grunt work :).

[TurboGears] Re: Stripping 'submit' argument from validated form input inconsistent

2006-01-05 Thread Michele Cella
Kevin Dangoor wrote: On 1/4/06, Keir Mierle [EMAIL PROTECTED] wrote: The devcast says that the submit argument is removed from the form parameters when passed via the inputform; hence there is no 'submit' parameter to signup_confirm(). This works great, but only when there is no

[TurboGears] Re: escaping text for kid templates...

2006-01-05 Thread Jonathan LaCour
Thanks Kevin, this worked like a champ once I upgraded to TurboGears 0.8.7 (it didn't seem to work before). Thanks for letting me know about this, I seemed to miss the change during my holiday vacation! -- Jonathan On Jan 5, 2006, at 1:39 PM, Kevin Dangoor wrote: Hi Jonathan, You

[TurboGears] nl2br for Kid?

2006-01-05 Thread Jared Kuolt
Is there a simple solution for newline-to-br (nl2br) in Kid? Simple explantation, I need something that will escape all HTML entities then add a br/ at every newline. Thanks in advance, Jared Kuolt -- [EMAIL PROTECTED]

[TurboGears] Re: nl2br for Kid?

2006-01-05 Thread Bob Ippolito
Something like this, I guess: span py:for=line in line.splitlines()${line}br//span On Jan 5, 2006, at 12:58 PM, Jared Kuolt wrote: Is there a simple solution for newline-to-br (nl2br) in Kid? Simple explantation, I need something that will escape all HTML entities then add a br/ at every

[TurboGears] Re: nl2br for Kid?

2006-01-05 Thread Jared Kuolt
Works for me, thanks! On 1/5/06, Bob Ippolito [EMAIL PROTECTED] wrote: Something like this, I guess: span py:for=line in line.splitlines()${line}br//span On Jan 5, 2006, at 12:58 PM, Jared Kuolt wrote: Is there a simple solution for newline-to-br (nl2br) in Kid? Simple

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Richard (koorb)
Just going to throw this on the table quickly for some feedback http://koorb.co.uk/static/images/tglogos/layouts/blue-light-2.png

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Ronald Jaramillo
Hi, Short comments: - The download box should left align with the 'Learn fast column - Green for the download is ok (kind of a convention this days), but orange will be better for the other links so they could play up to to the golden gear. - What about a blue bar at the bottom repeating

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Jared Kuolt
I like most of it, except that green candy-looking Download Now button makes the whole amalgamation remind me of KDE. On 1/5/06, Richard (koorb) [EMAIL PROTECTED] wrote: Just going to throw this on the table quickly for some feedback

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Michele Cella
Ronald Jaramillo wrote: Hi, Short comments: - The download box should left align with the 'Learn fast column - Green for the download is ok (kind of a convention this days), but orange will be better for the other links so they could play up to to the golden gear. - What about a blue

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Karl Guertin
On 1/5/06, Richard (koorb) [EMAIL PROTECTED] wrote: Just going to throw this on the table quickly for some feedback http://koorb.co.uk/static/images/tglogos/layouts/blue-light-2.png Excellent grid and hiearchy. The following are my nits, I don't expect them to be mocked up, but please

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Karl Guertin
On 1/5/06, Karl Guertin [EMAIL PROTECTED] wrote: Excellent grid and hiearchy. The following are my nits, I don't expect them to be mocked up, but please incorporate them when you're doing the actual design: One last one -- and I know this is really out there and I think I'm the only one that

[TurboGears] devcasts - DataController

2006-01-05 Thread Helio MC Pereira
Hi all, Is there a way to control the access to FastData/Crud thru turbogears.identity??? Something like: class Root(controllers.RootController): @turbogears.expose(template=wgstock.templates.welcome) def index(self): import time return dict(now=time.ctime()) class

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Michele Cella
Michele Cella wrote: Agreed, I really like the 1) 2) 3) slogan but I think we can find better words for Run and Visit (Quickstart is ok)... by the way I don't know what we can use! :P 1) Quickstart 2) Run 3) Gear Up !? Ok, time to sleep. :-) Ciao Michele

[TurboGears] Re: Problems installing pysqlite on Linux

2006-01-05 Thread Michael Schneider
Thank you very much. I tried your trick, and I could not get it to go. I bit the bullet, and did a static link against sqlite3, and that worked. I wish that I could get the dynamic lib going, but I am going to start with this. Thank you very much, Mike

[TurboGears] Re: TurboStan 0.7

2006-01-05 Thread Cliff Wells
[EMAIL PROTECTED] wrote: What python modules we need to install TurboStan? TurboGears = 0.9 Nevow (I think Nevow may have a dependency on zope.interfaces) Regardless, you should be able to use easy_install TurboStan and not worry about this too much. Cliff Nevow (zope ???) turbogears

[TurboGears] Extending TG objects

2006-01-05 Thread Stephen Thorne
I'm having a bit of problem with inheritance. Because of @turbogears.expose() I can't seem to be able to do this: class MyClass(ParentClass): @turbogears.expose(self, args): def foo(self): d = super(MyClass, self).foo() d.update(dict(bar='baz')) return d

[TurboGears] Re: Stripping 'submit' argument from validated form input inconsistent

2006-01-05 Thread Igor Murashkin
I agree. There is no reason for the submit button to have a name unless it's given an explicit value that the back-end wants to track. Only in that case should it be given a name (but then it should be sent to the method as well).

[TurboGears] Re: how to recover from aborted transaction

2006-01-05 Thread [EMAIL PROTECTED]
Just out of curiosity why you want a transaction that affects only one table?

[TurboGears] Re: Made a filter similar to variablesdecode()

2006-01-05 Thread Igor Murashkin
That's a good question. You could if you want, but I suppose that would make javascript harder. document.form_name['var.name'][0] is slightly better then document.form_name['var-1.name']. Plus, I haven't tried NestedVariables in complement with @turbogears.expose. If you do it like that, then

[TurboGears] Re: Extending TG objects

2006-01-05 Thread Bob Ippolito
On Jan 5, 2006, at 4:17 PM, Stephen Thorne wrote: I'm having a bit of problem with inheritance. Because of @turbogears.expose() I can't seem to be able to do this: class MyClass(ParentClass): @turbogears.expose(self, args): def foo(self): d = super(MyClass, self).foo()

[TurboGears] Re: Made a filter similar to variablesdecode()

2006-01-05 Thread Karl Guertin
On 1/5/06, Igor Murashkin [EMAIL PROTECTED] wrote: That's a good question. You could if you want, but I suppose that would make javascript harder. document.form_name['var.name'][0] is slightly better then document.form_name['var-1.name']. Plus, I haven't tried NestedVariables in complement

[TurboGears] Re: sqlwidgets

2006-01-05 Thread [EMAIL PROTECTED]
you have to be carefull on how automated the data is going in and out of the DB, because that could lead to SQLinjection attacks.

[TurboGears] Re: Extending TG objects

2006-01-05 Thread Stephen Thorne
Bob Ippolito wrote: That should work perfectly fine, given a correct turbogears.expose call of course. How about you show a full example that doesn't work and also post the traceback? This was a PEBKAC, sorry. -- Regards, Stephen Thorne Development Engineer Scanned by the NetBox from

[TurboGears] Re: Static Site question

2006-01-05 Thread [EMAIL PROTECTED]
I'm sorry I don't think I undestand well. Do you mean generating a dinamic page and saving the output to a html file so you could later on use that standalone? if so it's should be really easy (i'm especulating but) I bet all you have to do is intercept the file-like object that kid returns and

[TurboGears] customization of datacontroller messages and translation

2006-01-05 Thread Ksenia Marasanova
Hi, I wonder what would be the preferred way to customize datacontroller messages (things like Record deleted!)? Maybe all messages should go to a class variable: class DataController(BaseDataController): messages = dict( delete='Record deleted!', add='Record added!',

[TurboGears] Re: how to recover from aborted transaction

2006-01-05 Thread Soni Bergraj
Just out of curiosity why you want a transaction that affects only one table? Because of the concurrency of several web clients. -- Soni Bergraj

[TurboGears] Re: customization of datacontroller messages and translation

2006-01-05 Thread Soni Bergraj
Hello, is somebody aware of a way to get Cheetah templates working with 0.8.7? I tried http://trac.turbogears.org/turbogears/ticket/214 but the patch is rejected. Any ideas? -- Soni Bergraj

[TurboGears] Getting Cheetah templates to work with 0.8.7?

2006-01-05 Thread Soni Bergraj
Sorry for the wrong subject of the previous message:) Hello, is somebody aware of a way to get Cheetah templates working with 0.8.7? I tried http://trac.turbogears.org/turbogears/ticket/214 but the patch is rejected. Any ideas? -- Soni Bergraj

[TurboGears] Re: Getting Cheetah templates to work with 0.8.7?

2006-01-05 Thread Karl Guertin
On 1/5/06, Soni Bergraj [EMAIL PROTECTED] wrote: but the patch is rejected. Any ideas? Move to SVN or wait a week or two for 0.9. Kevin has said that he wants 1.0 by pycon, which is at the end of Feb, so that doesn't leave too much time for two major point releases.

[TurboGears] [Test] Please ignore this

2006-01-05 Thread Anthoni Shogan
not getting mails from tg list since december 27.

[TurboGears] Re: Announcing Scaffolding - A CMS for Turbogears

2006-01-05 Thread Cliff Wells
Kevin Dangoor wrote: Actually, I do think that both styles (application database, integration database) have merit for certain apps. Here's where application databases make some amount of sense: 1) newfangled, Web 2.0 applications and web services. Things like Backpack (surprise, surprise!),

[TurboGears] Re: devcasts - DataController

2006-01-05 Thread Leandro Lucarella
Helio MC Pereira, el jueves 5 de enero a las 23:18 me escribiste: Hi all, Is there a way to control the access to FastData/Crud thru turbogears.identity??? Something like: class Root(controllers.RootController): @turbogears.expose(template=wgstock.templates.welcome)

[TurboGears] Re: customization of datacontroller messages and translation

2006-01-05 Thread Leandro Lucarella
Ksenia Marasanova, el viernes 6 de enero a las 02:20 me escribiste: Hi, I wonder what would be the preferred way to customize datacontroller messages (things like Record deleted!)? Maybe all messages should go to a class variable: I gess messages in DataController just have to user _()

[TurboGears] Re: sqlwidgets

2006-01-05 Thread Randall
Understood, but at what level is input checked? Traditionally, I always used the parameter feature of database drivers, which is a good way to prevent injection. I believe the best place to check for sql injection is at the db api level. Also, the field validators, FormEncode, act as another

[TurboGears] Re: Made a filter similar to variablesdecode()

2006-01-05 Thread Igor Murashkin
Hey Karl, you can do that too, I made this filter earlier, and with your example you would pass almost the same values as you have there: foo.bar: '1' foo.bar: '2' foo.bar: '3' baz : '4' result = { 'foo' : {'bar' : ['1', '2', '3']}, 'baz' : '4'} } Although I'm not as sure as to how you would

[TurboGears] Rewriting static URLs to serve them dynamically

2006-01-05 Thread Clank
Newbie-Q. I have a gaggle of URLs of form /archive/number.html I want to update serve their content dynamically; it's obvious how to get almost-there with URLs like /archive/?number=number but I want the old URLs to work. It's a MovableType site, so there are probably other people with my

[TurboGears] Re: Rewriting static URLs to serve them dynamically

2006-01-05 Thread Robin Munn
On 1/6/06, Clank [EMAIL PROTECTED] wrote: Newbie-Q. I have a gaggle of URLs of form /archive/number.html I want to update serve their content dynamically; it's obvious how to get almost-there with URLs like /archive/?number=number but I want the old URLs to work. It's a MovableType