[web2py] Discussion: Why is web2py bad for large deployments?

2010-11-12 Thread Jason Brower
I love web2py and it's the only framework i feel i am fully capable to do or learn to do quickly. However, I remember see that this framework is intended for small to medium sized deployments. Is this true? What is it that stops us from larger deployment? Should i pickup django because i may nee

[web2py] Re: Stress testing a web2py deployment

2010-11-12 Thread Luther Goh Lu Feng
Which data are you referring to? I am unsure what you wish me to share. On Nov 12, 10:02 pm, mdipierro wrote: > Can you share some data? > > On Nov 12, 2:01 am, Luther Goh Lu Feng wrote: > > > > > > > > > My colleague did a deployment of web2py using today using apache as a > > reverse proxy. Th

[web2py] Re: Crud.select

2010-11-12 Thread andrej burja
maby it should be like WebGrid :) On Nov 13, 7:14 am, mdipierro wrote: > Probably yes. I am not happy with crud.select. I think it should do > pagination for example too and have sortable columns and perhaps have > a an option to include crud.select(). > > Massimo > > On Nov 12, 10:47 pm, "mr.fre

Re: [web2py] Re: Error when using new wizard

2010-11-12 Thread Kenneth Lundström
Centos 5.5, Apache 2 and mod_wsgi. I tried using the "New simple application". I gave it a name och pressed create. I get "unable to create application 'testing'". Kenneth What is your setup? apache?mod_wsgi? On Nov 12, 5:48 pm, Kenneth Lundström wrote: > Can you check if this folder

[web2py] Re: Crud.select

2010-11-12 Thread mdipierro
Probably yes. I am not happy with crud.select. I think it should do pagination for example too and have sortable columns and perhaps have a an option to include crud.select(). Massimo On Nov 12, 10:47 pm, "mr.freeze" wrote: > I know. I'm asking if it should.  Would you take a patch? > > On Nov

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread mdipierro
web2py 1.89.1 breaks clockpicker for Field('...','time'). Somehow jquery.clockpicker fails to determine the coordinates of the location where the INPUT is located. If anybody knows how to fix this, help is appreciated. Massimo On Nov 12, 9:22 am, mdipierro wrote: > Please give it a try and rep

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
Did you restart the server? On Nov 12, 11:13 pm, mart wrote: > hum... the upgrade broke my running instance of web2py (not a big > deal, I'll just install (not upgrade) to a different folder). Since, > this seems to only happen to me, I can assume that it is something I > have in current web2py f

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
I'm not sure how pyodbc works internally, but you might try turning on TCP protocol on the db if it is not already enabled. On Nov 12, 11:59 pm, Crim wrote: > thanks a lot for your help xD now the only errors im getting are from > not being able to connect to my db :P i think that there is someth

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
thanks a lot for your help xD now the only errors im getting are from not being able to connect to my db :P i think that there is something in the conf of the db that is keeping me from connecting :P ps if you just right click the web2py.py and run with python .. that works too xD thanks for teach

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
No problem. Just download this: http://www.web2py.com/examples/static/web2py_src.zip and extract it somewhere. From there do: Start / Run / cmd / Hit enter cd c:\where_ever_you_put_web2py_src python web2py.py If you get grief about python being an unknown command, then it means the python exe is

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
wait i take that back it keeps throwing this error Traceback (most recent call last): File "C:/Users/SmartAssX/Desktop/test", line 3, in snt = pyodbc.connect('driver={SQL Server};server=localhost;database=stuff;uid=sa;pwd=') Error: ('08001', '[08001] [Microsoft][ODBC SQL Server Driver] [DBN

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i ran the pyodbc.connect( and it work ... it didnt do anything ie no errors so it seems like its working xD im using the windows installer so i suppose binary ... i dont mean to sound like a huge noob but i am a little and would like to know how to "install" the source file On Nov 12, 11:13 pm,

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mart
hum... the upgrade broke my running instance of web2py (not a big deal, I'll just install (not upgrade) to a different folder). Since, this seems to only happen to me, I can assume that it is something I have in current web2py folder (or on my system)... wish I knew what the "oddity" was so I could

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
You would need to do snt = pyodbc.connect(...). It sounds like the driver is working though. Are you running the binary or source version of web2py. If you're running the binary version then it is using the Python 2.5 that ships with web2py. You may want to try the source version so that it uses yo

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
python 2.7 the import worked fine i tryed this next in the shell and got the following error import pyodbc snt = connect('driver={SQL Server};server=localhost;database=stuff;uid=sa;pwd=') -- Traceback (most recent call last): File "C:/Users/name/Desktop/test", line 3, in

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Start / Run / c:\python26\python.exe (or whatever your python version is) import pyodbc I see that there is only a 64bit driver for python 2.7. What version are you running? On Nov 12, 10:55 pm, Crim wrote: > you mean just > import pyodbc > db = DAL('mssql://acc:p...@localhost/stuff', pool_size=

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Alex
Maybe a bug? When I create a .LOAD component, the save doesn't seem to work in IE or Firefox. On Nov 12, 10:44 pm, mdipierro wrote: > The fact is after you upgrade you get the new admin which uses a new > API function. Unless you restart the server that API function is not > available. This is a

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
you mean just import pyodbc db = DAL('mssql://acc:p...@localhost/stuff', pool_size=0) ?? On Nov 12, 10:51 pm, "mr.freeze" wrote: > Are you able to open a python shell and do this without error? If not, > there is a problem with the driver: > import pyodbc > > On Nov 12, 10:47 pm, Crim wrote: >

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Are you able to open a python shell and do this without error? If not, there is a problem with the driver: import pyodbc On Nov 12, 10:47 pm, Crim wrote: > i do > > if it makes a difference im on a 64bit system > > On Nov 12, 10:46 pm, "mr.freeze" wrote: > > > Do you have the pyodbc driver insta

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i do if it makes a difference im on a 64bit system On Nov 12, 10:46 pm, "mr.freeze" wrote: > Do you have the pyodbc driver installed?http://code.google.com/p/pyodbc/ > > On Nov 12, 10:43 pm, Crim wrote: > > > > > > > > > it gives me this in the error snapshot: > > (global name 'pyodbc' is not d

[web2py] Re: Crud.select

2010-11-12 Thread mr.freeze
I know. I'm asking if it should. Would you take a patch? On Nov 12, 10:42 pm, mdipierro wrote: > No it does not. > > On Nov 12, 8:41 pm, "mr.freeze" wrote: > > > Should Crud.select honor record level auth permissions when returning > > records? Right now it only filters by table. > >

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Do you have the pyodbc driver installed? http://code.google.com/p/pyodbc/ On Nov 12, 10:43 pm, Crim wrote: > it gives me this in the error snapshot: > (global name 'pyodbc' is not defined > (tried 5 times)) > > On Nov 12, 10:40 pm, mdipierro wrote: > > > Can you post the exact error? > > There i

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
The fact is after you upgrade you get the new admin which uses a new API function. Unless you restart the server that API function is not available. This is a one time event since we never made such a big change in admin. On Nov 12, 7:26 pm, Anthony wrote: > I had the same exact experience on Win

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
sry about that no i had fixed that part :( On Nov 12, 10:42 pm, "mr.freeze" wrote: > If that is the actual URI, then it is missing a colon after mssql. > > On Nov 12, 10:40 pm, mdipierro wrote: > > > > > > > > > Can you post the exact error? > > There is not nothing working with your URI string

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
it gives me this in the error snapshot: (global name 'pyodbc' is not defined (tried 5 times)) On Nov 12, 10:40 pm, mdipierro wrote: > Can you post the exact error? > There is not nothing working with your URI string and the password is > indeed optional. > > Massimo > > On Nov 12, 10:36 pm, Crim

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
If that is the actual URI, then it is missing a colon after mssql. On Nov 12, 10:40 pm, mdipierro wrote: > Can you post the exact error? > There is not nothing working with your URI string and the password is > indeed optional. > > Massimo > > On Nov 12, 10:36 pm, Crim wrote: > > > i wasnt able

[web2py] Re: Crud.select

2010-11-12 Thread mdipierro
No it does not. On Nov 12, 8:41 pm, "mr.freeze" wrote: > Should Crud.select honor record level auth permissions when returning > records? Right now it only filters by table.

[web2py] Re: Error when using new wizard

2010-11-12 Thread mdipierro
What is your setup? apache?mod_wsgi? On Nov 12, 5:48 pm, Kenneth Lundström wrote: >  > Can you check if this folder was created? >  >  /data/domains/web2py/applications/Boatintra > > No it was not created. > >  > if not it is a file permission issue. What os? was it a binary > distribution of we

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mdipierro
Can you post the exact error? There is not nothing working with your URI string and the password is indeed optional. Massimo On Nov 12, 10:36 pm, Crim wrote: > i wasnt able to figure out the meaning of the error... > > On Nov 12, 10:32 pm, "mr.freeze" wrote: > > > Can you post the traceback of

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread Crim
i wasnt able to figure out the meaning of the error... On Nov 12, 10:32 pm, "mr.freeze" wrote: > Can you post the traceback of the error? > > On Nov 12, 5:27 pm, Crim wrote: > > > > > > > > > so this is all the code i really have for this right now > > > db = DAL('mssql//s...@localhost/master')

[web2py] Re: internal error trying to connect to a mssql db

2010-11-12 Thread mr.freeze
Can you post the traceback of the error? On Nov 12, 5:27 pm, Crim wrote: > so this is all the code i really have for this right now > > db = DAL('mssql//s...@localhost/master') > > just trying to connect to my localhost ms sql db that i set up using > the newest version of ms sql server > >

[web2py] internal error trying to connect to a mssql db

2010-11-12 Thread Crim
so this is all the code i really have for this right now db = DAL('mssql//s...@localhost/master') just trying to connect to my localhost ms sql db that i set up using the newest version of ms sql server im just trying to use the default account sa to connect ... which doesnt require a passw

[web2py] Use DAL() to connect to a local MS Sql db

2010-11-12 Thread Crim
Ok so i have been reading the web2py book and it says to use this sort of command to connect db = DAL('mssql://account_name:passwo...@localhost/master') # the databases name is master and i want to print the tables print db.tables #so i can check if its working by looking at my properties

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Brian M
Probably typo in wizard at step 2 The Instructions say: If you need authentication remove the table "auth_user". Shouldn't that be: If you DO NOT need authentication remove the table "auth_user" On Nov 12, 9:22 am, mdipierro wrote: > Please give it a try and report any bug. > > 1.89.1 >

[web2py] Crud.select

2010-11-12 Thread mr.freeze
Should Crud.select honor record level auth permissions when returning records? Right now it only filters by table.

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Anthony
I had the same exact experience on Windows (in IE). Here's the traceback I got: Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 188, in restricted exec ccode in environment File "C:\web2py\applications\admin/views\default/site.html", line 182, in AttributeErr

Re: [web2py] Re: Translations within the URL method

2010-11-12 Thread Branko Vukelic
Thanks, that seems to be working. :) On Sat, Nov 13, 2010 at 1:15 AM, Martin.Mulone wrote: > Did you try? > > IMG(_src=URL('static', str(T('images/someimage.jpg' > > On 12 nov, 20:59, Branko Vukelic wrote: >> I'm using the URL method as a src attribute for an image like so: >> >> IMG(_src=UR

Re: [web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread Andrew Thompson
On 11/12/2010 4:58 PM, mdipierro wrote: ps. may not work on windows I doubt this is what you meant, but I seem to have hit a snag with the upgrade. web2py is running on ubuntu, but I'm managing it from chrome on win7. After upgrading, the redirect back failed. Attempting to reload the admin

[web2py] Re: Translations within the URL method

2010-11-12 Thread Martin.Mulone
Did you try? IMG(_src=URL('static', str(T('images/someimage.jpg' On 12 nov, 20:59, Branko Vukelic wrote: > I'm using the URL method as a src attribute for an image like so: > > IMG(_src=URL('static', 'images/someimage.jpg')) > > This image contains some text that must be translated, so there

[web2py] Translations within the URL method

2010-11-12 Thread Branko Vukelic
I'm using the URL method as a src attribute for an image like so: IMG(_src=URL('static', 'images/someimage.jpg')) This image contains some text that must be translated, so there could be someimage_pt-br.jpg, someimage_sr-rs.jpg, etc. I thought this would be a good idea: IMG(_src=URL('static', T(

[web2py] Re: Creating debug.html

2010-11-12 Thread cjrh
On Nov 12, 2:14 pm, demetrio wrote: > I hope you find this something useful. Thank you.

Re: [web2py] Re: Error when using new wizard

2010-11-12 Thread Kenneth Lundström
> Can you check if this folder was created? > /data/domains/web2py/applications/Boatintra No it was not created. > if not it is a file permission issue. What os? was it a binary distribution of web2py? Linux, source. All files permissions apache:web2py. I tried to change file permissions of

[web2py] Re: Error when using new wizard

2010-11-12 Thread mdipierro
Can you check if this folder was created? /data/domains/web2py/applications/Boatintra if not it is a file permission issue. What os? was it a binary distribution of web2py? On Nov 12, 5:30 pm, Kenneth Lundström wrote: > Just installed the newest version of web2py (1.89.1) and tested the > wiz

[web2py] Re: Cookie stealing attack

2010-11-12 Thread mdipierro
There are two things you can do. 1) session.secure() # will force session over https 2) call auth.logout() to delete all auth information from the session (this will not change the session cookie) 3) auth.settings.logout_onlogout=lambda user: os.unlink(response.session_filename) This will delete

[web2py] Error when using new wizard

2010-11-12 Thread Kenneth Lundström
Just installed the newest version of web2py (1.89.1) and tested the wizard to create a new appl. I came to step 6 when I got a error. Version web2py™ Version 1.89.1 (2010-11-12 15:14:36) Python Traceback Traceback (most recent call last): File "/data/domains/web2py/gluon/restricted.py", line 1

[web2py] bug in the book or in the code? linkedin instruction

2010-11-12 Thread Kuba Kucharski
Hi, long time no see, guys I did exact thing like in the book from gluon.contrib.login_methods.linkedin_account import LinkedInAccount auth.settings.login_form=LinkedInAccount(request,KEY,SECRET,RETURN_URL) (yeap I had inserted key etc, and yes, I haven't sent it in my ticket to all the public, I

[web2py] Cookie stealing attack

2010-11-12 Thread guruyaya
I've inspected web2py cookies, and I think I'm on to a problem. Say, I'm going into a public internet cafe. I'm getting into a web2py websute, that use the default auth. I'm looking at the cookie data, saving it then, I'm sitting in the next chair, and some other guy goes to the same website, and l

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
ps. may not work on windows On Nov 12, 3:11 pm, Andrew Thompson wrote: > On 11/12/2010 10:22 AM, mdipierro wrote: > > > Please give it a try and report any bug. > > > 1.89.1 > > - new admin layout (thanks Branko Vukelic) > > - new admin search > > - new admin language selector (thanks Yair) > > -

[web2py] Re: User Login/Logout authentication event

2010-11-12 Thread Alex
Excellent! Thanks! On Nov 12, 11:51 am, mdipierro wrote: > auth.settings.login_onaccept=lambda form: do_something(form) > > same with logout, etc. > > On Nov 12, 11:50 am, Alex wrote: > > > > > Hello, > > > I have a question regarding authentication.  I would like to find a > > way to do certai

[web2py] Re: web2py 1.89.1 is OUT... update?

2010-11-12 Thread mdipierro
yes On Nov 12, 3:11 pm, Andrew Thompson wrote: > On 11/12/2010 10:22 AM, mdipierro wrote: > > > Please give it a try and report any bug. > > > 1.89.1 > > - new admin layout (thanks Branko Vukelic) > > - new admin search > > - new admin language selector (thanks Yair) > > - new Welcome app (thanks

[web2py] Re: Field update attribute broken?

2010-11-12 Thread mdipierro
In the latest version 1.89.1 ti does what you say if you set default=None On Nov 12, 3:10 pm, baloan wrote: > Hi, > > I have defined a table: > > username = auth.user and auth.user.username > > db.define_table('email', >                 Field('email', 'string', length=40, notnull=False, > unique=

[web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread mdipierro
options=[str(my_macaddr[i].MacAddr) for i in range(len(my_macaddr))] form=SQLFORM.factory(Field('macs',requires=IS_IN_SET(options,multiple='multiple'))) if form.accepts(request): dbset=db4((db4.data_table.ReqTime>='2010-11-08T21:00')&(db4.data_table.ReqTime<='2010-11-08T22:00')) if form.var

[web2py] Re: Pyodbc error with web2py under Apache and mod_wsgi

2010-11-12 Thread azarkowsky
A few more days of debug yielded a rather simple solution in the end. Compiling pyodbc with mingw32 was actually the correct answer. I had tried building pyodbc on a different system and then just copying over the *.pyd & *.egg-info. That's not good enough. You have to actually install mingw on

[web2py] postgresql error ... (relation "auth_user" already exists)

2010-11-12 Thread Carlos
Hi, I'm getting the following error in my local installation with postgresql when using auth.define_tables(migrate=True): (relation "auth_user" already exists) web2py™ Version 1.89.1 (2010-11-12 15:14:36) Python Python 2.6.4: C:\Python26\python.exe Traceback (most recent call last): File "C:

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Anthony
This looks great! Amazing work, everyone. The language selection in admin isn't working for me in IE on Windows (works fine in FF). When I select a language other than en, it does reload the page, but the language remains in English (and en remains selected in the drop-down). Also, I'm still havi

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread dspiteself
there was a problem loading my static files in the designer I would push it but our project uses git here is a patch. /*** fix web2py bug when static path matches ex: filepath =/test/dojox path = /test/dojo passes '/'.join(file_path).startswith

Re: [web2py] web2py 1.89.1 is OUT... update?

2010-11-12 Thread Andrew Thompson
On 11/12/2010 10:22 AM, mdipierro wrote: Please give it a try and report any bug. 1.89.1 - new admin layout (thanks Branko Vukelic) - new admin search - new admin language selector (thanks Yair) - new Welcome app (thanks Martin Mulone) I've been recently just updating with the link in the admi

[web2py] Field update attribute broken?

2010-11-12 Thread baloan
Hi, I have defined a table: username = auth.user and auth.user.username db.define_table('email', Field('email', 'string', length=40, notnull=False, unique=True, represent=lambda s: s), Field('active', 'boolean', default=True), Field('expires', 'dat

[web2py] Re: Clockpick

2010-11-12 Thread winti
for me as well, since 1.89.1 clockpick appears as villas describes. On Nov 12, 9:23 pm, villas wrote: > Hi All, > > The latest upgrade seems to have broken Clockpick.  The times now > appear in the top teft corner of the screen instead of adjacent to the > input.  I've played around with it,  but

[web2py] Welcome not translate any more...

2010-11-12 Thread Richard Vézina
Hello, I observed that the "Welcome" in the navbar not translate anymore. I try to solve by adding a T() at line 1051 of tool.py, but it didn't works. Richard

[web2py] Re: Clockpick

2010-11-12 Thread villas
Hi All, The latest upgrade seems to have broken Clockpick. The times now appear in the top teft corner of the screen instead of adjacent to the input. I've played around with it, but I couldn't see what's wrong. To test it, just add a DB table to the Welcome app containing a time field and the

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread ra3don
This is a fantastic update. web2py has been improving very quickly. Love the new web2py website, love the new admin look! Great work everybody! On Nov 12, 9:22 am, mdipierro wrote: > Please give it a try and report any bug. > > 1.89.1 > - new admin layout (thanks Branko Vukelic) > - new admin se

Re: [web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread Lorin Rivers
Massimo, Thanks, that works great! What do I do to get it to only run on submit instead of load? BTW, one of the things that's most awesome about web2py is your activity on the list and how helpful you are. I for one really appreciate that! On Nov 12, 2010, at 10:12 , mdipierro wrote: > opti

Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Albert Abril
new admin, new welcome, and gae deploy button are, wizard... each day prettier and easier. thanks to you, the community. On Fri, Nov 12, 2010 at 7:04 PM, Bruno Rocha wrote: > Great! > > each day I like web2py more! > > 2010/11/12 mdipierro > > Congratulations to all those how contributed (whose

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Branko Vukelic
2010/11/12 Mirek Zvolský : > That's not the case of > http://zvolsky.alwaysdata.net/crm2.jpg DISCLAIMER: I'm not experienced with large-scale database designs. Now that I've gotten that out of the way... What's the meaning of 'created_by' in this set-up? If it's meant to be taken as 'record crea

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Mariano Reingart
2010/11/12 Mirek Zvolský : >>> Mariano Reingart > > Thanks for your response and practical experience with large system. > > I think the problem is clear: > In current web2py philosophy the same data model becames valid or > invalid based on the order of table definition commands. And if a > model

[web2py] Re: DAL() unusable ?

2010-11-12 Thread Mirek Zvolský
> Is there a reason for not sticking the record creation inside of its own > table? Hi Tadeus, This is just an example. I have used it to show Massimo and others, that the simplest part of CRM application model, if you change "created_by" from type "string" to type "reference..", then there is no

[web2py] serving subdomain hosted outside web2py application

2010-11-12 Thread vaibhav
Hi, I have a web2py application which have a link in it's index.html which is something like this http://blog.example.com";>blog the application is itself hosted in http://example.com, the subdomain is external application which maps to a blog hosted by blogger.com, I figured there should be a

Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Bruno Rocha
Great! each day I like web2py more! 2010/11/12 mdipierro > Congratulations to all those how contributed (whose names are in the > hg logs) because this is a beautiful version. > > If your name is not mentioned in the who.html page and you think it > should be please assume this is an oversight

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread DJ
Love the file search function! Nice work! -S On Nov 12, 12:09 pm, appydev wrote: > Really beautiful!

[web2py] pt-br for admin

2010-11-12 Thread Bruno Rocha
Here is attached the pt-br.py file for translating /admin application into portuguese. I hope this can be useful for someone who speaks portuguese, and this needs a review before being integrated into web2py /admin any portuguese speakers could help reviewing the translation strings? Note: Some

[web2py] Re: User Login/Logout authentication event

2010-11-12 Thread mdipierro
auth.settings.login_onaccept=lambda form: do_something(form) same with logout, etc. On Nov 12, 11:50 am, Alex wrote: > Hello, > > I have a question regarding authentication.  I would like to find a > way to do certain events (ie.  store stuff in the cache, update a last > login time in the DB, e

[web2py] User Login/Logout authentication event

2010-11-12 Thread Alex
Hello, I have a question regarding authentication. I would like to find a way to do certain events (ie. store stuff in the cache, update a last login time in the DB, etc.) when a user logs in and logs out. I'm currently just using the built in "auth" object and was wondering if there was a simp

Re: [web2py] Re: get representation to show up in command line

2010-11-12 Thread Richard Vézina
I got it. I had a type mutation. Richard On Fri, Nov 12, 2010 at 11:50 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok I think I found... > > Is it because I am referring to the same table?? > > Richard > > > On Fri, Nov 12, 2010 at 11:43 AM, Richard Vézina < > ml.richard.vez...@gm

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Thadeus Burgess
Right. I get it now. Is there a reason for not sticking the record creation inside of its own table? -- Thadeus 2010/11/12 Mirek Zvolský > hich person is an employee of which company, > 2) which person has created the company record, > 3) which person has created the person records, > all 3

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-12 Thread Thadeus Burgess
Thanks. I uploaded a new version to pypi. -- Thadeus On Fri, Nov 12, 2010 at 10:27 AM, Andrew Evans wrote: > Hey Thadeus! > > where would you like me to submit it? I can upload it here to this news > group. The only thing I changed was what you suggested ;) adding self.r.args > to the genera

Re: [web2py] web2py 1.89.1 is OUT

2010-11-12 Thread appydev
Really beautiful!

Re: [web2py] Re: get representation to show up in command line

2010-11-12 Thread Richard Vézina
Ok I think I found... Is it because I am referring to the same table?? Richard On Fri, Nov 12, 2010 at 11:43 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok thanks! > > I wondering about an other thing : > > I have this : > > db['table1'].nottableidfield_id.represent=\ > lambd

Re: [web2py] Re: get representation to show up in command line

2010-11-12 Thread Richard Vézina
Ok thanks! I wondering about an other thing : I have this : db['table1'].nottableidfield_id.represent=\ lambda nottableidfield_id: A("%(someotherfield)s" %db.table1[nottableidfield_id],\ _href=URL(r=request,f='read',args='someothertable'+'/'+str(nottableidfield_id))) And I get format ma

[web2py] Re: get representation to show up in command line

2010-11-12 Thread mdipierro
this is not possible (because it is a DAL not an ORM) You can do: db.TABLENAME.FIELDNAME.represent=lambda value: value for row in db().select(db.TABLENAME.FIELDNAME): print db.TABLENAME.FIELDNAME.represent(row.FIELDNAME) This would be the closest thing On Nov 12, 10:27 am, Richard Vézina w

[web2py] get representation to show up in command line

2010-11-12 Thread Richard Vézina
Hello, I would know how I can get a print out of my field.represent=lambda something in command line web2py environnement. Hope I am clear. For example if I do print (db().select(db.TABLENAME.FIELDNAME)) I get the values of the field. In case I have create a representation of the field can I g

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-12 Thread Andrew Evans
Hey Thadeus! where would you like me to submit it? I can upload it here to this news group. The only thing I changed was what you suggested ;) adding self.r.args to the generate links function ;) def generate_links(self): self.backward = A('<< previous()', _href=URL(r=self.r, args=self.r

[web2py] Re: many to many inline form

2010-11-12 Thread mdipierro
We do not have a widget for that but it is time to make one. It is not difficult. If I have time I will do this over the week-end. Other users may have already something working. On Nov 12, 10:17 am, Joe Wakefield wrote: > So I'm trying to migrate an old rails app that broke a while back, and > I

[web2py] Re: Can´t do redirect [SOLVED]

2010-11-12 Thread yamandu
I found I had put a import to redirect that was causing the crash. Strange thing is that it looks like it was neeed in past (I don´t remember why) and now it crashes but removing ti everything is normal. On Nov 11, 4:19 pm, yamandu wrote: > One thing that could have to do with this is that I down

[web2py] many to many inline form

2010-11-12 Thread Joe Wakefield
So I'm trying to migrate an old rails app that broke a while back, and I came across a rather difficult situation. I boiled the problem down to this simplified mockup: http://yfrog.com/ghbeanjarsp The real app has nothing to do with jelly beans, but this is the issue at hand. Basically there are t

[web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread mdipierro
options=[str(my_macaddr[i].MacAddr) for i in range(len(my_macaddr))] form=SQLFORM.factory(Field('macs',requires=IS_IN_SET(options,multiple='multiple'))) dbset=db4((db4.data_table.ReqTime>='2010-11-08T21:00')&(db4.data_table.ReqTime<='2010-11-08T22:00')) if form.accepts(request) and form.var

Re: [web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread Manu
It s absolutely beautiful on windows. On Fri, Nov 12, 2010 at 4:46 PM, mdipierro wrote: > Congratulations to all those how contributed (whose names are in the > hg logs) because this is a beautiful version. > > If your name is not mentioned in the who.html page and you think it > should be please

Re: [web2py] Re: How do I construct my query to handle a multiple select?

2010-11-12 Thread Lorin Rivers
Sorry I wasn't clear. I'm using a select multiple element in my form. When more than one (in my example, it's a MAC address) item is chosen, I need to return a result set for each choice and display them together. I could do it with a query like: "choice 1 OR choice 2" or I could do it by

[web2py] Re: Help with "No such file or directory" error

2010-11-12 Thread CesarBustios
Wow it worked that way! Thanks for your patience and time Mr. DiPierro On 11 nov, 17:42, mdipierro wrote: > Now I get it > > source=os.path.join(request.folder,'uploads/Image.image.a278723.jpg') > dest=os.path.join(request.folder,'uploads/advertisement.jpg') > shutil.copy(source,dist) > > On Nov

[web2py] Re: web2py 1.89.1 is OUT

2010-11-12 Thread mdipierro
Congratulations to all those how contributed (whose names are in the hg logs) because this is a beautiful version. If your name is not mentioned in the who.html page and you think it should be please assume this is an oversight on my site (I try to keep track but I can do mistakes) so please do no

[web2py] Re: Authentication and multiple logon sessions

2010-11-12 Thread mdipierro
You can add field auth_user (client with default to request.client) then in db.py if auth.user and auth.user.client!=request.client: session.flash="oops" redirect(URL('user/logout')) On Nov 12, 8:39 am, Paul Gerrard wrote: > Two machines with FF would be more reliable :O) > > I have a r

[web2py] Re: web2py organization - important for consultants !!!

2010-11-12 Thread mdipierro
Thank you for all the reported corrections. I think I have incorporated them all. Please check. Branko is already at work for a better layout. Massimo On Nov 12, 4:06 am, Paul Gerrard wrote: > Here are my comments on the Guidelines page. Some of these are > duplicates with other peoples' comme

[web2py] web2py 1.89.1 is OUT

2010-11-12 Thread mdipierro
Please give it a try and report any bug. 1.89.1 - new admin layout (thanks Branko Vukelic) - new admin search - new admin language selector (thanks Yair) - new Welcome app (thanks Martin Mulone) - beter wizard - admin support for DEMO_MODE=True - admin exposes GAE deployment button (always) - MENU

[web2py] Re: Authentication and multiple logon sessions

2010-11-12 Thread Paul Gerrard
Two machines with FF would be more reliable :O) I have a related question. Is there are way of stopping a user account being used by more than one person simultaneously? Is there anything in Web2p to help with thsi or would I need to have some form of DB/ session solution? Thanks. On Nov 11, 5:2

[web2py] Re: how to use ExtendedLoginForm ?

2010-11-12 Thread Bruno Rocha
Well, ExtendedLoginForm is not working, but I am trying to fix it and send a patch. By now, I am using another solution, If someone else needs the same. to have both auth modes [built-in and RPX] just like in: http://natalanimal.com.br/init/default/user/login and web2pyslices.com At models afte

[web2py] Re: crud settings

2010-11-12 Thread mdipierro
crud.settings.update_next = URL(c=request,f='select') should be crud.settings.update_next = URL(r=request,f='select') or crud.settings.update_next = URL('select') On Nov 12, 6:52 am, leone wrote: > Hi, > peraphs a bias in > > def mycontroller(): >       crud.settings.update

[web2py] Re: is it possible to delete from a rows object

2010-11-12 Thread mdipierro
http://www.web2py.com/book/default/chapter/06#find,-exclude,-sort On Nov 12, 6:19 am, apple wrote: > items=db(db.dataitems.templatename==session.templatename).select(db.dataitems.ALL) > item=filter(lambda item: item.id==r.itemid, items)[0] > item.delete_record() > > This deletes the record from t

[web2py] Re: ReportLab and AppEngine

2010-11-12 Thread mdipierro
You can use pyfpdf or reportlab. I let Mariano explain how to use pyfpdf. To use reportlab just unzip the pure python implementation in web2py/ site-packages import it in any of your actions. call if from your controller actions and/or view. (p.s. web2py actions also can return a file-like obje

[web2py] Re: ValueError: need more than 1 value to unpack

2010-11-12 Thread mdipierro
IS_NOT_IN_DB(db,'friend_name') should be IS_NOT_IN_DB(db,'friend.name') On Nov 12, 5:29 am, Kostas M wrote: > I am trying to reproduce the "What is going on with web2py?" video > (http://vimeo.com/13485916). At the 'friend' section, when I try to > enter a new friend eg. "Max" I am getting this

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-12 Thread mdipierro
The admin (admin) has a selector at the bottom, it uses cookies to keep the preferred selected language. On Nov 12, 3:10 am, Stefan Scholl wrote: > That's how I do it with multilingual sites: The browser language > determines the first page you reach. Every language has its own > directory in the

  1   2   >