Have JavaScript function run after render_response is complete?

2007-05-14 Thread Dan
I am using a prototype Ajax.updater which calls a function in my controller. This successfully updates my div based on the mako template I call in render_response. Once this action is complete, I'd like to run another Javascript function... basically some script.aculo.us effects on the

Re: Have JavaScript function run after render_response is complete?

2007-05-14 Thread Dan
In addition, I like to mention that in RoR I was able to do something like this with RJS templates... which enabled me to do multiple Ajax manipulations to a page. Can't seem to figure out how this works in Pylons. Thanks! page.insert_html :bottom, 'list', content_tag(li,

AuthKit bails out on Unicode usernames

2007-05-14 Thread Christoph Haas
Hi, list... I'm using AuthKit in my application and seem to have trouble when the login form gets me the username as a Unicode string. I use the famous line: form_username = request.params.get('username') request.environ['paste.auth_tkt.set_user'](form_username) This leads to Unicode errors (I

Re: AuthKit bails out on Unicode usernames

2007-05-14 Thread James Gardner
Hi Christoph, I've just tested AuthKit 0.4 with an Arabic username and yes, there is a problem because the browser encodes the Arabic as HTML entities because there is no charset specified when the form is produced. Other than that it all seems to work fine. Is it considered standard practice

Re: AuthKit bails out on Unicode usernames

2007-05-14 Thread James Gardner
Hi Christoph, If you use the latest AuthKit 0.4 and specify: form_charset=UTF-8 to the authenticate middleware you should find your unicode strings work OK. You'll need to make sure your Python source files are properly encoded though so the users information correctly picks up the unicode

Re: Pylons (Kid? Paste?) converting my XHTML to HTML

2007-05-14 Thread [EMAIL PROTECTED]
Cheers for the suggestion but it doesn't seem to have any effect. I realise I'm probably posting in the wrong group, but I'd rather let Pylons take care of Kid so any Pylons solution is going to be easier (rather than wrangling Kid directly and bypassing Pylons here). I'm confident it's probably

Bad cookies (authkit cookie name clash)

2007-05-14 Thread Christoph Haas
Today I had a weird problem and wanted to post the solution just so other people who have the same trouble may find it in the archives. :) I had a Bad cookie, you have been signed out. when using the forward method of AuthKit. It always happened to me when submitting the signin form that

Re: RDF backed Pylons

2007-05-14 Thread Philip Cooper
On May 11, 8:19 pm, Kendall Clark [EMAIL PROTECTED] wrote: On May 11, 2007, at 9:57 PM, Chris K Wensel wrote: Was wondering if anyone has any experience using an RDF store with Pylons? We've (http://clarkparsia.com/) built an app for NASA using Pylons and the Sesame RDF database. In

Re: Pylons (Kid? Paste?) converting my XHTML to HTML

2007-05-14 Thread [EMAIL PROTECTED]
In addition to the above I changed middleware.py to have the following: config.template_engines.pop()#remove myghty kidopts = {'kid.outputformat':'xhtml','kid.assume_encoding':'utf-8', 'kid.encoding':'utf-8'} config.add_template_engine('kid', 'familiarsserver.templates', kidopts) according to

Re: RDF backed Pylons

2007-05-14 Thread Kendall Clark
On May 14, 2007, at 12:38 PM, Graham Higgins wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12 May 2007, at 02:57, Chris K Wensel wrote: Was wondering if anyone has any experience using an RDF store with Pylons? I've been using rdflib directly. I didn't see much point in

Re: RDF backed Pylons

2007-05-14 Thread Chris K Wensel
Have you had a look at Oort? (The main site is unresolvable at the moment, try: http://groups.google.com/group/oort Or Carmen might be of interest: https://carmen.dreamlab.net/ whit morriss' tagger may provide some food for thought: http://www.openplans.org/projects/yucca/install-tagger

Re: RDF backed Pylons

2007-05-14 Thread Chris K Wensel
Have you looked carefully at ActiveRDF? I'm not convinced that's the right way to go either, but a port to Python (WSGI, perhaps, if not directly to Pylons) would be useful. (I'd really rather see RDFAlchemy finished or something more LINQ-like.) it was ActiveRDF that sparked my interest

Re: RDF backed Pylons

2007-05-14 Thread Chris K Wensel
OK, That's my fault. Incomplete, yes. Stalled, no. In fact I have some updates I will try to post later this week. I am still using it with rdflib and not sesame yet. This way makes for great pylons-paste deployment. the website left me a little confused. will it let me round-trip