Plugins for CMS
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 licensed under LGPL, MIT/X11, or New BSD (MIT is preferred over New BSD because is more simple). As any project of TurboGears or Pylons will be able to be plugged in since we will use ToscaWidges, we'll achieve that more people contribute and so its development will be faster. I hope that. Bruce Wang suggested the Trac's plugin architecture [1]. It's simple and straight, but powerful too. And I agree. [1] http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture We want to create the initial skeleton with a basic functionality of some of those plugins, using jQuery and Mako (because is faster than Genshi). Any contribution will be welcome! And if someone is interested please contact me for don't duplicate work. Thanks! In code.google.com there are projects based on Django that are working about those components for if you are interested on some of them so the development would be more easy. http://code.google.com/p/django-tagging/ http://code.google.com/p/django-discussion/ http://code.google.com/p/django-voting/ http://code.google.com/p/django-score-voting/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: HTTP_NOT_FOUND Error?
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 (rather use h.link_to function), but you get the idea. Regards, -- Alexandre CONRAD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Routes/Pylons shortcircuiting Javascript validation
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 form till it is properly validated, I have been at this for almost two days now and the problem seems to be by Pylons/Routes. I have made several diffs of the rendered page and the standalone, no difference. My questions; what exactly gets triggered when one clicks on a submit button? What are the chain of events.does anyone have any idea what I ´m doing wrong? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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 not familir with jquery (I'll look that up right now), but I would assume the problem your having is with links back to the plugin not working? could you post some example code of what works and what does not? Jose 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, embedded in a standalone HTML file works very well, and never tries to submit the form till it is properly validated, I have been at this for almost two days now and the problem seems to be by Pylons/Routes. I have made several diffs of the rendered page and the standalone, no difference. My questions; what exactly gets triggered when one clicks on a submit button? What are the chain of events.does anyone have any idea what I ´m doing wrong? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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, embedded in a standalone HTML file works very well, and never tries to submit the form till it is properly validated, I have been at this for almost two days now and the problem seems to be by Pylons/Routes. I have made several diffs of the rendered page and the standalone, no difference. My questions; what exactly gets triggered when one clicks on a submit button? What are the chain of events.does anyone have any idea what I ´m doing wrong? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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 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 form till it is properly validated, I have been at this for almost two days now and the problem seems to be by Pylons/Routes. I have made several diffs of the rendered page and the standalone, no difference. My questions; what exactly gets triggered when one clicks on a submit button? What are the chain of events.does anyone have any idea what I ´m doing wrong? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
putting binary data into the response
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 def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: putting binary data into the response
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 to stuff binary data into the response object. here is my code def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing I have written a function that returns XML. It looks like: response = pylons.Response(the_actual_xml_string) response.headers['content-type'] = text/xml return response Would that help? I just didn't use .write() here. Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: putting binary data into the response
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 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 def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: putting binary data into the response
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 PROTECTED] wrote: 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 to stuff binary data into the response object. here is my code def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing I have written a function that returns XML. It looks like: response = pylons.Response(the_actual_xml_string) response.headers['content-type'] = text/xml return response Would that help? I just didn't use .write() here. Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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 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 rendered from Pylons http://www.nhytro.de/val/validation.html I´m sorry if its in German, but a quick test is to press the submit button, the page does not get sent as expected, but when this page is rendered from Pylons, it gets sent no matter what. Thanks Regardless of what's being rendered, are you sure that your jquery and other js files, especially register.js are being included? When debugging javascript issues, you really should be working in Firefox and using the Firebug plugin. Load the page, open the Firebug pane, click on Script and then click on the little down arrow just above the word Script and you can see exactly what files were served. When you call $('#register_form').validate(...) in register.js what that's essentially doing is using your plugin to set up an event handler for when the form is submitted. So, if any of the js files aren't being delivered, things won't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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 rendered from Pylons http://www.nhytro.de/val/validation.html I´m sorry if its in German, but a quick test is to press the submit button, the page does not get sent as expected, but when this page is rendered from Pylons, it gets sent no matter what. Thanks Regardless of what's being rendered, are you sure that your jquery and other js files, especially register.js are being included? When debugging javascript issues, you really should be working in Firefox and using the Firebug plugin. Load the page, open the Firebug pane, click on Script and then click on the little down arrow just above the word Script and you can see exactly what files were served. When you call $('#register_form').validate(...) in register.js what that's essentially doing is using your plugin to set up an event handler for when the form is submitted. So, if any of the js files aren't being delivered, things won't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: putting binary data into the response
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 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 def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: putting binary data into the response
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 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 def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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 situation, maybe some wonky stuff going on because I´m proxying to the Pylons server. @ Jose I have´nt put in on a public server yet, its running on a local workstation. I could give you the template and content to render in a test app though. Thanks On Jul 13, 10:21 pm, 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 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 rendered from Pylons http://www.nhytro.de/val/validation.html I´m sorry if its in German, but a quick test is to press the submit button, the page does not get sent as expected, but when this page is rendered from Pylons, it gets sent no matter what. Thanks Regardless of what's being rendered, are you sure that your jquery and other js files, especially register.js are being included? When debugging javascript issues, you really should be working in Firefox and using the Firebug plugin. Load the page, open the Firebug pane, click on Script and then click on the little down arrow just above the word Script and you can see exactly what files were served. When you call $('#register_form').validate(...) in register.js what that's essentially doing is using your plugin to set up an event handler for when the form is submitted. So, if any of the js files aren't being delivered, things won't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: putting binary data into the response
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 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 PROTECTED] wrote: 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 to stuff binary data into the response object. here is my code def photo(self, id): sac = model.sac q = sac.query binaryImage = q(model.Students).get(id).photo res = Response() res.headers['Content-type'] = 'image/jpeg' res.write(binaryImage) return res which displays nothing I have written a function that returns XML. It looks like: response = pylons.Response(the_actual_xml_string) response.headers['content-type'] = text/xml return response Would that help? I just didn't use .write() here. Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Routes/Pylons shortcircuiting Javascript validation
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 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 situation, maybe some wonky stuff going on because I´m proxying to the Pylons server. @ Jose I have´nt put in on a public server yet, its running on a local workstation. I could give you the template and content to render in a test app though. Thanks On Jul 13, 10:21 pm, 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 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 rendered from Pylons http://www.nhytro.de/val/validation.html I´m sorry if its in German, but a quick test is to press the submit button, the page does not get sent as expected, but when this page is rendered from Pylons, it gets sent no matter what. Thanks Regardless of what's being rendered, are you sure that your jquery and other js files, especially register.js are being included? When debugging javascript issues, you really should be working in Firefox and using the Firebug plugin. Load the page, open the Firebug pane, click on Script and then click on the little down arrow just above the word Script and you can see exactly what files were served. When you call $('#register_form').validate(...) in register.js what that's essentially doing is using your plugin to set up an event handler for when the form is submitted. So, if any of the js files aren't being delivered, things won't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Plugins for CMS
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 independent, copyrighted to its author/s, and licensed under LGPL, MIT/X11, or New BSD (MIT is preferred over New BSD because is more simple). As any project of TurboGears or Pylons will be able to be plugged in since we will use ToscaWidges, we'll achieve that more people contribute and so its development will be faster. I hope that. Bruce Wang suggested the Trac's plugin architecture [1]. It's simple and straight, but powerful too. And I agree. [1] http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture It may be interesting to look at using zope.interface and zope.component as well. Those provide a very powerful and yet simple component architecture that have seen a lot wider use and testing than the trac CA. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---