[web2py:35326] Re: decimal type in web2py

2009-11-13 Thread mdipierro
status report. 1) I reverted from 'repr' to 'str'. we are going to have rounding errors with sqlite but not as big as in my example before. 2) I also have added support for decimal for all the other databases that support it. There is an issue with some adapters so I do not swear by this. Moreov

[web2py:35325] Re: decimal type in web2py

2009-11-13 Thread mdipierro
decimal is a big can of worms: http://www.mail-archive.com/django-us...@googlegroups.com/msg89642.html On Nov 13, 11:43 pm, mdipierro wrote: > Fascinating. As an experiment I replaced str with repr and it usually > works with float.  Float is better then integer because allows > migrations from

[web2py:35324] Re: decimal type in web2py

2009-11-13 Thread mdipierro
Fascinating. As an experiment I replaced str with repr and it usually works with float. Float is better then integer because allows migrations from one decimal type to float and vice versa and allows for expressions involving different field types without major errors. The problem is that when i

[web2py:35323] Re: decimal type in web2py

2009-11-13 Thread Jonathan Lundell
On Nov 13, 2009, at 4:36 PM, Massimo Di Pierro wrote: > In theory double has 53 bits. Yet I tried and it does not seem to work > properly. It rounds to the cents. You may want to try the attached > files. Perhaps I am doing something wrong. I'm not advocating floating point; I think it's a

[web2py:35322] Re: customizing auth_user

2009-11-13 Thread Wiiboy
Ya =) --~--~-~--~~~---~--~~ 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...@googlegroups.c

[web2py:35321] Re: customizing auth_user

2009-11-13 Thread mdipierro
perhaps this should be default. On Nov 13, 6:49 pm, mdipierro wrote: > You need to add > > auth.messages.group_description="group for use %(id)s" > > On Nov 13, 6:42 pm, Wiiboy wrote: > > > SVN 1433 -- No first_name or last_name defined anywhere: > > Traceback (most recent call last): > >   Fil

[web2py:35320] Re: decimal type in web2py

2009-11-13 Thread Jonathan Lundell
On Nov 13, 2009, at 5:12 PM, Jonathan Lundell wrote: > > On Nov 13, 2009, at 4:36 PM, Massimo Di Pierro wrote: > >> In theory double has 53 bits. Yet I tried and it does not seem to work >> properly. It rounds to the cents. You may want to try the attached >> files. Perhaps I am doing somet

[web2py:35319] Re: decimal type in web2py

2009-11-13 Thread Jonathan Lundell
On Nov 13, 2009, at 4:36 PM, Massimo Di Pierro wrote: > In theory double has 53 bits. Yet I tried and it does not seem to work > properly. It rounds to the cents. You may want to try the attached > files. Perhaps I am doing something wrong. What are you expecting to see? --~--~-~--

[web2py:35318] Re: customizing auth_user

2009-11-13 Thread Wiiboy
Oh. Cool. Thanks. --~--~-~--~~~---~--~~ 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...@

[web2py:35317] Re: customizing auth_user

2009-11-13 Thread mdipierro
You need to add auth.messages.group_description="group for use %(id)s" On Nov 13, 6:42 pm, Wiiboy wrote: > SVN 1433 -- No first_name or last_name defined anywhere: > Traceback (most recent call last): >   File "/media/apps/web2py/gluon/restricted.py", line 184, in > restricted >     exec ccode

[web2py:35316] Re: customizing auth_user

2009-11-13 Thread Wiiboy
SVN 1433 -- No first_name or last_name defined anywhere: 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", line 54, in File "/media/apps/

[web2py:35315] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread Gabriele Alberti
Yes now it does work properly, both for auth tables and application tables. I'll let you know if I notice something else wrong.. Thank you very much for your quick support! G. On Nov 14, 1:20 am, mdipierro wrote: > is it fixed now? > > On Nov 13, 4:19 pm, Gabriele  Alberti > wrote: > > > Same

[web2py:35313] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread mdipierro
is it fixed now? On Nov 13, 4:19 pm, Gabriele Alberti wrote: > Same line, NameError: global name 'field_name' is not defined. I could > even guess the patch ;) > > G. > > On Nov 13, 10:52 pm, mdipierro wrote: > > > fixed. try again. > > > On Nov 13, 3:06 pm, Gabriele  Alberti > > wrote: > > >

[web2py:35312] Re: decimal type in web2py

2009-11-13 Thread Jonathan Lundell
On Nov 13, 2009, at 4:09 PM, mdipierro wrote: > > On a second thought. The problem is not the rounding. If we use float > internally we do not have the precision of 1c in $1billion. Float has 53 bits, no? > > On Nov 13, 5:10 pm, villas wrote: >> On Nov 13, 9:59 pm, mdipierro wrote: >> >>>

[web2py:35311] Re: decimal type in web2py

2009-11-13 Thread mdipierro
On a second thought. The problem is not the rounding. If we use float internally we do not have the precision of 1c in $1billion. On Nov 13, 5:10 pm, villas wrote: > On Nov 13, 9:59 pm, mdipierro wrote: > > > In trunk, again you can now do (sqlite only) > > while this works it is not clear to h

[web2py:35310] Re: decimal type in web2py

2009-11-13 Thread mdipierro
I think you are right. Massimo On Nov 13, 5:10 pm, villas wrote: > On Nov 13, 9:59 pm, mdipierro wrote: > > > In trunk, again you can now do (sqlite only) > > while this works it is not clear to how it should work with forms and > > validators. Right now you insert decimal, retrieve, search, o

[web2py:35309] Re: Database Views and DAL?

2009-11-13 Thread Brian M
An ugly work around seems to be to add a fake id field to the view's definition using something like abs(random()). It worked on the one view I tried, but it isn't guaranteed to since random does not guarantee unique every time. It would be nice to just be able to tell the DAL this is a view and

[web2py:35308] Re: decimal type in web2py

2009-11-13 Thread villas
On Nov 13, 9:59 pm, mdipierro wrote: > In trunk, again you can now do (sqlite only) > while this works it is not clear to how it should work with forms and > validators. Right now you insert decimal, retrieve, search, orderby, > add but you cannot put them in forms. Great, I like the layout/flas

[web2py:35307] Re: crazy crazy idea

2009-11-13 Thread Thadeus Burgess
I would love to go, however the cost would prohibit me from attending this year. -Thadeus On Fri, Nov 13, 2009 at 4:02 PM, mdipierro wrote: > > You are right but I am counting on the financial crisis to play in our > favor. > I never visited any ski resort in the us so I have no idea of how

[web2py:35306] Re: Database Views and DAL?

2009-11-13 Thread Brian M
They are SQLite views, though I suspect you'd have similar problems with other database's views as well. There is no auto-increment field at all - it's a database view rather than a table. Having an auto-increment field doesn't make any sense in a view, you're not going to insert any records into

[web2py:35305] Re: Key/Value Tables Suggestions

2009-11-13 Thread mdipierro
Look into the models of the kpax app. It has something like this for the survey functionality. On Nov 13, 3:37 pm, Andrew Barilla wrote: > I'm going to create a table which has a couple tables set up as key/ > value tables such as: > > Questions table > - question_id > - question > > Answers tab

[web2py:35304] Key/Value Tables Suggestions

2009-11-13 Thread Andrew Barilla
I'm going to create a table which has a couple tables set up as key/ value tables such as: Questions table - question_id - question Answers table - question_id - user_id - answer Is there a way to set this up for web2py that would take advantage of its features? Of course, I was thinking since

[web2py:35303] Re: decimal type in web2py

2009-11-13 Thread mdipierro
I sent the wrong example. here is the right one >>> import decimal >>> db=DAL() >>> db.define_table('a',Field('b','decimal(10,3)')) >>> b=decimal.Decimal('123456789123.987654321') >>> db.a.insert(b=b) >>> for row in db(db.a.id>0).select(): >>> print row.b, type(row.b) 123456789123.987 This

[web2py:35302] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread Gabriele Alberti
Same line, NameError: global name 'field_name' is not defined. I could even guess the patch ;) G. On Nov 13, 10:52 pm, mdipierro wrote: > fixed. try again. > > On Nov 13, 3:06 pm, Gabriele  Alberti > wrote: > > > Uhmmm.. I get this > > > File "/home/dbtest/web2py-trunk/gluon/sql.py", line 1535

[web2py:35301] Re: crazy crazy idea

2009-11-13 Thread mdipierro
You are right but I am counting on the financial crisis to play in our favor. I never visited any ski resort in the us so I have no idea of how much this is going to cost. On Nov 13, 3:58 pm, Joe Barnhart wrote: > I think it's a fun idea.  There are a couple of things you will have to deal > wit

[web2py:35300] Re: decimal type in web2py

2009-11-13 Thread mdipierro
In trunk, again you can now do (sqlite only) >>> import decimal >>> db=DAL() >>> db.define_table('a',Field('b','decimal(10,3)')) >>> b=123456789123.987654321 >>> db.a.insert(b=b) >>> for row in db(db.a.id>0).select(): >>> print row.b, type(row.b) 123456789123.987 while this works it is not

[web2py:35299] Re: crazy crazy idea

2009-11-13 Thread Joe Barnhart
I think it's a fun idea. There are a couple of things you will have to deal with, tho... 1. Transportation. Most ski resorts have pretty poor airport access. It's just the nature of the beast. 2. Cost. You'll be visiting the resorts at the peak of their busy season. Expect $200-300 per night

[web2py:35298] Re: Editing Plugins

2009-11-13 Thread mr.freeze
No problemo. Just reporting in case it helped. On Nov 13, 3:52 pm, mdipierro wrote: > fixed. sorry was working on trunk > > On Nov 13, 3:12 pm, "mr.freeze" wrote: > > > I get this on a new app running from trunk: > > > Traceback (most recent call last): > >   File "c:\web2py\gluon\restricted.p

[web2py:35297] Re: Editing Plugins

2009-11-13 Thread mdipierro
fixed. sorry was working on trunk On Nov 13, 3:12 pm, "mr.freeze" wrote: > I get this on a new app running from trunk: > > Traceback (most recent call last): >   File "c:\web2py\gluon\restricted.py", line 184, in restricted >     exec ccode in environment >   File "C:/web2py/applications/crashte

[web2py:35296] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread mdipierro
fixed. try again. On Nov 13, 3:06 pm, Gabriele Alberti wrote: > Uhmmm.. I get this > > File "/home/dbtest/web2py-trunk/gluon/sql.py", line 1535, in _create >     costraint_name = '%s_%s__constraint' % (table_name, field_name) > NameError: global name 'table_name' is not defined > > with the wel

[web2py:35295] Re: Is the Trunk Broken? [SOLVED]

2009-11-13 Thread villas
@Massimo I downloaded a complete fresh copy and it seems OK again now :-) I've no idea what the problem was and I'm sorry to waste your time checking it. Regards, David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:35294] Re: Editing Plugins

2009-11-13 Thread mr.freeze
I get this on a new app running from trunk: Traceback (most recent call last): File "c:\web2py\gluon\restricted.py", line 184, in restricted exec ccode in environment File "C:/web2py/applications/crashtest/models/db.py", line 31, in auth.define_tables() # crea

[web2py:35293] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread Gabriele Alberti
Uhmmm.. I get this File "/home/dbtest/web2py-trunk/gluon/sql.py", line 1535, in _create costraint_name = '%s_%s__constraint' % (table_name, field_name) NameError: global name 'table_name' is not defined with the welcome app.. G. On Nov 13, 8:40 pm, mdipierro wrote: > another option in tru

[web2py:35292] Re: Editing Plugins

2009-11-13 Thread Yair Eshel
I hope I'll test it tommorow morning. If I'll test it before, my daughter probably woke me up (teething). On Fri, Nov 13, 2009 at 10:37 PM, mdipierro wrote: > > I will hit you with a thank you. This is the second bug you found > today. > I am re-posting a fix to trunk. I trust you will test it.

[web2py:35291] Re: decimal type in web2py

2009-11-13 Thread mdipierro
I have a possible implementation of decimal in trunk for sqlite Field('dollars','decimal(7,3)') 3 decimals. Can you give it a try? Can we do better? Massimo On Nov 13, 7:39 am, Kuba Kucharski wrote: > +1 > > -- > Kuba --~--~-~--~~~---~--~~ You received this me

[web2py:35290] Re: Weird behaviour of translation and routes.py (possible bug or dumb me)

2009-11-13 Thread Benigno
Seen it, Thank you Massimo. On Nov 8, 11:08 pm, mdipierro wrote: > This is (was) a bug. It is now fixed in trunk. Thanks for reporting > it. > > Massimo > > On Nov 6, 2:50 pm, Benigno wrote: > > > Ok, > > >    Problem still there withoutroutes.py. > > >    Removedroutes.py, but left on db.py t

[web2py:35289] Re: plugin_tagging

2009-11-13 Thread dbb
I need some rest and look this plugin in a fresh mind. On Nov 13, 3:24 pm, dbb wrote: > Thank you Massimo, I was really confuse on which "view" you are > talking, > the view created by the plugin or the view in my application. > I am taking you answer to be the view in my application. > > On Nov

[web2py:35288] Re: Editing Plugins

2009-11-13 Thread mdipierro
I will hit you with a thank you. This is the second bug you found today. I am re-posting a fix to trunk. I trust you will test it. :-) Thanks. Massimo On Nov 13, 2:27 pm, guruyaya wrote: > Ummm you won't like what I have to say. Please don't hit me. > I've updated the svn. Just to be on the sa

[web2py:35287] Re: Editing Plugins

2009-11-13 Thread guruyaya
Ummm you won't like what I have to say. Please don't hit me. I've updated the svn. Just to be on the safe side I've also re- checkedout the project. Now going into: http://127.0.0.1:8000/welcome/default/index Give me an exception (ticket), that goes like this: Traceback (most recent call last):

[web2py:35286] Re: plugin_tagging

2009-11-13 Thread dbb
Thank you Massimo, I was really confuse on which "view" you are talking, the view created by the plugin or the view in my application. I am taking you answer to be the view in my application. On Nov 13, 2:43 pm, mdipierro wrote: > On Nov 13, 12:29 pm, dbb wrote: > > > Steps taken: > > > - down

[web2py:35285] Re: jpolite 2

2009-11-13 Thread mikech
Bump? On Nov 6, 2:28 pm, mikech wrote: > Yes, it does look good! > > On Nov 6, 5:25 am, murray3 wrote: > > > > > Has a web2py adaptaion been produced yet? Just interested, asjpolite > > v1 was good but this new version seems improved. > > thanks chrism --~--~-~--~~~-

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

2009-11-13 Thread mdipierro
What the script does is to start a web2py instance with admin from localhost only and port 8123. So http://127.0.0.1:8123/admin will work The admin interface is not exposed via http nor https at all. Massimo On Nov 13, 12:27 pm, Alex Fanjul wrote: > But as far as I knew, we could access to ad

[web2py:35283] Re: Database Views and DAL?

2009-11-13 Thread mdipierro
Do they have an autoincrement integer field, even if not called id? what database? On Nov 13, 1:31 pm, Brian M wrote: > Is there a way to work with database views using the DAL? I've got a > bunch of views in my database that handle common queries, but I'm not > seeing a way to use them with the

[web2py:35282] Re: plugin_tagging

2009-11-13 Thread mdipierro
On Nov 13, 12:29 pm, dbb wrote: > Steps taken: > > - downloaded the plugin mini application CRM > (version of web2py is 1.72.30) > - UPLOAD CRM as plugin > - click on tagging ok so far > - click on tag in the controller, got 404-not-found > -click on tag_cloud in the controler, got blank page

[web2py:35281] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread mdipierro
another option in trunk. On Nov 13, 11:48 am, mdipierro wrote: > I think I found a more permanent and automatic fix. It is in trunk. > Please delete your db and try the trunk web2py with default settings. > I willowed your suggestion of hashing for oracle only if len>30 so it > is backward compa

[web2py:35280] Database Views and DAL?

2009-11-13 Thread Brian M
Is there a way to work with database views using the DAL? I've got a bunch of views in my database that handle common queries, but I'm not seeing a way to use them with the DAL since they don't have an id field. I tried to define a DAL "table" with the same fields as the view and just set it to mi

[web2py:/] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread mdipierro
I think I found a more permanent and automatic fix. It is in trunk. Please delete your db and try the trunk web2py with default settings. I willowed your suggestion of hashing for oracle only if len>30 so it is backward compatible. Massimo On Nov 13, 11:29 am, Gabriele Alberti wrote: > Hello,

[web2py:35279] Re: plugin_tagging

2009-11-13 Thread dbb
There is no error messages except 404-not-found. what do I have to do in addtion to downloading the application? On Nov 13, 1:29 pm, dbb wrote: > Steps taken: > > - downloaded the plugin mini application CRM > (version of web2py is 1.72.30) > - UPLOAD CRM as plugin > - click on tagging > - click

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

2009-11-13 Thread mr.freeze
And for the record, I am NOT the maestro :) On Nov 13, 12:00 pm, Alex Fanjul wrote: > Hi Mr Freeze, > After using this script in a clean ubuntu I cannot acceso to admin > section from localhost using http. > It shows: > >   Forbidden > > You don't have permission to access /admin/default/index o

[web2py:/] Re: Editing Plugins

2009-11-13 Thread Thadeus Burgess
web2py_plugin.png 13-Nov-2009 09:45 235K plugins.png 13-Nov-2009 09:45 231K web2py_web_editor.png 24-Oct-2009 11:05 238K -Thadeus On Fri, Nov 13, 2009

[web2py:/] Re: SQLFORM client side checks

2009-11-13 Thread Thadeus Burgess
Actually it only sends the AJAX request when value of the element changes. So its just a small request. I can email you a link to a live example. As far as client side checks, jquery.ui has some that are still in testing, and you can always right your own with javascript (if you don't want to make

[web2py:35277] Re: plugin_tagging

2009-11-13 Thread dbb
Steps taken: - downloaded the plugin mini application CRM (version of web2py is 1.72.30) - UPLOAD CRM as plugin - click on tagging - click on tag in the controller, got 404-not-found -click on tag_cloud in the controler, got blank page On Nov 13, 1:19 pm, mdipierro wrote: > Please list steps

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

2009-11-13 Thread Alex Fanjul
But as far as I knew, we could access to admin secction either by remote ssh (443) or by localhost (with 80), and now I'm on localhost...actually, :( Alex F El 13/11/09 19:21, mdipierro escribió: > That is done on purpose. In production you should only access admin > via ssh tunnel. > You shou

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

2009-11-13 Thread mdipierro
That is done on purpose. In production you should only access admin via ssh tunnel. You should not expose admin via http, not even with mod_proxy. If you read the script it tells you what to uncomment to expose admin via https On Nov 13, 12:00 pm, Alex Fanjul wrote: > Hi Mr Freeze, > After using

[web2py:35274] Re: plugin_tagging

2009-11-13 Thread mdipierro
Please list steps to reproduce the problem On Nov 13, 11:57 am, dbb wrote: > I have already logged in my application but still I am seeing 404 not > found message > > On Nov 13, 12:42 pm, dbb wrote: > > > Ok, it is excellent work thing are getting more appealing and even the > > questions chang

[web2py:/] Re: plugin_tagging

2009-11-13 Thread mdipierro
All you do is in pages {{=tag('tablename',record_number)}} and or. {{=tag_cloud}} You do not call the actions directly. On Nov 13, 11:42 am, dbb wrote: > Ok, it is excellent work thing are getting more appealing and even the > questions changes "how do we do this as develpers... bla bla",  w

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

2009-11-13 Thread Alex Fanjul
Hi Mr Freeze, After using this script in a clean ubuntu I cannot acceso to admin section from localhost using http. It shows: Forbidden You don't have permission to access /admin/default/index on this server. I dont know if it is apache conf issue or user permisions issues... sorry im not

[web2py:/] Re: plugin_tagging

2009-11-13 Thread dbb
I have already logged in my application but still I am seeing 404 not found message On Nov 13, 12:42 pm, dbb wrote: > Ok, it is excellent work thing are getting more appealing and even the > questions changes "how do we do this as develpers... bla bla",  which > is a good sign that web2py is rol

[web2py:/] Re: Editing Plugins

2009-11-13 Thread mdipierro
Grrr. You are rit. The view was not being version controlled. I now added. Please check. Massimo On Nov 13, 11:47 am, Thadeus Burgess wrote: >       tagging.png > 13-Nov-2009 09:45  235K > > -Thadeus > > On Fri, Nov 13, 2009 at 11:47 AM, Thadeus Burgess

[web2py:/] Re: crazy crazy idea

2009-11-13 Thread Thadeus Burgess
Down for it! -Thadeus On Fri, Nov 13, 2009 at 11:24 AM, mdipierro wrote: > > I really love to ski but for various reasons I never get to do it. So > I thought we could organize a web2py meeting in January or February (a > Fri-Sat-Sun) on some ski resort (for example in Colorado). I would > g

[web2py:35267] Re: Editing Plugins

2009-11-13 Thread Thadeus Burgess
tagging.png 13-Nov-2009 09:45 235K -Thadeus On Fri, Nov 13, 2009 at 11:47 AM, Thadeus Burgess wrote: > web2py_plugin.png > 13-Nov-2009 09:45 235K > plugins.png

[web2py:35265] Re: plugin_tagging

2009-11-13 Thread dbb
Ok, it is excellent work thing are getting more appealing and even the questions changes "how do we do this as develpers... bla bla", which is a good sign that web2py is rolling in a good way. Regarding plugins , I have the following questions: - how can I incorporate the new plugin within the m

[web2py:/] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread Gabriele Alberti
Hello, your hack seems to be partially working, for those who need it I had to shorten even more your suggestion, so: auth.settings.table_membership_name = 'auth_memb' auth.settings.table_permission_name = 'auth_perm' So far this worked. I'll let you know if anything else gives problems as I wil

[web2py:35262] crazy crazy idea

2009-11-13 Thread mdipierro
I really love to ski but for various reasons I never get to do it. So I thought we could organize a web2py meeting in January or February (a Fri-Sat-Sun) on some ski resort (for example in Colorado). I would give a lecture in the morning and have a coding session in the evening for about 3-4 hrs/d

[web2py:35261] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread mdipierro
For now I would just do in db.py auth=Auth() auth.settings.table_membership_name = 'auth_membr' auth.settings.table_permission_name = 'auth_perms' before auth.define_tables() Don't we all love Oracle quirks? Massimo On Nov 13, 9:59 am, Gabriele Alberti wrote: > Hi, > it is 30

[web2py:35260] Re: Template system

2009-11-13 Thread ShoqulKutlu
Hi Massimo, I sent an email to you. Regards, Kutlu On Nov 13, 5:24 pm, mdipierro wrote: > web2py is GPL2. The OFFICIAL web2py pre-compiled binaries are > freeware. You cannot make your own binaries out of web2py. > > This means if you build a web2py applications (something that goes in > a fo

[web2py:35259] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread Gabriele Alberti
Hi, it is 30 chars. I did not read the DAL code yet, but a simple temporary workaround would be to shorten the suffix string.. maybe a more definitive thing would be a simple checksum (shorter than 30 chars) against the long names ? I'll be glad to give you any support to help. Thanks, G. On N

[web2py:35258] Re: Template system

2009-11-13 Thread mdipierro
web2py is GPL2. The OFFICIAL web2py pre-compiled binaries are freeware. You cannot make your own binaries out of web2py. This means if you build a web2py applications (something that goes in a folder under applications) you CAN distribute them under any license you want and BINDLE it with the off

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

2009-11-13 Thread leo
Understood. Grazie mille, Massimo. And thanks for the excellent framework. I have been working with it only for a few days now, and it promises to be a huge time-saver. Leo On Nov 13, 1:46 am, mdipierro wrote: > This is a limitation of the wsgiserver that comes with web2py. In a > productio

[web2py:35256] Re: Template system

2009-11-13 Thread ShoqulKutlu
Hi Massimo, Do you mean when we use a part of web2py then our application will use GPL license. If it is a commercial product then how do we consider closing source although it is using GPL license? Regards, Kutlu On Nov 13, 4:49 pm, mdipierro wrote: > Sorry no. In my view BSD protects develo

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

2009-11-13 Thread haftish21
I got it, new class was unregistered in the model environment inside the gluon.compileapp folder. Thank you dear md, I'm loving & appreciating web2py's flexibility. On Nov 12, 10:34 pm, mdipierro wrote: > I have no idea. Can you show use the code? > > On Nov 12, 1:51 pm, haftish21 wrote: > > >

[web2py:35254] Re: Template system

2009-11-13 Thread Douglas Soares de Andrade
Em Fri, 13 Nov 2009 06:49:25 -0800 (PST) mdipierro escreveu: > > Sorry no. In my view BSD protects developers (they have to be > mentioned in derivative products, product gets used more, more > developers can use it) while GPL protects users (developers cannot > stop open source development and

[web2py:35253] Re: Editing Plugins

2009-11-13 Thread mdipierro
Any chance you can email me a scree shot including the url you are looking at. I cannot reproduce this. What os? On Nov 13, 8:39 am, guruyaya wrote: > Recreating the bug: > 1. Creating a new app (say: yayaapp) > 2. Creating a file in the model section, with plugin in it's name > (say: plugin_yay

[web2py:35252] Re: Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread mdipierro
There will not be a new DAL anytime soo because we have cleaned up the current DAL a lot functionality already so the new DAL is already obsolete in comparison. Let's try adress this specific problem for now. What is the max length for a constraint name in oracle? On Nov 13, 5:29 am, Gabriele

[web2py:35251] Re: Confirmation dialog on delete

2009-11-13 Thread mdipierro
thanks, fixed in trunk. please check it. On Nov 13, 8:22 am, Iceberg wrote: > I happened to find out that the "Confirmation dialog on delete" in > web2py_ajax.html is defined as: > >   $('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T > ('Sure you want to delete this object?')

[web2py:35250] Oracle problems (ORA-00972: identifier is too long)

2009-11-13 Thread Gabriele Alberti
Hello web2py users, recently using Oracle as DB I hit the notorious problem "ORA-00972: identifier is too long". I understood the problem, I modified my code to comply the Oracle limit, then I hit the same problem in "CONSTRAINT auth_membership_user_id__constraint", which is not my code :) I have

[web2py:35249] Re: customizing auth_user

2009-11-13 Thread mdipierro
You should not get the keyerrors in the latest web2py. If you do, please send me the traceback. On Nov 13, 8:19 am, Wiiboy wrote: > How do I fix the KeyErrors then? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "w

[web2py:35248] Re: Template system

2009-11-13 Thread mdipierro
Sorry no. In my view BSD protects developers (they have to be mentioned in derivative products, product gets used more, more developers can use it) while GPL protects users (developers cannot stop open source development and create a closed source commercial derivative). web2py is about protecting

[web2py:35247] Re: Is the Trunk Broken?

2009-11-13 Thread mdipierro
I cannot reproduce this error. What python version and what OS are you using? Massimo On Nov 13, 7:33 am, villas wrote: > No, nothing to do with an ailing elephant. I just upgraded SVN r1422 > and got this. It's probably something simple, but I couldn't see what > had introduced it. > > C:\web2

[web2py:35246] Re: Editing Plugins

2009-11-13 Thread guruyaya
Recreating the bug: 1. Creating a new app (say: yayaapp) 2. Creating a file in the model section, with plugin in it's name (say: plugin_yayaplug) 3. Save 4. Go to Edit on the top menu: 5. click on the plugin by the name you chose: (say yayaplug) 6. Expect to see all models, controllers and view of

[web2py:35245] Confirmation dialog on delete

2009-11-13 Thread Iceberg
I happened to find out that the "Confirmation dialog on delete" in web2py_ajax.html is defined as: $('input.delete').attr('onclick','if(this.checked) if(!confirm("{{=T ('Sure you want to delete this object?')}}")) this.checked=false;'); and it does NOT work. But a slightly adjusted version:

[web2py:35244] Re: customizing auth_user

2009-11-13 Thread Wiiboy
How do I fix the KeyErrors then? --~--~-~--~~~---~--~~ 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

[web2py:35241] Re: decimal type in web2py

2009-11-13 Thread Douglas Soares de Andrade
Em Fri, 13 Nov 2009 04:09:43 -0800 (PST) villas escreveu: > > On Nov 13, 7:22 am, mdipierro wrote: > > There are two issues: > > - decimal would have to be supported but all backends to work > > properly > > - decimal is not supported by Python. > > Is this much complication really worth the

[web2py:35243] Re: Template system

2009-11-13 Thread Douglas Soares de Andrade
Em Thu, 12 Nov 2009 22:45:34 -0800 (PST) mdipierro escreveu: > > 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 > >

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

2009-11-13 Thread Boris Manojlovic
sorry in lp url please add l on the end... *bzr co lp:~mdipierro/web2py-crm/devel* On Fri, Nov 13, 2009 at 2:29 PM, Boris Manojlovic < boris.manojlo...@gmail.com> wrote: > bzr co lp:~mdipierro/web2py-crm/deve > > > On Fri, Nov 13, 2009 at 2:00 PM, salingrosso wrote: > >> ... but I don't know ho

[web2py:35242] Re: decimal type in web2py

2009-11-13 Thread Kuba Kucharski
+1 -- Kuba --~--~-~--~~~---~--~~ 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...@googleg

[web2py:35240] Is the Trunk Broken?

2009-11-13 Thread villas
No, nothing to do with an ailing elephant. I just upgraded SVN r1422 and got this. It's probably something simple, but I couldn't see what had introduced it. C:\web2pysrc>python web2py.py -a "" WARNING:root:no file locking WARNING:root:unable to import wsgiserver default applications appear to be

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

2009-11-13 Thread Boris Manojlovic
bzr co lp:~mdipierro/web2py-crm/deve On Fri, Nov 13, 2009 at 2:00 PM, salingrosso wrote: > ... but I don't know how to download branches from launchpad... :-( > > 2009/11/13 salingrosso > > What are username and password of the demo? >> I can help for the translation in italian. >> >> 2009/11/1

[web2py:35237] Re: decimal type in web2py

2009-11-13 Thread DenesL
On 13 nov, 02:22, mdipierro wrote: > There are two issues: > - decimal would have to be supported but all backends to work properly SQLite might be only one that does not support it. IMO the position should be: if you need decimal you will have to use something other than SQLite. > - decimal is

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

2009-11-13 Thread salingrosso
... but I don't know how to download branches from launchpad... :-( 2009/11/13 salingrosso > What are username and password of the demo? > I can help for the translation in italian. > > 2009/11/13 yamandu > > >> Almost done to pt-br. >> >> On Nov 12, 1:45 pm, JorgeRpo wrote: >> > I can help tr

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

2009-11-13 Thread salingrosso
What are username and password of the demo? I can help for the translation in italian. 2009/11/13 yamandu > > Almost done to pt-br. > > On Nov 12, 1:45 pm, JorgeRpo wrote: > > I can help translating to spanish > > > > On Nov 12, 9:28 am, mdipierro wrote: > > > > > > > > > > > > > Good. > > > F

[web2py:35234] Re: decimal type in web2py

2009-11-13 Thread villas
On Nov 13, 7:22 am, mdipierro wrote: > There are two issues: > - decimal would have to be supported but all backends to work properly > - decimal is not supported by Python. > Is this much complication really worth the trouble? In my mind the problems of not having Decimal are: 1. How we show

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

2009-11-13 Thread yamandu
Almost done to pt-br. On Nov 12, 1:45 pm, JorgeRpo wrote: > 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