[web2py] Re: Choosing view from within controller - is it possible?

2010-05-18 Thread Igor Gassko
Brilliant as everything else in web2py :) Thanks! On May 18, 9:19 pm, mdipierro wrote: > response.view='default/bar1.html' > > On May 18, 12:56 pm, Igor Gassko wrote: > > > > > Hi all. > > > I'd like to have multiple views (several different html

[web2py] Choosing view from within controller - is it possible?

2010-05-18 Thread Igor Gassko
Hi all. I'd like to have multiple views (several different html files) for the same controller action and to be able to specify in the code from within controller which view will be used to format the response. To be specific, let's say I have controller 'default.py' with action 'foo' in it and I

[web2py] Re: MySQL server has gone away

2010-04-20 Thread Igor Gassko
Could you please post on this thread, once there's built-in solution for keeping pooled connections alive? For now, I've seen that you may end up with several dead connection in the pool, so slighly better solution might be as follows: for x in range(10): try: db = DAL(connection_strin

[web2py] smtp error 550 (administrative prohibition) when trying to send mail using Mail.send() in tools.py

2010-04-13 Thread Igor Gassko
Hi, I have the following code in my app: #import Mail from gluon.tools import Mail mail=Mail() #specify server mail.settings.server='mail.mydomain.com:26' mail.settings.login=None or 'usern...@mydomain.com:password' #specify address to send as mail.settings.sender='u

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread Igor Gassko
14, 11:32 am, Igor Gassko wrote: > > > > > I tried using this one earlier in order to install MySQL driver from > > sources distribution (version 1.2.3c1), but it crashed during the > > install (all sorts of build errors, I didn't figure what went worng). > > I h

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread Igor Gassko
2py from source, which means that you > have python installed on your system. > > See here on how to setup > setuptools/easy_install:http://pypi.python.org/pypi/setuptools > > And then use easy_install to install MySQL-python. > > -rppowell > > On Mar 13, 12:59 pm,

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-14 Thread Igor Gassko
p:http://stackoverflow.com/questions/645943/mysql-for-python-in-windows > > On Mar 13, 2:59 pm, Igor Gassko wrote: > > > > > Hello, > > > I have set up web2py source distribution on Windows 7 x64 with Python > > 2.6. This distribution comes without preinst

[web2py] how to get MySQLdb working with web2py source distribution?

2010-03-13 Thread Igor Gassko
Hello, I have set up web2py source distribution on Windows 7 x64 with Python 2.6. This distribution comes without preinstalled MySQL driver. I followed the instructions found here: http://www.web2py.com/AlterEgo/default/show/133 by creating a folder structure %web2py\Lib\site-packages and placing

[web2py] inablility to import modules on UNC path

2010-03-13 Thread Igor Gassko
This is relevant only for those who run web2py server (from compiled distributions) under windows. It's impossible to import modules residing on network share specified by UNC path notation (for examlpe \\server\web2py), even if they reside in the same folder tree as the server itself. The reason f

[web2py] Re: web2py on hostmonster

2010-03-12 Thread Igor Gassko
There're no free ports by default (due to security considerations, as they claim), you'll need to contact the customer service and request them to open the needed port for listening to inbound connections. They should agree. I had requested that for port 8000, and they opened it for me. On Mar 1,

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
Done :-) http://www.web2pyslices.com/main/slices/take_slice/72 On Mar 10, 1:08 am, Kuba Kucharski wrote: > could you, please, make a slice with both web2py and flex code? > @http://www.web2pyslices.com/ > it would be useful since there is a few flex specialists to answer > these questions here

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
tination="mydomain" showBusyCursor="true"> -- Massimo, thanks for your answers and sorry for trouble! On Mar 10, 12:29 am, Igor Gassko wrote: > I've debugged Flex for a while and found out that > "Service.ResourceNotFound" comes over fro

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
some useful info. > > massimo > > On Mar 9, 3:39 pm, Igor Gassko wrote: > > > > > I embedded it right into the library.zip of web2py by openning .egg > > package and using its pyamf folder. I'm quite sure that pyamf is being > > imported, because before I

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
I've debugged Flex for a while and found out that "Service.ResourceNotFound" comes over from the server. Since I don't have a clue how to debug web2py, I just dig in pyamf sources untill I found out that Service.ResourceNotFound is a string message of UnknownServiceError which is raised in \pyamf\r

[web2py] Re: internal error in pyamf module when trying to invoke amfrpc service

2010-03-09 Thread Igor Gassko
I embedded it right into the library.zip of web2py by openning .egg package and using its pyamf folder. I'm quite sure that pyamf is being imported, because before I did this trick I was getting "no module named pyamf" error. I also tried using the source version (by appending it directly to app.pa