[web2py:35232] Re: decimal type in web2py

2009-11-12 Thread mdipierro
There are two issues: - decimal would have to be supported but all backends to work properly - decimal is not supported by Python. If you retrieve a value from the db it would be converted to float and then you insert it in the db, you get a different value, unless you use the decimal class to rep

[web2py:35231] Re: Editing Plugins

2009-11-12 Thread mdipierro
Please explain to me in some detail what you do. I do this all the time. There is a vimeo video about it. It is possible it is a bug but I do not understand what the problem is. On Nov 13, 12:35 am, guruyaya wrote: > Yep - I got the latest SVN too. > > On Nov 13, 4:13 am, Thadeus Burgess wrote:

[web2py:35230] Re: customizing auth_user

2009-11-12 Thread mdipierro
The latest web2py stable actually addressed this and it no longer requires first_name and last_name. On Nov 12, 11:52 pm, Wiiboy wrote: > Ah.  Ok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py:35229] Re: SQLFORM client side checks

2009-11-12 Thread mdipierro
web2py has some built-in unintrusiv client side checks. For example try type letters in a integer field. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2p

[web2py:35228] Re: SQLFORM client side checks

2009-11-12 Thread mdipierro
I am pretty sure jquery.ui have client slide validators, although I never used them. On Nov 12, 11:39 pm, Richard wrote: > that sounds like an awesome reuse of the existing SQLFORM > functionality, and would be nice to see live form checks before > pressing submit. > > You do an AJAX call whenev

[web2py:35227] Re: Strange file upload behaviour with https

2009-11-12 Thread mdipierro
This is a limitation of the wsgiserver that comes with web2py. In a production environment if you use apache+mod_wsgi you will not have this problem. On Nov 12, 9:45 pm, leo wrote: > I run into some weirdness when submitting a form that contains a file > upload field.  I am using the auto-genera

[web2py:35226] Re: Template system

2009-11-12 Thread mdipierro
yes. need latest web2py stable from gluon.template import render print render(content='{{for i in range(10)}}{{=a}}{{pass}}',context= {'a':'hello\n'}) if you want to use the helpers you also need to import them from gluon.template import render from gluon.html import * print render(content='{{f

[web2py:35225] Re: Editing Plugins

2009-11-12 Thread guruyaya
Yep - I got the latest SVN too. On Nov 13, 4:13 am, Thadeus Burgess wrote: > I am not able to edit plug-ins with web2py admin either, running on latest > revision SVN 1421 > > -Thadeus > > On Thu, Nov 12, 2009 at 6:03 PM, mdipierro wrote: > > > Assuming you have the latest admin. At the bottom

[web2py:35224] Re: customizing auth_user

2009-11-12 Thread Wiiboy
Ah. Ok. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroup

[web2py:35223] Re: SQLFORM client side checks

2009-11-12 Thread Richard
that sounds like an awesome reuse of the existing SQLFORM functionality, and would be nice to see live form checks before pressing submit. You do an AJAX call whenever the text box changes - wouldn't that produce too many calls? Richard On Nov 13, 1:35 pm, Thadeus Burgess wrote: > It is possi

[web2py:35222] Strange file upload behaviour with https

2009-11-12 Thread leo
I run into some weirdness when submitting a form that contains a file upload field. I am using the auto-generated form in the appadmin page that inserts new records into a database table with an upload field. File sizes over a certain limit (not very large, only around 100kb) make the upload las

[web2py:35221] Re: customizing auth_user

2009-11-12 Thread Thadeus Burgess
He said that you HAVE to have first_name and last_name in your auth table. His work around still requires you to have these columns in your table... and just places them with defaulted values of empty strings. -Thadeus On Thu, Nov 12, 2009 at 8:20 PM, Wiiboy wrote: > > Did I misunderstand M

[web2py:35220] Re: SQLFORM client side checks

2009-11-12 Thread Thadeus Burgess
It is possible to use the web2py validators and javascript (AJAX). Post the data to the server, and then return an msg that tells details about the code. This way, a user can look to see if anything is wrong (if javascript is enabled), and the form will still be validated on post, so you don't lose

[web2py:35219] Template system

2009-11-12 Thread ShoqulKutlu
Hi, Can we use just template system of web2py with another application? Thanks, Kutlu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.c

[web2py:35218] Re: SQLFORM client side checks

2009-11-12 Thread Wiiboy
I would guess that the problem they might have with this is that this wouldn't be a Python thing; it would have to be Javascript. However, Web2py already has a bunch of built-in Javscript, so. --~--~-~--~~~---~--~~ You received this message because you are subs

[web2py:35217] Re: customizing auth_user

2009-11-12 Thread Wiiboy
Did I misunderstand Massimo above, or did he say you didn't? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this

[web2py:35216] SQLFORM client side checks

2009-11-12 Thread Richard
Hello, I was wondering if it would be possible/practical for SQLFORM to support some basic client side checks before submitting to the server. SQLFORM has so many features, which I doubt could all be covered client side, but it would make forms more responsive if atleast a subset was. Richard

[web2py:35215] Re: Editing Plugins

2009-11-12 Thread Thadeus Burgess
I am not able to edit plug-ins with web2py admin either, running on latest revision SVN 1421 -Thadeus On Thu, Nov 12, 2009 at 6:03 PM, mdipierro wrote: > > Assuming you have the latest admin. At the bottom of th design page > you should be able to click on plugin, see and edit the plugin fil

[web2py:35214] Re: customizing auth_user

2009-11-12 Thread Thadeus Burgess
Auth facilities expect/require first_name and last_name. -Thadeus On Thu, Nov 12, 2009 at 7:34 PM, Wiiboy wrote: > > Actually, this doesn't work for me at all. I added a first_name > field, and now I get a KeyError: last_name > > ? > > > --~--~-~--~~~---~--~

[web2py:35213] Re: customizing auth_user

2009-11-12 Thread Wiiboy
Actually, this doesn't work for me at all. I added a first_name field, and now I get a KeyError: last_name ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

[web2py:35212] Re: gae transactions

2009-11-12 Thread Richard
I think it's more complex because records in the same table are not in the same entity group by default. You need to also give records the same parent. However there are downsides to putting many records in the same entity group. I am getting my head around this at the moment. http://code.google.

[web2py:35211] Re: customizing auth_user

2009-11-12 Thread Wiiboy
Did you do the same with first_name as well? I'm getting the following with SVN 1421: Traceback (most recent call last): File "/media/apps/web2py/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/media/apps/web2py/applications/main/controllers/default.py", lin

[web2py:35210] Re: Hide fields or remove first and last name from Auth

2009-11-12 Thread Wiiboy
Found it: http://groups.google.com/group/web2py/browse_thread/thread/9f513eb37e2e5dd2/debf2c77ad73ce54?lnk=gst&q=first_name#debf2c77ad73ce54 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To pos

[web2py:35209] Re: Editing Plugins

2009-11-12 Thread mdipierro
Assuming you have the latest admin. At the bottom of th design page you should be able to click on plugin, see and edit the plugin files. On Nov 12, 6:01 pm, guruyaya wrote: > Is it possible to edit a plugin file, after I created it? Clicking on > the plugin from the app menu, just gives me the

[web2py:35208] matplotlib howto

2009-11-12 Thread mdipierro
http://www.web2pyslices.com/main/slices/take_slice/30 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group,

[web2py:35207] Editing Plugins

2009-11-12 Thread guruyaya
Is it possible to edit a plugin file, after I created it? Clicking on the plugin from the app menu, just gives me the list of the projects files. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. T

[web2py:35206] Re: GAE caching

2009-11-12 Thread Robin B
Okay I updated the recipe to use memcache and cron to synchronize tasks and ensure exactly 1 task is ever active http://appengine-cookbook.appspot.com/recipe/hot-handler Robin On Nov 12, 4:26 pm, Robin B wrote: > > Robin, do you have any idea how we can make sure, that a new keep- > > alive ta

[web2py:35205] Re: GAE caching

2009-11-12 Thread Robin B
> Robin, do you have any idea how we can make sure, that a new keep- > alive task only gets insertet, if the queue is empty? Unfortunately > there seems to be no method to query a task queue. I do not think you can read the queue length. Tasks will not be removed unless they receive a 200 http

[web2py:35204] Re: new non-SQLField field

2009-11-12 Thread mdipierro
I have no idea. Can you show use the code? On Nov 12, 1:51 pm, haftish21 wrote: > mList is my class, to be used the same way as SQLField (to define new > field d/t from SQLField). It 100% works on python shell, but on the > model environment it raises the following trace... > > Traceback (most r

[web2py:35203] Re: gae transactions

2009-11-12 Thread mdipierro
You are right. It is more subtle than what I said. Still. You can use them with web2py using run_in_transition and normal web2py API. On Nov 12, 1:26 pm, Vasile Ermicioi wrote: > "All datastore operations in a transaction must operate on entities in the > same entity group. This includes queryin

[web2py:35202] Re: new in trunk, for fun

2009-11-12 Thread Mengu
yes, faker helps too much. thanks for that :) On Nov 12, 8:39 am, mdipierro wrote: > I do not know if this should be in web2py or not but it can be useful > for testing and debugging. > > from gluon.contrib.populate import populate > > db=DAL() > db.define_table('person', >                 Field

[web2py:35201] Re: dict() method

2009-11-12 Thread ShoqulKutlu
Thank you :) On Nov 12, 10:34 pm, Wes James wrote: > brought to you by google: > > http://docs.python.org/library/stdtypes.html#typesmapping > > > > On Thu, Nov 12, 2009 at 1:28 PM, ShoqulKutlu wrote: > > > Hi, > > > Is the method dict() is a web2py method or python built-in method? > > > Than

[web2py:35200] Re: Connection to mysql problem

2009-11-12 Thread ShoqulKutlu
Thanks :) I was able to connect but I was not able to define table? When I try to define a table it gives an sql syntax error like below: ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

[web2py:35199] Re: dict() method

2009-11-12 Thread Wes James
brought to you by google: http://docs.python.org/library/stdtypes.html#typesmapping On Thu, Nov 12, 2009 at 1:28 PM, ShoqulKutlu wrote: > > Hi, > > Is the method dict() is a web2py method or python built-in method? > > Thanks, > Kutlu > --~--~-~--~~~---~--~~ You

[web2py:35198] Re: dict() method

2009-11-12 Thread Vasile Ermicioi
python On Thu, Nov 12, 2009 at 10:28 PM, ShoqulKutlu wrote: > > Hi, > > Is the method dict() is a web2py method or python built-in method? > > Thanks, > Kutlu > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:35197] dict() method

2009-11-12 Thread ShoqulKutlu
Hi, Is the method dict() is a web2py method or python built-in method? Thanks, Kutlu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.co

[web2py:35196] Re: Just wanted to get my inkscape skills a bit

2009-11-12 Thread Vasile Ermicioi
nice On Thu, Nov 12, 2009 at 10:18 PM, guruyaya wrote: > > So I decided to create a scaleable version of the web2py logo. > Enjoy it if you want > http://guruyaya.info/web2py.svg > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:35195] Just wanted to get my inkscape skills a bit

2009-11-12 Thread guruyaya
So I decided to create a scaleable version of the web2py logo. Enjoy it if you want http://guruyaya.info/web2py.svg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send ema

[web2py:35194] new non-SQLField field

2009-11-12 Thread haftish21
mList is my class, to be used the same way as SQLField (to define new field d/t from SQLField). It 100% works on python shell, but on the model environment it raises the following trace... Traceback (most recent call last): File "G:\get2GetHer\itcLessons\oSDI \proj+enkef\fivePythonWF\allWeb2py\w

[web2py:35193] Re: ssh tunnel Dreamhost

2009-11-12 Thread Yarko Tymciurak
If dreamhost gives you a norrmal shell login to your hosting account, then you should be ok (if all you have is a web manager, then this will not be useful to you). Here is what I do - on my local machine, I have something like these bash aliases defined: alias dreamtunnel='ssh -L :127.0.0.1:

[web2py:35192] Re: gae transactions

2009-11-12 Thread Vasile Ermicioi
"All datastore operations in a transaction must operate on entities in the same entity group. This includes querying for entities by ancestor, retrieving entities by key, updating entities, and deleting entities." I understand that transactions are limited only to one table, not on one record On T

[web2py:35191] Re: gae transactions

2009-11-12 Thread Vasile Ermicioi
thank you On Thu, Nov 12, 2009 at 9:07 PM, mdipierro wrote: > > P.S. you can do that with web2py too suing run_in_transaction and your > function that acts on one record only using normal web2py apis. > > On Nov 12, 12:59 pm, mdipierro wrote: > > only transactions within the same record. > > >

[web2py:35190] Re: gae transactions

2009-11-12 Thread mdipierro
P.S. you can do that with web2py too suing run_in_transaction and your function that acts on one record only using normal web2py apis. On Nov 12, 12:59 pm, mdipierro wrote: > only transactions within the same record. > > On Nov 12, 12:44 pm, elffikk wrote: > > > Hi, > > > A while ago I read in

[web2py:35189] Re: gae transactions

2009-11-12 Thread mdipierro
only transactions within the same record. On Nov 12, 12:44 pm, elffikk wrote: > Hi, > > A while ago I read in web2py manual that gae doesn't support > transactions > I found this > linkhttp://code.google.com/appengine/docs/python/datastore/transactions.html > Quite confused.. Any one can tell m

[web2py:35188] gae transactions

2009-11-12 Thread elffikk
Hi, A while ago I read in web2py manual that gae doesn't support transactions I found this link http://code.google.com/appengine/docs/python/datastore/transactions.html Quite confused.. Any one can tell me more about? --~--~-~--~~~---~--~~ You received this messag

[web2py:35187] Re: a slice from the maestro himself: ubuntu deployment script

2009-11-12 Thread Thadeus Burgess
The problem with the script is there is still a plethora of configurations that need to be done manually. These either need to be documented, or link to my slice on deployment for configuration. -Thadeus On Thu, Nov 12, 2009 at 10:23 AM, mr.freeze wrote: > > http://www.web2pyslices.com/main/

[web2py:35186] Re: new in trunk, for fun

2009-11-12 Thread Thadeus Burgess
That is sweet. Now I'm going to go generate 20k plus records to see how my database scales! :) -Thadeus On Thu, Nov 12, 2009 at 10:08 AM, mr.freeze wrote: > > I like it! +1 > > On Nov 12, 5:13 am, Douglas Soares de Andrade > wrote: > > Em Thu, 12 Nov 2009 08:57:32 +0200 > > "Jason (spot) B

[web2py:35185] Re: Connection to mysql problem

2009-11-12 Thread Dmitri Zagidulin
Ah, you were able to connect. Ignore that, then :) On Nov 12, 11:59 am, Dmitri Zagidulin wrote: > Did you set the root mysql password? Try setting it, and including the > password in the connect string. > > Did it give you any error messages? > > On Nov 11, 5:53 pm, ShoqulKutlu wrote: > > > Hi,

[web2py:35184] Re: Connection to mysql problem

2009-11-12 Thread Dmitri Zagidulin
Did you set the root mysql password? Try setting it, and including the password in the connect string. Did it give you any error messages? On Nov 11, 5:53 pm, ShoqulKutlu wrote: > Hi, > > I installed web2py Version 1.72.3 on Windows. When I started the > web2py server it found the MySql driver.

[web2py:35183] a slice from the maestro himself: ubuntu deployment script

2009-11-12 Thread mr.freeze
http://www.web2pyslices.com/main/slices/take_slice/29 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group,

[web2py:35182] Re: new in trunk, for fun

2009-11-12 Thread mr.freeze
I like it! +1 On Nov 12, 5:13 am, Douglas Soares de Andrade wrote: > Em Thu, 12 Nov 2009 08:57:32 +0200 > "Jason (spot) Brower" escreveu: > > > > > > > AWSOME  This would come in very handy in teaching and testing! > > > On Thu, Nov 12, 2009 at 8:39 AM, mdipierro > > wrote: > > > > I do not kn

[web2py:35181] Re: web2py CRM (version 0.1)

2009-11-12 Thread JorgeRpo
I can help translating to spanish On Nov 12, 9:28 am, mdipierro wrote: > Good. > First, > somebody has to scan markup all strings and add >    db.table.field.label=T(...) > and >    VALIDATOR(...,error_message=T(...)) > > Massimo > > On Nov 12, 5:19 am, yamandu wrote: > > > Massimo, are you rea

[web2py:35180] Re: web2py CRM (version 0.1)

2009-11-12 Thread Álvaro Justen [Turicas]
On Wed, Nov 11, 2009 at 06:26, mdipierro wrote: > > CRM = Customer Relationship Management > > https://launchpad.net/web2py-crm > > It is a simplified clone of "highrise" by 37signals. > Manages companies, people, tasks, logs, files and almost everything is > taggable > Includes a stand alone por

[web2py:35179] Re: decimal type in web2py

2009-11-12 Thread villas
On Nov 12, 12:10 pm, DenesL wrote: > ideal IS_DEC_IN_RANGE validator should also be based on DB back-end, > definite values are easier but would limit values for otherwise > limitless POSTGRESQL values. As this feature has already taken a long time to specify, my vote would be to simplify it as

[web2py:35178] Re: Hide fields or remove first and last name from Auth

2009-11-12 Thread Wiiboy
> Extend the Auth class in your own module. > This means that you redefine the elements you wish to change. > I use AuthS3() for my app & hence instantiate as: auth=AuthS3() I did make my own, but I got a KeyError:"no field named first_name" or something like that. --~--~-~--~~---

[web2py:35177] Re: web2py CRM (version 0.1)

2009-11-12 Thread mdipierro
Good. First, somebody has to scan markup all strings and add db.table.field.label=T(...) and VALIDATOR(...,error_message=T(...)) Massimo On Nov 12, 5:19 am, yamandu wrote: > Massimo, are you reading my mind? > I can work on the brazilian portuguese version! > > On Nov 11, 7:30 pm, mdipie

[web2py:35176] Re: decimal type in web2py

2009-11-12 Thread DenesL
On Nov 12, 7:34 am, Douglas Soares de Andrade wrote: > > > SQLite : no > > What about sqlite ? It would be a Float in sqlite ? No, it would have to be natively supported in the DB. Otherwise the conversion problems that we are trying to avoid would still occur. --~--~-~--~~

[web2py:35175] Re: Twill + Web2Py

2009-11-12 Thread Dmitri Zagidulin
Ah, cool! I came across lxml before, and lost track of what it was called, so I tried to find it again yesterday, to no avail. Thanks for finding it! On Nov 11, 10:07 pm, David wrote: > That definitely turned me on to lxml as well.  I've been running with > BeautifulSoup but sometimes it chokes

[web2py:35174] Re: Problem with MySql Connection

2009-11-12 Thread Pepe
Thanks, the problem was after the installation of python-mysql, i don't know why, but when i logout of shell the connection works. greetings! pepe. On Nov 11, 2:49 pm, Thadeus Burgess wrote: > YOu need to install the python mysql drivers. > > apt-get install python-mysql > > -Thadeus > > > >

[web2py:35173] Re: ssh tunnel Dreamhost

2009-11-12 Thread Pepe
thanks, but I'm finally using a self-signed certificate... On Nov 11, 2:49 pm, Thadeus Burgess wrote: > http://www.google.com/search?q=ssh+port+forwarding&ie=utf-8&oe=utf-8&;... > > -Thadeus > > > > On Wed, Nov 11, 2009 at 12:03 AM, Pepe wrote: > > > Hi! > > > I need to manage the application

[web2py:35172] Re: decimal type in web2py

2009-11-12 Thread Douglas Soares de Andrade
Em Thu, 12 Nov 2009 04:10:46 -0800 (PST) DenesL escreveu: > Thinking about adding a decimal type to web2py. > > Syntax: > Field('x','decimal',length=10,digits=2) > > defaults should be based on DB back-end or just 10,2 for example > (easier)? > > ideal IS_DEC_IN_RANGE validator should also be

[web2py:35171] decimal type in web2py

2009-11-12 Thread DenesL
Thinking about adding a decimal type to web2py. Syntax: Field('x','decimal',length=10,digits=2) defaults should be based on DB back-end or just 10,2 for example (easier)? ideal IS_DEC_IN_RANGE validator should also be based on DB back-end, definite values are easier but would limit values for o

[web2py:35170] Re: web2py CRM (version 0.1)

2009-11-12 Thread yamandu
Massimo, are you reading my mind? I can work on the brazilian portuguese version! On Nov 11, 7:30 pm, mdipierro wrote: > I would take some help in adding internationalization and improving/ > testing the fullcalendar capabilities. Also need to add search by > tag. > > On Nov 11, 3:23 pm, mdipier

[web2py:35169] Re: new in trunk, for fun

2009-11-12 Thread Douglas Soares de Andrade
Em Thu, 12 Nov 2009 08:57:32 +0200 "Jason (spot) Brower" escreveu: > > AWSOME This would come in very handy in teaching and testing! > > On Thu, Nov 12, 2009 at 8:39 AM, mdipierro > wrote: > > > > I do not know if this should be in web2py or not but it can be > > useful for testing and debug

[web2py:35168] ORA-01795: maximum number of expressions in a list is 1000

2009-11-12 Thread SergeyPo
Here is a possibility to make DAL a bit more transparent for those who use Oracle: when we use statements like: db(db.tablename.fieldname.belongs(the_list)).update(x=y) Oracle (unlike its open-source counterparts) fires an error coded ORA-01795 if length of 'the_list' exceeds 1000. There is no w

[web2py:35167] Re: Hide fields or remove first and last name from Auth

2009-11-12 Thread Fran
On Nov 12, 4:34 am, Wiiboy wrote: > Is there a way to not use first_name and last_name in an auth_table? > I made an extension auth_table, but don't have a use for first and > last_names. Extend the Auth class in your own module. This means that you redefine the elements you wish to change. I us