Re: ANN: Documentation Wiki Launched
Hi Dave, Once again Philip Jenvey is on the case and has implemented a prototype rst plugin which currently generates HTML but not PDF. There isn't a huge amount of Trac content on the Trac wiki (some is rst anyway) so it will probably be easier just to move the remaining articles across manually and tidy them up in the process but I'll have a look at the script as well tonight. Cheers, James primco wrote: anybody about to take a whack at trac or reStructuredText markup to confluence converter? I found this http://confluence.atlassian.com/display/CONFEXT/Trac+Importer It at least has a start with the syntax. Davep --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Introduction: modifying the Routes error
I just started to follow this introduction: http://pylonshq.com/docs/0.9.4.1/index.html Installation went with no problems using: $ easy_install Pylons Now I have this controller: from helloworld.lib.base import * class HelloController(BaseController): def index(self): return Response('Hello World') def serverinfo(self): c.name = 'The Black Knight' return render_response('/serverinfo.myt') And this in routing.py: map.connect('', controler='hello', action='index') map.connect(':controller/:action/:id') map.connect('*url', controller='template', action='view') These two urls work: http://127.0.0.1:5000/hello/serverinfo http://127.0.0.1:5000/hello This one does not work: http://127.0.0.1:5000 fromlistNone globals None locals None name'helloworld.controllers.content' 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 content File '/usr/lib/python2.4/site-packages/Myghty-1.1-py2.4.egg/myghty/ importer.py', line 54 in import_module return builtin_importer(name, globals, locals, fromlist) ImportError: No module named content This is the server message: $ paster serve --reload development.ini Starting subprocess with file monitor Starting server in PID 14731. serving on 0.0.0.0:5000 view at http://127.0.0.1:5000 /usr/lib/python2.4/site-packages/Pylons-0.9.4.1-py2.4.egg/pylons/ wsgiapp.py:101: DeprecationWarning: paste.wsgiwrappers.settings is deprecated: Please use paste.wsgiwrappers.WSGIRequest.defaults instead registry.register(paste.wsgiwrappers.settings, self.settings) Debug at: http://127.0.0.1:5000/_debug/view/1174398027 /usr/lib/python2.4/site-packages/Paste-1.3-py2.4.egg/paste/registry.py: 280: DeprecationWarning: paste.wsgiwrappers.settings is deprecated: Please use paste.wsgiwrappers.WSGIRequest.defaults instead stacked._push_object(obj) What is wrong? I'm in Fedora Core 5. Python 2.4 Regards, Clodoaldo --~--~-~--~~~---~--~~ 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: ANN: Documentation Wiki Launched
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Mar 2007, at 09:21, James Gardner wrote: Once again Philip Jenvey is on the case and has implemented a prototype rst plugin which currently generates HTML but not PDF. FWIW, I noticed an unfortunate feature of the PDF export w.r.t. code listings. Not only are line numbers lost but, depending on their position, code listings can be split arbitrarily across page breaks - what is unfortunate is that there is no continuation indication. In conjunction, this is a little infelicitous. Cheers, Graham. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iQCVAgUBRf/lTFnrWVZ7aXD1AQI1awP/TB4EDkEzG7XflLvBCvdwGoQZnC6hcX7d r2Zjz0llW6XYL13cpavk9MNMhol2D3P5FKtRoaDlE54IOEYSMJdAa6QW6nb0NOnh LQoaKDRASMUM5Kkqi2eG677Qgu12z4Lm1kGs7kiaigLupvhe1tTin7SuofJtoHls 2P+ZRajgDS8= =PHy2 -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Exec stored procedure
Hi! How i can exec stored procedure from database (MsSql) in Pylons with SqlAlchemy? -- Best regards, Evgeny --~--~-~--~~~---~--~~ 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: Introduction: modifying the Routes error
2007/3/20, Graham Higgins [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Mar 2007, at 13:42, Clodoaldo wrote: map.connect('', controler='hello', action='index') Is that a typographic error or a transcription error? It should read controller, not controler. That fixes it. Thanks Regards -- Clodoaldo Pinto Neto --~--~-~--~~~---~--~~ 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: Exec stored procedure
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Evgeny, How i can exec stored procedure from database (MsSql) in Pylons with SqlAlchemy? I have not tried it with stored procedures but look for: Functions can be specified using the func keyword: in: http://www.sqlalchemy.org/docs/sqlconstruction.html Cheers, Graham. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iQCVAgUBRf/veFnrWVZ7aXD1AQKwqAQA0eOudBmhYbJbJSi8C5ha87WV6CTWcIa7 6Y9G3aovRgBVZiLHxSNDsJ26l0O0vwqXWENMWjmb0mxAsYBWV4d4p20WakbkP/I7 AL03l5lke0rxm+lEKXyx5PYHK586rMFSN+82ZWLXTIrQvfudRakPUGSbCZayPO4i qTCFYpMYfKA= =w1TR -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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: Exec stored procedure
I do: c.searchResults = func.GetBlackListForPage(request.params[page], 100, engine=engine).execute() But have error: Module portal.controllers.blacklist:*41* in query mailbox:///C%7C/Documents%20and%20Settings/ZByte/Application%20Data/Thunderbird/Profiles/default.gnw/Mail/pop.rol.ru/Inbox.sbd/%CE%F2%20%EC%E5%ED%FF%20%F1%E0%EC%EE%E3%EE?number=7801824# *if* c*.*pageCount ** *1**:* c*.*pageCount *=* *1* c*.*searchResults *=* func*.*GetBlackListForPage*(*request*. *params*[*page*]**,* *100**,* engine*=*model*.*engine*)**.*execute*(**)* #c.searchResults = model.BlackPattern.select( model.BlackPattern.c.Pattern.like(request.params[pattern]+%), #order_by=[asc( model.BlackPattern.c.Pattern)], mailbox:///C%7C/Documents%20and%20Settings/ZByte/Application%20Data/Thunderbird/Profiles/default.gnw/Mail/pop.rol.ru/Inbox.sbd/%CE%F2%20%EC%E5%ED%FF%20%F1%E0%EC%EE%E3%EE?number=7801824# c*.*searchResults *=* func*.*GetBlackListForPage*(*request*.*params*[*page *]**,* *100**,* engine*=*model*.*engine*)**.*execute*(**)* Module sqlalchemy.sql:*1010* in execute Module sqlalchemy.sql:*485* in execute Module sqlalchemy.sql:*513* in compile *AttributeError: 'module' object has no attribute 'compiler'* 2007/3/20, Graham Higgins [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Evgeny, How i can exec stored procedure from database (MsSql) in Pylons with SqlAlchemy? I have not tried it with stored procedures but look for: Functions can be specified using the func keyword: in: http://www.sqlalchemy.org/docs/sqlconstruction.html Cheers, Graham. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iQCVAgUBRf/veFnrWVZ7aXD1AQKwqAQA0eOudBmhYbJbJSi8C5ha87WV6CTWcIa7 6Y9G3aovRgBVZiLHxSNDsJ26l0O0vwqXWENMWjmb0mxAsYBWV4d4p20WakbkP/I7 AL03l5lke0rxm+lEKXyx5PYHK586rMFSN+82ZWLXTIrQvfudRakPUGSbCZayPO4i qTCFYpMYfKA= =w1TR -END PGP SIGNATURE- -- Best regards, Evgeny --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Praise the paster :)
Hi, Just wanted to share my first deployment exciment with Pylons/Paste. It was s easy. Switching to your favorite deployment option (SCGI in my case) by just changing one line in the config file... Errors-to- email by default in production mode.. It sounds so basic, but somehow not all frameworks have it by default. Thanks and keep up the good work :) Ksenia. --~--~-~--~~~---~--~~ 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: Exec stored procedure
On Mar 20, 2007, at 7:37 AM, Evgeny Nesterov wrote: I do: c.searchResults = func.GetBlackListForPage(request.params[page], 100, engine=engine).execute() But have error: Module portal.controllers.blacklist:41 in query c.searchResults = func.GetBlackListForPage( request.params [page], 100, engine= model.engine).execute() Module sqlalchemy.sql:1010 in execute Module sqlalchemy.sql:485 in execute Module sqlalchemy.sql:513 in compile AttributeError: 'module' object has no attribute 'compiler' Note that the function needs to be given as the where clause, not used all by itself: http://www.sqlalchemy.org/docs/ sqlconstruction.html#sql_whereclause_functions So you'd need to have that func inside a select() call. Cheers, Ben --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Still not working
Thanks for the suggestions; unfortunately it's still not working. There was nothing in /var/llog/messages, but I disabled selinux anyhow. I'm still getting a file not found error. I beginning to wonder if I have a deeper system issue though. The motherboard in my dev box blew out last week so I put the HDD in an available system. I don't know whether it's because the original had a 32-bit Intel chip and the new one has a 64-bit AMD, but some things have been a bit flaky. Python, for example, was complaining about not being able to find a module that's part of the base package. After recompiling it things worked normally again. I might just wipe it and reload. Keep you posted... --~--~-~--~~~---~--~~ 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: Exec stored procedure
On Mar 20, 2007, at 7:37 AM, Evgeny Nesterov wrote: I do: c.searchResults = func.GetBlackListForPage(request.params[page], 100, engine=engine).execute() But have error: If you still have trouble, chances are if you ask on the sqlalchemy mailing list someone will answer your question pretty quickly, quite possibly SA's author. --~--~-~--~~~---~--~~ 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: Still not working
On Tue, 2007-03-20 at 10:50 -0700, Jamie wrote: Thanks for the suggestions; unfortunately it's still not working. There was nothing in /var/llog/messages, but I disabled selinux anyhow. I'm still getting a file not found error. I beginning to wonder if I have a deeper system issue though. The motherboard in my dev box blew out last week so I put the HDD in an available system. I don't know whether it's because the original had a 32-bit Intel chip and the new one has a 64-bit AMD, but some things have been a bit flaky. Python, for example, was complaining about not being able to find a module that's part of the base package. After recompiling it things worked normally again. I might just wipe it and reload. Keep you posted... Did you do a fresh install on the AMD? If so, did you install the x86_64 or i386 version? Most distros maintain a separate /usr/lib and /usr/lib64 for compatibility and I've had issues with building Python packages on these platforms. In my case I managed to work around it by simply getting rid of the 32-bit /usr/lib and renaming the /usr/lib64 to /usr/lib. The problem seems to be due to the fact that certain Python modules get stuck in lib64 and some in lib and Python gets confused. Switching to pure 64 bit in this way will mean you can't run certain binary-only packages (Flash for one) but won't hurt much else. As an aside, unless you've got over 4GB of RAM, you'll find that 64bit mode will make your machine considerably slower (and less compatible) so I'd highly recommend just sticking with the i386 version unless you've got lots of RAM. Regards, Cliff --~--~-~--~~~---~--~~ 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: formbuild questions
On Tue, 2007-03-20 at 09:16 +, James Gardner wrote: The relevant sections of the manual (http://formbuild.org/docs/manual.html) to get you started are I seem to recall (perhaps incorrectly) that formbuild was being deprecated/discontinued/merged with another project. Is this the case or is that... um, remember stuff... thing... I have in my head failing me? Cliff --~--~-~--~~~---~--~~ 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: formbuild questions
Hi Cliff, Just to clarify, FormBuild isn't going to be deprecated, discontinued or merged as such, I'll continue to maintain it, but as ToscaWidgets becomes more stable I'm going to recommend people use ToscaWidgets instead of FormBuild because it provides a more natural development model and it makes sense for the Pylons community to share as much work with the TurboGears developers as possible. Also widgets are easy to share so if we all put our efforts into ToscaWidgets everyone stands to benefit from having lots of useful reusable components. Cheers, James Cliff Wells wrote: On Tue, 2007-03-20 at 09:16 +, James Gardner wrote: The relevant sections of the manual (http://formbuild.org/docs/manual.html) to get you started are I seem to recall (perhaps incorrectly) that formbuild was being deprecated/discontinued/merged with another project. Is this the case or is that... um, remember stuff... thing... I have in my head failing me? Cliff --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---