Remote Template
hi I would like to call the template from the remote server. Thanks kk -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Remote Template
On Jul 20, 11:22 pm, cd34 mcd...@gmail.com wrote: A rendered template? like ESI? rendered template A remotely mounted filesystem like NFS? Or a socket get of a template to render locally? urllib3? Pyro. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
REMOTE_ADDR
Hi I try to get client IP using request.environ.get(REMOTE_ADDR),it is working.But It is not working in website. Thanks Madhu Alagu -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: REMOTE_ADDR
The website is running apache. request.environ[REMOTE_ADDR] - 127.0.0.1 request.environ[X_REMOTE_ADDR] - error thanks On Jan 5, 3:39 am, Jose Galvez jj.gal...@gmail.com wrote: the environment variable may be different if you are serving the site from apache. I think is X_REMOTE_ADDR or something like that Alagu Madhu wrote: Hi I try to get client IP using request.environ.get(REMOTE_ADDR),it is working.But It is not working in website. Thanks Madhu Alagu -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: REMOTE_ADDR
apache: request.environ.get(HTTP_X_FORWARDED_FOR) thanks On Jan 5, 8:33 am, Didip Kerabat did...@gmail.com wrote: I use both HTTP_X_FORWARDED_FOR and REMOTE_ADDR, just in case. See below: * def get_ip_address(): return request.environ.get(HTTP_X_FORWARDED_FOR, request.environ.get(REMOTE_ADDR, None))* - Didip - On Mon, Jan 4, 2010 at 9:21 PM, Alagu Madhu alma...@gmail.com wrote: The website is running apache. request.environ[REMOTE_ADDR] - 127.0.0.1 request.environ[X_REMOTE_ADDR] - error thanks On Jan 5, 3:39 am, Jose Galvez jj.gal...@gmail.com wrote: the environment variable may be different if you are serving the site from apache. I think is X_REMOTE_ADDR or something like that Alagu Madhu wrote: Hi I try to get client IP using request.environ.get(REMOTE_ADDR),it is working.But It is not working in website. Thanks Madhu Alagu -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.compylons-discuss%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Re: Protect CSS,Image and JavaScript
Thanks. I am going to move all protect JavaScript files in controller. class JsController(BaseController): def login(self,access_id): ... response.headers['Content-Type'] = 'application/ javascript' return render('/js/login.js') On Apr 23, 10:01 am, Mike Orr [EMAIL PROTECTED] wrote: On Tue, Apr 22, 2008 at 8:32 AM, Jonathan Vanasco [EMAIL PROTECTED] wrote: I think that the poster is trying to make the directories viewable only to people who have authenticated to the server -- a la .htaccess http://wiki.pylonshq.com/pages/viewpage.action?pageId=9011252 http://wiki.pylonshq.com/display/pylonscookbook/Authentication+and+Au... The public directory is served separately from the controllers -- it's served by 'static_app' in middleware.py. So a controller-based authorization system cannot protect the public directory. I can think of only two ways to do this, and neither would be simple for a beginner. 1) Use a middleware-based authentication system such as AuthKit or repoze.who. You would also need to wrap 'static_app' in an authorization middleware, and I've never seen one of those for Pylons so you may have to write your own. There may be one in AuthKit I haven't noticed. 2) Serve the static files inside the controllers. There are two ways to do this. One is to create a controller action that serves a directory of static files, using paste.urlpasrser.StaticURLParser. The other is to use StaticURLParser itself as a pseudo-controller. I should make a HOWTO with the steps because I finally got this to work for some protected files I have, but not tonight. But the biggest question is, does your login page depend on any of these stylesheets or images? If so, it won't look right if you protect them. Likewise if your home page or any other page on the site is unprotected. The second question is, why do you want to protect them? If you're trying to prevent unauthorized users from accessing them, protection makes sense. But if you want to force authorized users to view them only embedded in an HTML page rather than directly -- you can't. If the browser can download it to decorate an HTML page with, it can also display it directly. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pylons Example
Hi, I would like to add example section in pylons. example/ helloworld xul yui dojo pdf/ reportlab trml2pdf htmltopdf pyPdf database/ sqlalchemy ... ... Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Protect CSS,Image and JavaScript
Hi xul/ public/ /css xul.css /image xul.jpg /js login.js ... I am able to access css,image and javascript from the browser. http://127.0.0.1:5000/css/xul.css http://127.0.0.1:5000/image/xul.jpg http://127.0.0.1:5000/jj/login.js How do I protect my css,image and javascript? Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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: XML
thanks On Apr 21, 7:31 pm, Mike Orr [EMAIL PROTECTED] wrote: By the way, there's a stub section in the Pylons book for XML databases. Among those who use XML Python libraries, which would you most recommend, and which would you disrecommend? (PS. The database chapter and two other chapters -- testing and YUI -- are being reviewed now, and should be on the web by this weekend.) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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: simplejson 1.8.1 windows easy_install (compilation) failure
Please download simplejson-1.8.1-py2.5-win32.egg from http://turbogears.org/download/filelist.html On Apr 16, 5:12 pm, Marcin Kasperski [EMAIL PROTECTED] wrote: Attempt to easy_install pylons 1.9.7beta on windows ends during simplejson 1.8.1 install with: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Ic:\python25\include -IC:\users\path-to-my-virtual-env\PC /Tcsimplejson/_speedups.c /Fobuild\temp.win32-2.5\Release\simplejson/_speedups.obj _speedups.c simplejson\_speedups.c(610) : error C2059: syntax error : '}' (as I checked, simplejson 1.7.1 easy-installs fine on the same machine, while 1.7.3 fails with the same error) Does anybody know what is the problem? And maybe it would make sense to provide binary eggs (borrowing them from turbogears if necessary)? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
XML
Hi, I am using pylons 0.9.7beta4) and mako. def xml(self): c.xml = ... response.headers['Content-Type'] = 'application/xml' return render('/xml.mak') xml.mak: ?xml version=1.0 encoding=utf-8 ? customer id=customer ${c.xml} /customer The XML file appear ... customer id=customer kk id=1012 name=Pylons 12/kk id=1013 name=Pylons 13/kk id=1014 name=Pylons 14/kk id=1015 name=Pylons 15/kk id=1016 name=Pylons 16/kk id=1017 name=Pylons 17/kk id=1018 name=Pylons 18/kk id=1019 name=Pylons 19/kk id=1020 name=Pylons 20/kk id=1021 name=Pylons 21/ /customer But,The Page Source... ?xml version=1.0 encoding=utf-8 ? customer id=customer lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot; 1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot; name=quot;Pylons 15quot;/gt;lt;kk id=quot;1016quot; name=quot;Pylons 16quot;/gt;lt;kk id=quot;1017quot; name=quot;Pylons 17quot;/gt;lt;kk id=quot;1018quot; name=quot;Pylons 18quot;/gt;lt;kk id=quot;1019quot; name=quot;Pylons 19quot;/gt;lt;kk id=quot;1020quot; name=quot;Pylons 20quot;/gt;lt;kk id=quot;1021quot; name=quot;Pylons 21quot;/gt; /customer Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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: XML
Page Source ?xml version=1.0 encoding=utf-8 ? customer id=customer lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot; 1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot; name=quot;Pylons 15quot;/gt;lt;kk id=quot;1016quot; name=quot;Pylons 16quot;/gt;lt;kk id=quot;1017quot; name=quot;Pylons 17quot;/gt;lt;kk id=quot;1018quot; name=quot;Pylons 18quot;/gt;lt;kk id=quot;1019quot; name=quot;Pylons 19quot;/gt;lt;kk id=quot;1020quot; name=quot;Pylons 20quot;/gt;lt;kk id=quot;1021quot; name=quot;Pylons 21quot;/gt; /customer I want to display the page source like ?xml version=1.0 encoding=utf-8 ? customer id=customer kk id=1012 name=Pylons 12/kk id=1013 name=Pylons 13/kk id=1014 name=Pylons 14/kk id=1015 name=Pylons 15/kk id=1016 name=Pylons 16/kk id=1017 name=Pylons 17/kk id=1018 name=Pylons 18/kk id=1019 name=Pylons 19/kk id=1020 name=Pylons 20/kk id=1021 name=Pylons 21/ /customer On Apr 15, 4:31 pm, Garland, Ken R [EMAIL PROTECTED] wrote: Are you wanting to display the XML raw like this: ${c.xml | x} On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu [EMAIL PROTECTED] wrote: Hi, I am using pylons 0.9.7beta4) and mako. def xml(self): c.xml = ... response.headers['Content-Type'] = 'application/xml' return render('/xml.mak') xml.mak: ?xml version=1.0 encoding=utf-8 ? customer id=customer ${c.xml} /customer The XML file appear ... customer id=customer kk id=1012 name=Pylons 12/kk id=1013 name=Pylons 13/kk id=1014 name=Pylons 14/kk id=1015 name=Pylons 15/kk id=1016 name=Pylons 16/kk id=1017 name=Pylons 17/kk id=1018 name=Pylons 18/kk id=1019 name=Pylons 19/kk id=1020 name=Pylons 20/kk id=1021 name=Pylons 21/ /customer But,The Page Source... ?xml version=1.0 encoding=utf-8 ? customer id=customer lt;kk id=quot;1012quot; name=quot;Pylons 12quot;/gt;lt;kk id=quot;1013quot; name=quot;Pylons 13quot;/gt;lt;kk id=quot; 1014quot; name=quot;Pylons 14quot;/gt;lt;kk id=quot;1015quot; name=quot;Pylons 15quot;/gt;lt;kk id=quot;1016quot; name=quot;Pylons 16quot;/gt;lt;kk id=quot;1017quot; name=quot;Pylons 17quot;/gt;lt;kk id=quot;1018quot; name=quot;Pylons 18quot;/gt;lt;kk id=quot;1019quot; name=quot;Pylons 19quot;/gt;lt;kk id=quot;1020quot; name=quot;Pylons 20quot;/gt;lt;kk id=quot;1021quot; name=quot;Pylons 21quot;/gt; /customer Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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: XML
Thank you very much everybody. ${c.xml | n} and from webhelpers.html import literal def xml(self): c.xml = literal() working fine. On Apr 15, 9:15 pm, Mike Orr [EMAIL PROTECTED] wrote: On Tue, Apr 15, 2008 at 9:22 AM, Garland, Ken R [EMAIL PROTECTED] wrote: So that replaces the HTML escaping done previously in Mako: http://www.makotemplates.org/docs/syntax.html#syntax_expression_expre... I must have missed the 'n' switch after looking over this doc: http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 The 'n' switch was undocumented in Mako for a long time, so a lot of people don't know about it. I've added an explanation to the article. By the way, last night I also updated the webhelpers section, added a section on controller imports, documented writing your own render function. I also finished WebHelper's docstrings, so it's ready to release as soon as Ben finishes his busy work week. (Although I'm still waiting for the minimize library somebody was going to contribute.) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
WebOb
Hi Pylons + WebOb - Documentation Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pylons + Google App Engine
Hi How to get started with Pylons and Google App Engine ? Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Configuration Files
hi all, app_globals.py: from pylons import config def __init__(self): cache_dir = config.get('cache_dir') print cache_dir I get 'None' value... Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
xmlhttprequest + json + pylons
Hi JSONRequest = { post: function( url, data, callback, timeout ) { xhr = new XMLHttpRequest(); xhr.open(POST, url, true); xhr.setRequestHeader( Content-Type, application/x-www-form- urlencoded ); if (callback) { xhr.onreadystatechange = function() { if( xhr.readyState==4 ) { //alert( xhr.responseText ); callback( xhr.responseText ); } } } if ( data ) { xhr.send( data ); } else { xhr.send( null ); } }, get: function(url, callback) { alert( 'in JSONRequest.get();' ); } }; using above code(js) I send the data(login={username:python,password:pylons) to pylons. ... pylons controller... print request.params.keys() print request.params.items() print request.params.values() I am getting flowing output... ['login'] [('login', u'{username:python, password: [u'{username:python, password:pylons}'] How can I get the username password value ? Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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: request.params json
On Nov 5, 9:44 am, Alagu Madhu [EMAIL PROTECTED] wrote: Hi I am send the data in json format(login={user:python,password:pylons}). ... print request.params.keys() print request.params.items() print request.params.values() ... [] [] [] Thanks Madhu Alagu working fine ['login'] [('login', u'{username:re, password:e}')] [u'{username:re, password:e}'] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
request.params json
Hi I am send the data in json format(login={user:python,password:pylons}). ... print request.params.keys() print request.params.items() print request.params.values() ... [] [] [] Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
iframe issue
Hi templates/ test.mako test1.html test.mako: iframe src=test1.html / I am getting error... Error 404 .. NOT FOUND Thanks Madhu --~--~-~--~~~---~--~~ 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: Pylons add-ons
Thank You for the Information. On Aug 14, 9:57 am, Cezary Statkiewicz [EMAIL PROTECTED] wrote: 2007/8/11, Alagu Madhu [EMAIL PROTECTED]: Hi * Reports * Barcode * Plotting Is it possible to add Pylons 1.0 (Pylons add-ons) ? Hi Pylons itself doesn't do such things. It is a web application framework. If you need tools for reports, charts and such, look for relevant python libs (pychart, reportlab). Best regards Cezary Statkiewicz -- Cezary Statkiewicz -http://thelirium.net rlu#280280 gg#5223219 jabber://[EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pylons add-ons
Hi * Reports * Barcode * Plotting Is it possible to add Pylons 1.0 (Pylons add-ons) ? Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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: Pylons 0.9.6rc2 - mimetype
But it's working for me in pylons 0.9.5 On Aug 4, 11:00 am, Dan Korostelev [EMAIL PROTECTED] wrote: It's not a mimetype, it's a Content-Type header. And in 0.9.6 you should use global response object. Like this: response.headers['Content-Type'] = 'application/xhtml+xml' return render('login.mako') On 8/4/07, Alagu Madhu [EMAIL PROTECTED] wrote: Hi I am using Pylons 0.9.6rc2 and mako-0.1.8-py2.5.egg. I'm getting error in Pylons 0.9.6rc2.. return Response(render('login.mak'), mimetype='application/xhtml+xml') Thanks Madhu Alagu -- WBR, Dan Korostelev --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AuthKit - One Time Password (OTP) authentication
Can I use One Time Password (OTP) authentication in Authkit. Thanks, Madhu Alagu --~--~-~--~~~---~--~~ 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: @jsonify - 'str' object has no attribute 'request'
Thanks you,It's working fine.. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
@jsonify - 'str' object has no attribute 'request'
Hi All, I'm using windows 200 python 2.5 pylons-0.9.4.1 simplejson-1.5 The code is here from kk.lib.base import * from pylons.decorators import jsonify @jsonify def index(self): c.name = Bob c.house = 123 Elm St return c._local.request Error Traceback clear this clear this Module ?:2 in index Module pylons.decorators:18 in jsonify response = pylons.Response() response.headers['Content-Type'] = 'text/javascript' response.content.append(json.dumps(func(*args, **kwargs))) return response jsonify = decorator(jsonify) response.content.append(json.dumps(func(*args, **kwargs))) Module kk.controllers.rio:70 in index1 c.name = Bob c.house = 123 Elm St return c._local.request return c._local.request type 'exceptions.AttributeError': 'str' object has no attribute 'request' File 'string', line 2 in index File 'c:\\python25\\lib\\site-packages\\pylons-0.9.4.1-py2.5.egg\\pylons\\decorators\\__init__.py', line 18 in jsonify response.content.append(json.dumps(func(*args, **kwargs))) File 'G:\\pylons\\kk\\kk\\controllers\\rio.py', line 70 in index1 return c._local.request AttributeError: 'str' object has no attribute 'request' Thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Authentication and Authorization Systems
Hi, paste.auth Barrel Authkit What is suitable for the Pylons ? Thanks, Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Merry Christmas and a Happy New Year
Merry Christmas and a Happy New Year to every Pylons lover ! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Internationalization - utf-16
Hello, i18n/ en: msgid Hello msgstr Hello ar(arabic): msgid Hello msgstr عبدالرحمن عبدالله الصبيحي I am getting the following error when I am using the unicode (utf-16) string. Error Traceback clear this clear this Module translate_demo.controllers.hello:17 in index resp.write('Default: %sbr /' % _('Hello')) for lang in ['en','ar']: h.set_lang(lang) resp.write(%s: %sbr / % (h.get_lang(), _('Hello'))) return resp h.set_lang(lang) Module pylons.helpers:93 in set_lang raise LanguageError('Language catalog %s not found' % \ os.path.join(project_name, catalog_path)) translator = egg_translation(project_name, lang=catalog_path) translator.pylons_lang = lang registry.replace(pylons.translator, translator) translator = egg_translation(project_name, lang=catalog_path) Module pylons.i18n.translation:14 in egg_translation class_ = GNUTranslations return class_(resource_stream(domain, os.path.join(lang, '%s.mo' % domain))) return class_(resource_stream(domain, os.path.join(lang, '%s.mo' % domain))) Module gettext:180 in __init__ self._fallback = None if fp is not None: self._parse(fp) def _parse(self, fp): self._parse(fp) Module gettext:337 in _parse if self._charset: msg = unicode(msg, self._charset) tmsg = unicode(tmsg, self._charset) catalog[msg] = tmsg # advance to next entry in the seek tables tmsg = unicode(tmsg, self._charset) Module encodings.utf_8:16 in decode def decode(input, errors='strict'): return codecs.utf_8_decode(input, errors, True) class IncrementalEncoder(codecs.IncrementalEncoder): return codecs.utf_8_decode(input, errors, True) type 'exceptions.UnicodeDecodeError': 'utf8' codec can't decode bytes in position 0-1: invalid data thanks Madhu Alagu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Paste Error
Installed f:\pylons Processing dependencies for Pylons==0.9.3dev Searching for Paste==dev,=0.9.9dev-r5793 Reading http://www.pylonshq.com/download/ Reading http://www.python.org/pypi/Paste/ Reading http://pythonpaste.org Reading http://www.python.org/pypi/Paste/0.9.8.1 Best match: Paste dev Downloading http://svn.pythonpaste.org/Paste/trunk#egg=Paste-dev Doing subversion checkout from http://svn.pythonpaste.org/Paste/trunk to c:\docu me~1\admini~1\locals~1\temp\easy_install-c-_rau\trunk 'svn' is not recognized as an internal or external command, operable program or batch file. Processing trunk error: Couldn't find a setup script in c:\docume~1\admini~1\locals~1\temp\easy_i nstall-c-_rau\trunk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Paste Error
Robert Leftwich wrote: Alagu Madhu wrote: 'svn' is not recognized as an internal or external command, operable program or batch file. You reported a very similar error to the mailing list on the 30/6/06, do the same thing that was recommended to you back then, i.e. install subversion. http://subversion.tigris.org/project_packages.html#binary-packages Robert 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 -~--~~~~--~~--~--~---
Pylons + plain DB-API
Hi, Thoughts? Thanks, Alagu Madhu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Pylons + plain DB-API
Hello, I like to use plain DB-API (psycopg) in pylons. idea's or example. Thanks, alagu madhu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pylons + plain DB-API
Hi, Thoughts ? Thanks, Alagu Madhu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
exceptions.ImportError: No module named lib.base
builtin_importer(name, globals, locals, fromlist) Module ?:1 in ? from test.lib.base import * class TestController(BaseController): from test.lib.base import * Module myghty.importer:54 in import_module return modules[name].module except KeyError: return builtin_importer(name, globals, locals, fromlist) __builtin__.__import__ = import_module return builtin_importer(name, globals, locals, fromlist) exceptions.ImportError: No module named lib.base full traceback URL: http://localhost:5000/test Module pylons.error:337 in respond try: __traceback_supplement__ = Supplement, self, environ app_iter = self.application(environ, detect_start_response) try: return_iter = list(app_iter) app_iter = self.application(environ, detect_start_response) Module paste.httpexceptions:623 in __call__ return catch_errors_app( self.application, environ, start_response, self.send_http_response, catch=HTTPException) def send_http_response(self, environ, start_response, exc_info): self.send_http_response, catch=HTTPException) Module paste.wsgilib:207 in catch_errors_app error_occurred = False try: app_iter = application(environ, start_response) except catch: return error_callback_app(environ, start_response, sys.exc_info()) app_iter = application(environ, start_response) Module paste.deploy.config:157 in __call__ CONFIG.push_thread_config(conf) try: app_iter = self.application(environ, start_response) finally: if app_iter is None: app_iter = self.application(environ, start_response) Module pylons.wsgiapp:263 in __call__ def __call__(self, environ, start_response): environ['pylons.environ_config'] = self.econf return self.app(environ, start_response) WSGIResponse = None return self.app(environ, start_response) Module beaker.cache:121 in __call__ environ['paste.registry'].register(cache_manager, self.cache_manager) environ['beaker.cache'] = self.cache_manager return self.app(environ, start_response) class CacheArgs(PrefixArgs): return self.app(environ, start_response) Module beaker.session:100 in __call__ return start_response(status, headers, exc_info) try: response = self.wrap_app(environ, session_start_response) except: ty, val = sys.exc_info()[:2] response = self.wrap_app(environ, session_start_response) Module pylons.wsgiapp:82 in __call__ environ['REQUEST_METHOD'] = req.POST['_method'] controller = self.resolve(environ, start_response) if old_method: environ['REQUEST_METHOD'] = old_method response = self.dispatch(controller, environ, start_response) controller = self.resolve(environ, start_response) Module pylons.wsgiapp:153 in resolve + controller.lower().replace('/', '.') __import__(full_module_name) module_name = full_module_name.split('.')[-1] class_name = class_name_from_module_name(module_name) + 'Controller' __import__(full_module_name) Module myghty.importer:54 in import_module return modules[name].module except KeyError: return builtin_importer(name, globals, locals, fromlist) __builtin__.__import__ = import_module return builtin_importer(name, globals, locals, fromlist) Module ?:1 in ? from test.lib.base import * class TestController(BaseController): from test.lib.base import * Module myghty.importer:54 in import_module return modules[name].module except KeyError: return builtin_importer(name, globals, locals, fromlist) __builtin__.__import__ = import_module return builtin_importer(name, globals, locals, fromlist) exceptions.ImportError: No module named lib.base Extra Features Display the lines of code near each part of the traceback Show a debug prompt to allow you to directly debug the code at the traceback Thanks Alagu Madhu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pylons + xml-rpc client and server
Hi, Any Pylons xml-rpc example ? Thanks, Alagu Madhu --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: update Error
Thanking you very much. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---