[web2py:20706] Re: forms in web2py

2009-04-27 Thread newbie
I think I've messed it up. I would like to explain my problem once again clearly. in controllers/identity.py: def getcities(): citystr = request.vars.values()[0] if citystr == "Delhi": output = "city1, city2" # list elif citystr == "Tamil Nadu": output = "city2, city3"

[web2py:20705] Re: new T in trunk

2009-04-27 Thread Francisco Gama
what about db fields? It's funny I was working atm the moment to make SQLForm() and SQLTable () generate "internationazable" fields. Example: SQLFORM(db.table, internationalize=True) then it would use T(label) instead of label... On Apr 28, 3:28 am, mdipierro wrote: > Alvaro and I made some ch

[web2py:20704] yet another feature in trunk

2009-04-27 Thread mdipierro
SQLField('fieldname','upload',length='256',rememberfilename=True) Do I need to say more? Just try with appadmin (requires appadmin from trunk) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:20703] Re: new T in trunk

2009-04-27 Thread mdipierro
In trunk you can just say Y.lazy=False and it does what you ask. I think there is a value in allowing to define string with T before we choose the language (the current default behavior) Massimo On 27 Apr, 21:58, Álvaro Justen [Turicas] wrote: > On Mon, Apr 27, 2009 at 11:28 PM, mdipierro wrot

[web2py:20702] Re: CSS Template Layouts

2009-04-27 Thread mdipierro
Hi Yarko, I like the pure CSS cascading menu. Could you make it color neutral and post the required CSS for three levels of nested popup menus assuming click me to open menu menu1 menu11 menu111 ... ... ... Massimo On 27 Apr, 21:23, Yarko Tymciurak

[web2py:20701] Re: TypeError: run() takes no arguments (1 given)

2009-04-27 Thread mdipierro
I added some more examples here: http://www.web2py.com/examples/default/tools#services On 27 Apr, 21:05, mdipierro wrote: > I deleted that page because it is misleading and old. There are two > issues: > > 1) the technical reason for your error is that > > @f > def g(): return 'something' > > i

[web2py:20700] Re: new T in trunk

2009-04-27 Thread Álvaro Justen [Turicas]
On Mon, Apr 27, 2009 at 11:28 PM, mdipierro wrote: > Alvaro and I made some changes to the latest T in trunk. Now you can > do > a=T('hello') T.force('it') print a > hello > [offline go and edit the the language it.py you will find > 'hello':'hello', translate it to 'hello':'ciao']

[web2py:20699] new T in trunk

2009-04-27 Thread mdipierro
Alvaro and I made some changes to the latest T in trunk. Now you can do >>> a=T('hello') >>> T.force('it') >>> print a hello [offline go and edit the the language it.py you will find 'hello':'hello', translate it to 'hello':'ciao'] >>> T.force('it') # reload the file >>> print a ciao Mind that a

[web2py:20698] CSS Template Layouts

2009-04-27 Thread Yarko Tymciurak
Well, I, almost gagged adapting (very old sytle) corporate layout standards to a default web2py layout, and as of this weekend - well, it's not that I gave up so much, as it is I was just too bored with it to go on. Tonight, I'm back to looking thru old links I have surrounding the beauty of css el

[web2py:20697] Re: TypeError: run() takes no arguments (1 given)

2009-04-27 Thread mdipierro
I deleted that page because it is misleading and old. There are two issues: 1) the technical reason for your error is that @f def g(): return 'something' is equivalent to def g(): return 'something' g=f(g()) and in your case f (i.e. run) does not take arguments. 2) anyway the post is mislead

[web2py:20696] Re: Strategy for exposing CMS Content from db to Google spider crawler

2009-04-27 Thread mdipierro
with the standard layout you can use response.keywords to set keywords in the meta tag. Not sure if this helps. Massimo On 27 Apr, 17:47, dlypka wrote: > I see that for the web2py Wiki, Content Search is a high priority > Action Item, and I imagine for T3 as well. > But since most of the conten

[web2py:20695] Re: Translation in model

2009-04-27 Thread mdipierro
Yes there is an issue. I think it is fixed in trunk now, together with lots of improvements I'll talk about later. Massimo On 27 Apr, 17:36, Vidul Petrov wrote: > The "problem" was fixed like this: > > T.current_languages=['en','en-en'] > T.force(session.language or 'en-en') > > were put before

[web2py:20694] TypeError: run() takes no arguments (1 given)

2009-04-27 Thread Dave
Hello, I'm following the steps given on AlterEgo to define fancy decorators. (http://mdp.cti.depaul.edu/AlterEgo/default/show/204). I'm only exposing procedures through run and am getting a TypeError. Here's the code in my model: from gluon.storage import Storage settings=Storage() settings.expos

[web2py:20693] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Álvaro Justen [Turicas]
.On Mon, Apr 27, 2009 at 8:44 PM, Gary wrote: > It's going to take some time to digest this, especially the > onxxx=lambda part.  When would you use the embedded form rather than > the controller/view combination above?  Are there any examples of the > either (or both) the these?  If not, once I

[web2py:20692] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Gary
It's going to take some time to digest this, especially the onxxx=lambda part. When would you use the embedded form rather than the controller/view combination above? Are there any examples of the either (or both) the these? If not, once I understand this better, I'd be happy to contribute to t

[web2py:20691] Strategy for exposing CMS Content from db to Google spider crawler

2009-04-27 Thread dlypka
I see that for the web2py Wiki, Content Search is a high priority Action Item, and I imagine for T3 as well. But since most of the content is in the database, not in easy to crawl static pages, I wonder what would be a good technique for exposing the content from the db to the crawler? Myself I w

[web2py:20690] Re: Translation in model

2009-04-27 Thread Vidul Petrov
The "problem" was fixed like this: T.current_languages=['en','en-en'] T.force(session.language or 'en-en') were put before the translated strings (at the very beginning of the model). Thank you for the help. On Apr 28, 1:32 am, Vidul Petrov wrote: > Would you tell me how and where you implem

[web2py:20689] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Would you tell me how and where you implemented the T object and its force method? Thank you. On Apr 28, 1:16 am, Álvaro Justen [Turicas] wrote: > On Mon, Apr 27, 2009 at 7:06 PM, Vidul Petrov wrote: > > Thank you, Álvaro. The problem is still there, I tried with the latest > > (revision 854) v

[web2py:20688] Re: Override data/update SQLFORM behavior

2009-04-27 Thread mdipierro
when you call crud you can also specify lots of options... def mycreate(): return dict(form=crud.create(db.mytable,next=URL (...),onaccept=lambda form:pass,onvalidation=lambda form: pass)) and more. You can also embed them in views {{=crud.create(db.mytable)}} Massimo On Apr 27, 5:23 p

[web2py:20687] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Gary
Massimo, Thank you, Thank you, Thank you! This clarified so much and makes a great deal of sense. Kindest regards, Gary On Apr 27, 5:48 pm, mdipierro wrote: > On Apr 27, 3:14 pm, Gary wrote: > > > Like myapp/default/display_manual_form() in the book, right? > > > Two questions.  I assume

[web2py:20686] Re: gzip apps by default

2009-04-27 Thread mdipierro
Sorry I misunderstood. Please send me a patch. If possible move the code to "install", "uninstall" and "pack" and "pack compiled" from admin to a new file gluon/admin.py Massimo On Apr 27, 4:54 pm, Álvaro Justen [Turicas] wrote: > On Mon, Apr 27, 2009 at 6:40 PM, mdipierro wrote: > > >http://h

[web2py:20685] Re: Translation in model

2009-04-27 Thread Álvaro Justen [Turicas]
On Mon, Apr 27, 2009 at 7:06 PM, Vidul Petrov wrote: > Thank you, Álvaro. The problem is still there, I tried with the latest > (revision 854) version ... > > Could it be wrong usage of T operator in the model? I created a new app (myapp) in a 'fresh' downloaded version of web2py from Google's S

[web2py:20684] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Thank you, Álvaro. The problem is still there, I tried with the latest (revision 854) version ... Could it be wrong usage of T operator in the model? On Apr 28, 12:57 am, Álvaro Justen [Turicas] wrote: > On Mon, Apr 27, 2009 at 3:40 PM, Vidul Petrov wrote: > > > Just tried revision 854 of lan

[web2py:20683] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Even when I am trying my app with version 1.61.4 the problem stays. On Apr 27, 11:08 pm, Vidul Petrov wrote: > Am I the only one with this problem? > > On Apr 27, 9:40 pm, Vidul Petrov wrote: > > > > > Just tried revision 854 of languages.py, probably a wrong usage in my > > model: > > > T.curr

[web2py:20682] Re: Translation in model

2009-04-27 Thread Álvaro Justen [Turicas]
On Mon, Apr 27, 2009 at 3:40 PM, Vidul Petrov wrote: > > Just tried revision 854 of languages.py, probably a wrong usage in my > model: Please download all web2py 854 revision to test. Other files were modified. > T.current_languages=['en', 'en-en'] > > try: >    T.force(session.language or 'en

[web2py:20681] Re: gzip apps by default

2009-04-27 Thread Álvaro Justen [Turicas]
On Mon, Apr 27, 2009 at 6:40 PM, mdipierro wrote: > > http://henry.precheur.org/2009/4/23/GZIP_encoding_%3D_happier_users%3F.html Sending or not data via HTTP using gzip is one point. Gzipping apps to distribute is another point. I'm talking about the second point. Do you like this feature? Ca

[web2py:20680] Re: Proposal (tiny addition to Auth module)

2009-04-27 Thread mdipierro
No because "next" urls are sent from the server to the client in the http redirect response, they are not embedded in the page. -- Forwarded message -- From: vihang Date: Apr 27, 3:34 pm Subject: Proposal (tiny addition to Auth module) To: web2py Web Framework line 589 in tool

[web2py:20679] Re: Override data/update SQLFORM behavior

2009-04-27 Thread mdipierro
On Apr 27, 3:14 pm, Gary wrote: > Like myapp/default/display_manual_form() in the book, right? > > Two questions. I assume that I need a: > > def data(): return dict(form=crud()) > > for each table that uses the crud controller to properly define the > URL. If that's true, it's the part that I

[web2py:20678] Re: OperationalError: Could not decode to UTF-8 column 'lname' with text 'ni o'

2009-04-27 Thread mdipierro
You should not have no problem when inserting from a SQLFORM (correct?) You may have problems when you do it manually db.table.insert(field=value) value has to be UTF8 encoded. Massimo On Apr 27, 2:04 pm, scanzoni wrote: > I am getting this error whenever I attempt to add data to the sqlite >

[web2py:20677] Re: gzip apps by default

2009-04-27 Thread mdipierro
http://henry.precheur.org/2009/4/23/GZIP_encoding_%3D_happier_users%3F.html On Apr 27, 2:45 pm, AchipA wrote: > Text compresses very well, and usually much faster than the network IO > handles data. Example: let's say you have a 100KB/s link. If your main > page is 100KB, it takes a second to tr

[web2py:20676] Re: python 2.4 and has_key

2009-04-27 Thread mdipierro
I have seen this before. Some python installations do not have saxutils. Check in your site packages. Massimo On Apr 27, 2:10 pm, Tito Garrido wrote: > No I can't. > # python > Python 2.4.2 (#1, Aug 1 2008, 00:14:49) > [GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] on linux2 > Type "help", "co

[web2py:20674] Re: javascript proxy issue

2009-04-27 Thread Fran
On Apr 23, 8:03 pm, Tim Michelsen wrote: > I think OL is just not enough to justify running apache among cherrypy > (web2py). I got given a suggestion for a possible proxy to port into Web2Py: http://trac.pythonpaste.org/pythonpaste/browser/Paste/trunk/paste/proxy.py Maybe easier than starting

[web2py:20671] Re: google code and mercurial

2009-04-27 Thread Mariano Mara
On 27.04.09 21:34, Tim Michelsen wrote: > > > bzr is the one that gives me problems (all the other which I access > > external repositories with I have been able to configure such that they > > work). > Can you run a centralized repository on a FTP server? > > This has been a real plus fo

[web2py:20673] Proposal (tiny addition to Auth module)

2009-04-27 Thread vihang
line 589 in tools.py : (7 occurance) elif next and not next[0] == '/' and next[:4] != 'http' and next[:10] != 'javascript': Add javascript: to the list of good urls Is it useful to others? --~--~-~--~~~---~--~~ You received this message because you are

[web2py:20672] Re: Improvement Request: csv export

2009-04-27 Thread Yarko Tymciurak
On Mon, Apr 27, 2009 at 2:31 PM, Tim Michelsen wrote: > > Hello, > > > About fields like: [Timmie, LLC] - are you having a problem? Have > > you tried this? > Actually not yet. You asked for changes based on something you hadn't tried yet? Try first I do not like you suggested change..

[web2py:20670] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Gary
Like myapp/default/display_manual_form() in the book, right? Two questions. I assume that I need a: def data(): return dict(form=crud()) for each table that uses the crud controller to properly define the URL. If that's true, it's the part that I missed. Second, is it better to call the upda

[web2py:20669] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Am I the only one with this problem? On Apr 27, 9:40 pm, Vidul Petrov wrote: > Just tried revision 854 of languages.py, probably a wrong usage in my > model: > > T.current_languages=['en', 'en-en'] > > try: >     T.force(session.language or 'en-en') > except: >     T.force('en') > > and in the

[web2py:20668] OperationalError: Could not decode to UTF-8 column 'lname' with text 'ni�o'

2009-04-27 Thread scanzoni
I am getting this error whenever I attempt to add data to the sqlite database that is non-english from a form - in this particular example, it involved Spanish surnames like IÑIGO or JOSÉ --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:20667] Re: gzip apps by default

2009-04-27 Thread AchipA
Text compresses very well, and usually much faster than the network IO handles data. Example: let's say you have a 100KB/s link. If your main page is 100KB, it takes a second to transfer it. Compressing 100K takes WAY less than 1 sec and decompressing even less than that. Also, in the time you're

[web2py:20666] Re: google code and mercurial

2009-04-27 Thread Tim Michelsen
> bzr is the one that gives me problems (all the other which I access > external repositories with I have been able to configure such that they > work). Can you run a centralized repository on a FTP server? This has been a real plus for me using bzr. It has very low requirements on the se

[web2py:20665] Re: Improvement Request: csv export

2009-04-27 Thread Tim Michelsen
Hello, > About fields like: [Timmie, LLC] - are you having a problem? Have > you tried this? Actually not yet. > > The generated CSV already handles this, output looking like this: OKI. You will know this. > Dialect.quoting level is one of the more useful parameters for web2py > applicat

[web2py:20664] Re: python 2.4 and has_key

2009-04-27 Thread Tito Garrido
No I can't. # python Python 2.4.2 (#1, Aug 1 2008, 00:14:49) [GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from xml.sax.saxutils import quoteattr Traceback (most recent call last): File "", line 1, in ? ImportE

[web2py:20663] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Just tried revision 854 of languages.py, probably a wrong usage in my model: T.current_languages=['en', 'en-en'] try: T.force(session.language or 'en-en') except: T.force('en') and in the controller: lang_struct = {'BG':'bg-bg','RU':'ru-ru','EN':'en-en'} def change_language(): lan

[web2py:20662] Re: Translation in model

2009-04-27 Thread mdipierro
We changed things in languages.py since. Can you try the trunk? Massimo On Apr 27, 1:23 pm, Vidul Petrov wrote: > The strings are in the language file, but they are not being > translated if they come from models. > > On Apr 27, 9:20 pm, Vidul Petrov wrote: > > > Version 1.59 (2009-03-16 13:10

[web2py:20661] Re: Translation in model

2009-04-27 Thread Vidul Petrov
The strings are in the language file, but they are not being translated if they come from models. On Apr 27, 9:20 pm, Vidul Petrov wrote: > Version 1.59 (2009-03-16 13:10:16) with slight modifications in > "tools.py". > > On Apr 27, 9:16 pm, mdipierro wrote: > > > > > which version (date)? > >

[web2py:20660] Re: python 2.4 and has_key

2009-04-27 Thread mdipierro
which python version. From the python shell can you do from xml.sax.saxutils import quoteattr ? On Apr 27, 1:16 pm, Tito Garrido wrote: > Hey Folks, > I'm trying to run it on a SLES10 SP2 and I've got: > # ./web2py.py > Traceback (most recent call last): > File "./web2py.py", line 14, in ? >

[web2py:20659] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Version 1.59 (2009-03-16 13:10:16) with slight modifications in "tools.py". On Apr 27, 9:16 pm, mdipierro wrote: > which version (date)? > > On Apr 27, 11:57 am, Vidul Petrov wrote: > > > > > Hi, > > > The translation seems not to work in models: > > > db.contact.sender_name.requires = [IS_LENG

[web2py:20658] Re: python 2.4 and has_key

2009-04-27 Thread mdipierro
No it means that if you use a=b if c==d else e or you use a module that is standard in 2.5 but not in 2.4. then people will not be able to run your apps on python 2.4. Massimo On Apr 27, 12:36 pm, ceej wrote: > So does this mean if we update our applications will break if they use > has_key ?

[web2py:20657] Re: Translation in model

2009-04-27 Thread mdipierro
which version (date)? On Apr 27, 11:57 am, Vidul Petrov wrote: > Hi, > > The translation seems not to work in models: > > db.contact.sender_name.requires = [IS_LENGTH(1,error_message=T('the > name is too long'))] > > Anybody had a similar problem? --~--~-~--~~~---~--~

[web2py:20656] Re: python 2.4 and has_key

2009-04-27 Thread Tito Garrido
Hey Folks, I'm trying to run it on a SLES10 SP2 and I've got: # ./web2py.py Traceback (most recent call last): File "./web2py.py", line 14, in ? from gluon.widget import start File "/home/titog/web2py/gluon/widget.py", line 28, in ? from gluon.main import HttpServer, save_password Fil

[web2py:20655] Re: appliances

2009-04-27 Thread Yarko Tymciurak
It would be good to try to have them in a consistent place (mostly)... After Google I/O in May, they should open-up the mercurial option. On Mon, Apr 27, 2009 at 12:12 PM, Wes James wrote: > > I think having the apps other places and linking is a good idea. > > thx, > > 0wj > > On Mon, Apr 27, 2

[web2py:20654] Re: Improvement Request: csv export

2009-04-27 Thread Yarko Tymciurak
About fields like: [Timmie, LLC] - are you having a problem? Have you tried this? The generated CSV already handles this, output looking like this: Name, Company, email Timmie,"Timmie, LLC", tim...@someplace.net Dialect.quoting level is one of the more useful parameters for web2py applicati

[web2py:20653] Re: python 2.4 and has_key

2009-04-27 Thread ceej
So does this mean if we update our applications will break if they use has_key ? If so what can has_key be replaced with? Many thanks On Apr 26, 11:42 pm, mdipierro wrote: > Hello everybody, > > thanks to Douglas and Alvaro we have a new version in trunk that works > with 2.4 and no longer cont

[web2py:20652] Re: Accessing _cursor object OK?

2009-04-27 Thread ae
Subclassing SQLDB will be fine. I should have thought of it. Thanks, ae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To

[web2py:20651] Re: Accessing _cursor object OK?

2009-04-27 Thread Mariano Mara
On 27.04.09 10:08, ae wrote: > > It doesn't appear that executesql is used internally. > > I prefer not to have a locally modified version of gluon. > > How about: > > def executesql_with_description(self, sql): >... > > you named it _cursor! ;) You could inherit from SQLDB in your db.p

[web2py:20650] Re: python 2.4 and has_key

2009-04-27 Thread DenesL
But that would be due to python version differences but not because of web2py internal code, right?. On Apr 27, 12:20 pm, mdipierro wrote: > Let me say that this is an important step but, in order to keep our > promise of backward compatibility we need to be clear that "web2py > works on 2.4, 2.

[web2py:20649] Re: appliances

2009-04-27 Thread Wes James
I think having the apps other places and linking is a good idea. thx, 0wj On Mon, Apr 27, 2009 at 9:43 AM, mdipierro wrote: > > If you want me to post on applicances please send me the > web2py.app.name.tar file. > > What I had in mind was taking appliances off my web site. You host > them sep

[web2py:20648] Re: Accessing _cursor object OK?

2009-04-27 Thread ae
It doesn't appear that executesql is used internally. I prefer not to have a locally modified version of gluon. How about: def executesql_with_description(self, sql): ... you named it _cursor! ;) --~--~-~--~~~---~--~~ You received this message because you ar

[web2py:/] Translation in model

2009-04-27 Thread Vidul Petrov
Hi, The translation seems not to work in models: db.contact.sender_name.requires = [IS_LENGTH(1,error_message=T('the name is too long'))] Anybody had a similar problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:20646] Re: Accessing _cursor object OK?

2009-04-27 Thread mdipierro
I do not know. On Apr 27, 11:50 am, ae wrote: > It seems to work fine. This would be more elegant: > > class SQLDB: > >... > >def executesql(self, query, description=False): > ... > if description: > return self._cursor.description, self._cursor.fetchall() > re

[web2py:20645] Re: do you consult? do you have a company?

2009-04-27 Thread mdipierro
I think we need a CMS with people's profiles and contact info. On Apr 27, 11:43 am, Yarko Tymciurak wrote: > maybe a reddish list then? ;-) > > On Mon, Apr 27, 2009 at 9:33 AM, mdipierro wrote: > > > The idea is to tell users they can find commercial support if needed. > > > On 27 Apr, 09:12,

[web2py:20644] Re: Accessing _cursor object OK?

2009-04-27 Thread ae
It seems to work fine. This would be more elegant: class SQLDB: ... def executesql(self, query, description=False): ... if description: return self._cursor.description, self._cursor.fetchall() return self._cursor.fetchall() I don't like accessing _cursor from

[web2py:20643] Re: do you consult? do you have a company?

2009-04-27 Thread Yarko Tymciurak
maybe a reddish list then? ;-) On Mon, Apr 27, 2009 at 9:33 AM, mdipierro wrote: > > The idea is to tell users they can find commercial support if needed. > > On 27 Apr, 09:12, DenesL wrote: > > Is the idea to showcase web2py?. > > From the 11 listed only 4 mention web2py and 1 is temporarily

[web2py:20640] Re: python 2.4 and has_key

2009-04-27 Thread mdipierro
Let me say that this is an important step but, in order to keep our promise of backward compatibility we need to be clear that "web2py works on 2.4, 2.5 and 2.6, but apps developed using a later version may not work with earlier versions" On Apr 27, 9:15 am, DenesL wrote: > Excellent. > Maybe th

[web2py:20642] Re: Multiple servers.

2009-04-27 Thread mdipierro
If you have a shared folder containing your app yes, it will work out of the box. In some cases having a shared folder can be slow. Anyway for heavy production environment admin access should only run from localhost or via ssh tunnel for security. In this case you can have multiple hosts and scr

[web2py:20641] Multiple servers.

2009-04-27 Thread zepolen
One of the more attractive features of web2py is the runtime ability to (for example) browe error tickets, change i18n, view templates etc. Is this feature supported when using multiple servers, so that if for example an error occurs on any of the webserver nodes, the ticket logged will be viewab

[web2py:20639] Re: python 2.4 and has_key

2009-04-27 Thread Douglas Soares de Andrade
Em Segunda-feira 27 Abril 2009, às 11:15:48, DenesL escreveu: > Excellent. > Maybe this should be mentioned in web2py.com Hi all, Just a important note, when using web2py with python2.4 you will need to install two libraries in python2.4: $ sudo easy_install-2.4 -U pysqlite hashlib As both li

[web2py:20638] Re: appliances

2009-04-27 Thread mdipierro
If you want me to post on applicances please send me the web2py.app.name.tar file. What I had in mind was taking appliances off my web site. You host them separately on google code, launchpad, whatever and I just link them. Massimo On Apr 27, 10:28 am, Wes James wrote: > Is there info somewher

[web2py:20637] Re: Accessing _cursor object OK?

2009-04-27 Thread mdipierro
It should be ok to do db._cursor.description. Let us know if it works. Massimo On Apr 27, 10:14 am, ae wrote: > I am need to run a stored procedure and I need column headings. > Normally, I would be using MySQLdb and, after running cursor.execute > (), get the column heading names with: > >

[web2py:20636] Re: web2py alongside other applications, mod_proxy

2009-04-27 Thread mdipierro
in routes you can do routes_in=(('/prefix/(?P.*)','/$a'),) routes_out=(('/(?P.*)','/prefix/$a'),) then you visit http://host/prefix/welcome/default/index instead of http://host/welcome/default/index thous should be all you need Massimo On Apr 27, 10:06 am, Bernd das Brot wrote: >

[web2py:20635] Re: appliances

2009-04-27 Thread Wes James
Is there info somewhere about how you would like these submitted to you. some convention web2py.app.appname.tar? And this is just a tar: tar -cf web2py.app.appname.tar appname ? thx, -wj On Sun, Apr 26, 2009 at 4:57 PM, mdipierro wrote: > > Once again PLEASE volunteer to take ownership of

[web2py:20634] Accessing _cursor object OK?

2009-04-27 Thread ae
I am need to run a stored procedure and I need column headings. Normally, I would be using MySQLdb and, after running cursor.execute (), get the column heading names with: headings = [h[0] for h in cursor.description]. Should I use MySQLdb directly (seems like a bad idea) or is it OK to get

[web2py:20633] web2py alongside other applications, mod_proxy

2009-04-27 Thread Bernd das Brot
Hi, I (still) need to implement web2py with a prefixed URL without using apache mod_proxy_html. Am I really the only one who needs this ? Obviously not - see the AlterEgo Article http://www.web2py.com/AlterEgo/default/show/136 I believe that web2py should work _without_ the mod_proxy_html part (

[web2py:20632] Re: transpose a SQLTABLE in view

2009-04-27 Thread Timmie
Do you mean an additional file in the models directory? I have just seen http://www.djangosnippets.org/ If we were to collect such snippets on the web, we could easily create a automatic addon repository: 1) user has a snippet and enters this in the wiki or a dedicated webapp 2) a background scr

[web2py:20631] Re: Improvement Request: csv export

2009-04-27 Thread Timmie
"Official Excel" also varies by coutry / regional settings. But I think by adding arguments of which the default values reflect the current behaviour you can improve while staying compatible. example: def export_to_csv(rows, ofile, delimiter=',', text_wrap=''): But thanks that you will look i

[web2py:20629] Re: transpose a SQLTABLE in view

2009-04-27 Thread mdipierro
I think instead of patching there should a repository of SQLFORMxxx.py and SQLTABLExxx.py that you put in your models and do different things when you need. Massimo On 27 Apr, 08:50, DenesL wrote: > On Apr 27, 5:59 am, Timmie wrote: > > > I liked this option most. > :) > > > Here is the functi

[web2py:20630] Re: do you consult? do you have a company?

2009-04-27 Thread mdipierro
The idea is to tell users they can find commercial support if needed. On 27 Apr, 09:12, DenesL wrote: > Is the idea to showcase web2py?. > From the 11 listed only 4 mention web2py and 1 is temporarily > unavailable. > > An idea: also list the country (and city) where the company operates. --~--~

[web2py:20628] Re: python 2.4 and has_key

2009-04-27 Thread DenesL
Excellent. Maybe this should be mentioned in web2py.com On Apr 27, 12:42 am, mdipierro wrote: > Hello everybody, > > thanks to Douglas and Alvaro we have a new version in trunk that works > with 2.4 and no longer contains has_key (deprecated). > > A lot of lines of code have changed to achieve

[web2py:20627] Re: do you consult? do you have a company?

2009-04-27 Thread DenesL
Is the idea to showcase web2py?. >From the 11 listed only 4 mention web2py and 1 is temporarily unavailable. An idea: also list the country (and city) where the company operates. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[web2py:20626] Re: transpose a SQLTABLE in view

2009-04-27 Thread DenesL
On Apr 27, 5:59 am, Timmie wrote: > I liked this option most. :) > > Here is the function I derived from this: > > def rows_transpose(rows_obj): > """transposes a rows object > > input:a rows object selected from the data base > output: a html table of the transposed table > >

[web2py:20625] Re: insert() values provided in a dictionary

2009-04-27 Thread mdipierro
db.country.insert(**row) this works for every function in Python: with ** you can pass named arguments from a dictionary. On 27 Apr, 08:25, David Zejda wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > There is a table: > > db.define_table('country', >     SQLField('code'), >     SQL

[web2py:20624] Re: do you consult? do you have a company?

2009-04-27 Thread mdipierro
OK, I added them all but @Hans, the EasyTouch web site needs a new look. Massimo On 27 Apr, 08:17, Anand Vaidya wrote: > Hi Massimo, > > I run a IT services business, with heavy focus on Linux and Free > Software. I have already deployed web2py in an aerospace company. > > I intend to adopt we

[web2py:20623] insert() values provided in a dictionary

2009-04-27 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There is a table: db.define_table('country', SQLField('code'), SQLField('name')) I know, I can do: db.country.insert(code="UK", name="United Kingdom") But I have values to be inserted in a dictionary: row = { "code":"UK", "name":"United K

[web2py:20622] Re: Improvement Request: csv export

2009-04-27 Thread mdipierro
I will look into this. The problem is backward compatibility. The format we are using for the CSV is the "official" excel csv On 27 Apr, 05:04, Timmie wrote: > Hello, > I would like air two improvement request for the CSV export: > > * when I export to CSV as shown on page 166 in the manual the

[web2py:20621] Re: transpose a SQLTABLE in view

2009-04-27 Thread mdipierro
do TAG.TH instead of TH On 27 Apr, 04:59, Timmie wrote: > I liked this option most. > > Here is the function I derived from this: > > def rows_transpose(rows_obj): >     """transposes a rows object > >     input:    a rows object selected from the data base >     output:   a html table of the tr

[web2py:20620] Re: CSS and jquery

2009-04-27 Thread mdipierro
I will post a newer one soon. It would be great if you could help with the css. On 27 Apr, 03:11, notabene wrote: > On 27 Apr., 07:04, mdipierro wrote: > > > Should we rewrite the welcome app using these so that we can use > > jquery themes? > > > Can you help? > > > Massimo > > Your AJAX appli

[web2py:20619] Re: gzip apps by default

2009-04-27 Thread mdipierro
There are two issues here: 1) yes applications should be zipped. We can support both .tar and .zip to avoid backward compatibility problems. Has been on my list of things to do. Perhaps somebody will send me a patch. 2) data should (should?) be transmitted zipped by the web server. cherrpypy's w

[web2py:20618] Re: gzip apps by default

2009-04-27 Thread AchipA
I don't know how hard/easy it would be to convince cherrypy to gzip content on the http level. It would actually make sense to have that option for ALL text content, too, to minimize bandwidth use (this is a web server level option, completely transparent to clients, and since it relies on headers

[web2py:20617] Re: do you consult? do you have a company?

2009-04-27 Thread Anand Vaidya
Hi Massimo, I run a IT services business, with heavy focus on Linux and Free Software. I have already deployed web2py in an aerospace company. I intend to adopt web2py as the key platform for applications, web frontends etc which I am working on. Company Name: VSA Services Pte Ltd URL: http://w

[web2py:20616] Re: web2py on GAE info is posted on new T3 app deployed at http://futurelogic1.appspot.com/

2009-04-27 Thread dlypka
OK I contributed the GAE Deployment tips to here https://mdp.cti.depaul.edu/wiki/default/page/16d1ac84-88de-4f46-a68c-0210ee026edb On Apr 26, 11:32 pm, mdipierro wrote: > perhaps you can also contribute the text to > > http://www.web2py.com/wiki > > On 26 Apr, 21:13, dlypka wrote: > > > > > T

[web2py:20615] Re: google code and mercurial

2009-04-27 Thread Yarko Tymciurak
I use git, hg, and bzr (and to a lesser extent now, svn; and clearcase; I haven't used cvs or rcs in a while) bzr is the one that gives me problems (all the other which I access external repositories with I have been able to configure such that they work). On Mon, Apr 27, 2009 at 5:10 A

[web2py:20613] Re: URL structure for multilanguage site

2009-04-27 Thread Anthon
Oops, and the second line has a problem as well: > if session.force_language: T.force(force_language) if session.force_language: T.force(session.force_language) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:20614] Re: URL structure for multilanguage site

2009-04-27 Thread Anthon
On Apr 18, 5:41 pm, mdipierro wrote: > Personally I do not user routes much and I like to do > I thinks the following line: > if request.vars.force_language: session.force_language Should be: if request.vars.force_language: session.language = request.vars.force_language > if session.fo

[web2py:20612] Re: google code and mercurial

2009-04-27 Thread Timmie
Interesting: SVN -> BZR -> HG @Yarko Tymciurak Do you except the VPN / proxy issues to be solved with the migration? On 26 Apr., 22:53, mdipierro wrote: > This is good news for us > > http://google-code-updates.blogspot.com/2009/04/mercurial-support-for... > > We can now use google as central

[web2py:20611] Re: Want to make a feature, just would like some help on where to look...

2009-04-27 Thread Timmie
You can also take a look at pylons: http://pylonshq.com/download/0.9.7/pylonsdemo1.mov They have a nice error page, too. Just for inspiration. On 26 Apr., 14:22, Jason Brower wrote: > I want to contribute to the development of web2py. :D > I have an idea to add a feature.  This one, for one, ma

[web2py:20610] Improvement Request: csv export

2009-04-27 Thread Timmie
Hello, I would like air two improvement request for the CSV export: * when I export to CSV as shown on page 166 in the manual the export method appends '\r\n' after each row. This leads to an extra blank line in the exported CSV file (on Windows). When I remove the '\r' by performing a string rep

[web2py:20609] Re: transpose a SQLTABLE in view

2009-04-27 Thread Timmie
I liked this option most. Here is the function I derived from this: def rows_transpose(rows_obj): """transposes a rows object input:a rows object selected from the data base output: a html table of the transposed table This can still be improved by using the headers attri

[web2py:20608] Re: do you consult? do you have a company?

2009-04-27 Thread Hans
We provide tailored IT-Solutions, Consulting and Services. http://www.easytouch-edv.com On Apr 27, 7:42 am, mdipierro wrote: > I added the link. > > On 27 Apr, 00:37, SergeyPo wrote: > > > My company Zarealye develops personal loans data mining application > > with web frontend, uses web2py.  L

[web2py:20607] Re: web2py on GAE info is posted on new T3 app deployed at http://futurelogic1.appspot.com/

2009-04-27 Thread dlypka
OK, will do. On Apr 26, 11:32 pm, mdipierro wrote: > perhaps you can also contribute the text to > > http://www.web2py.com/wiki > > On 26 Apr, 21:13, dlypka wrote: > > > > > The link ishttp://futurelogic1.appspot.com/ > > > On Apr 26, 9:56 pm, dlypka wrote: > > > > I used T3 to rapidly deploy

[web2py:20606] Re: CSS and jquery

2009-04-27 Thread notabene
On 27 Apr., 07:04, mdipierro wrote: > Should we rewrite the welcome app using these so that we can use > jquery themes? > > Can you help? > > Massimo Your AJAX application http://www.web2py.com/events/default/index is very nice and innovative. It uses the JQuery Accordion. I have modified it to

  1   2   >