Plugins for CMS

2007-07-13 Thread Jonas
In AroundWord blog system we are thinking in developing several plugins realated to CMS for our project: * CMS tools slug, tags, comments, feeds, voting, ... * Input parser ReST, Markdown, plain HTML, TinyMCE, ... These plugins will be AroundWord independent, copyrighted to its author/s, and

Re: HTTP_NOT_FOUND Error?

2007-07-13 Thread voltron
Ok, Thanks! On Jul 12, 12:05 pm, Alexandre CONRAD [EMAIL PROTECTED] wrote: Alexandre CONRAD wrote: This code generates a link, which could result in such error when clicking on it: h.url_for(controller=mycontroller, action=HTTP_NOT_FOUND.html.var) Actually, this doesn't generate a link

Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron
This is making me go crazy. I have a form that is using Jquery and a plugin for validation. from the server, rendered from pylons, clicking on the submit buttons just send the form, no matter what. The same form, embedded in a standalone HTML file works very well, and never tries to submit the

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
Dear voltron, Routes uses the rules to figure out what controller and action to pass the request to. I can get complicated, but once your request has been passed to your controller routes does very little. I'm not sure what you mean by the standalone html works but a rendered page does not. I'm

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
Which plugins are you using? On 7/13/07, voltron [EMAIL PROTECTED] wrote: This is making me go crazy. I have a form that is using Jquery and a plugin for validation. from the server, rendered from pylons, clicking on the submit buttons just send the form, no matter what. The same form,

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron
I´m using this plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Jul 13, 9:15 pm, Jose Galvez [EMAIL PROTECTED] wrote: Which plugins are you using? On 7/13/07, voltron [EMAIL PROTECTED] wrote: This is making me go crazy. I have a form that is using Jquery

putting binary data into the response

2007-07-13 Thread Jose Galvez
Hi all, I know this should be simple but I can't find the answer anywhere, I have some images in a database that I need to send to a webpage. So I have a simple controller that should just send the binary data but I can't find how to stuff binary data into the response object. here is my code

Re: putting binary data into the response

2007-07-13 Thread Christoph Haas
On Fri, Jul 13, 2007 at 01:09:06PM -0700, Jose Galvez wrote: Hi all, I know this should be simple but I can't find the answer anywhere, I have some images in a database that I need to send to a webpage. So I have a simple controller that should just send the binary data but I can't find how

Re: putting binary data into the response

2007-07-13 Thread Jose Galvez
Nope just stuffed them into the database as blobs On 7/13/07, voltron [EMAIL PROTECTED] wrote: hmm, did you first convert the image as base 64 before storage? On Jul 13, 10:09 pm, Jose Galvez [EMAIL PROTECTED] wrote: Hi all, I know this should be simple but I can't find the answer

Re: putting binary data into the response

2007-07-13 Thread Jose Galvez
Didn't work, what I get if I look at the Response.content is [read-only buffer for 0x016b00e0, size-1, offset 0, at 0x016b0340] also if I try Response(binaryImage[0:]) the images gets truncated, because its trying to interpret the image as a string Jose On 7/13/07, Christoph Haas [EMAIL

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
I bet thats whats going on too, can I get a link the the actual pylons rendered page? Jose On 7/13/07, Erik Jones [EMAIL PROTECTED] wrote: On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote: Hi Jose! Thanks for your reply. Here is a link to the standalone version. What I mean by

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Erik Jones
On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote: Hi Jose! Thanks for your reply. Here is a link to the standalone version. What I mean by standalone is that it is not rendered by Pylons at all. The static. What drives me crazy is that this static page is an exact copy of what is

Re: putting binary data into the response

2007-07-13 Thread voltron
I think you have to encode it Jose take a look at the return image function here http://mail.python.org/pipermail/python-list/2004-May/261846.html On Jul 13, 10:09 pm, Jose Galvez [EMAIL PROTECTED] wrote: Hi all, I know this should be simple but I can't find the answer anywhere, I have

Re: putting binary data into the response

2007-07-13 Thread voltron
hmm, did you first convert the image as base 64 before storage? On Jul 13, 10:09 pm, Jose Galvez [EMAIL PROTECTED] wrote: Hi all, I know this should be simple but I can't find the answer anywhere, I have some images in a database that I need to send to a webpage. So I have a simple

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron
Yes Erik, the javascript is being included because all the validation fields work except the checkboxes. I use always FireFox and Firebug for testing and debugging, Firebug does not show errors for the page for javascript, CSS or HTML, The console is also empty. No errors. It is a very strange

Re: putting binary data into the response

2007-07-13 Thread Jose Galvez
Thanks everyone for the help in the end I had corrupt data in the database so it was showing me exactly what it was supposed to. Jose On 7/13/07, Jose Galvez [EMAIL PROTECTED] wrote: Didn't work, what I get if I look at the Response.content is [read-only buffer for 0x016b00e0, size-1, offset

Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
That would be great, I'd be happy to test it here if you want to email it to me my email is [EMAIL PROTECTED] Jose On 7/13/07, voltron [EMAIL PROTECTED] wrote: Yes Erik, the javascript is being included because all the validation fields work except the checkboxes. I use always FireFox and

Re: Plugins for CMS

2007-07-13 Thread Wichert Akkerman
Previously Jonas wrote: In AroundWord blog system we are thinking in developing several plugins realated to CMS for our project: * CMS tools slug, tags, comments, feeds, voting, ... * Input parser ReST, Markdown, plain HTML, TinyMCE, ... These plugins will be AroundWord