[web2py] Re: Facebook oauth

2010-08-26 Thread Narendran
Hello Michele/Massimo, Has this fix been taken in? Is it available in any web2py build now? On Aug 22, 4:10 am, Michele Comitini wrote: > Massimo here is the full patch with modifications for > oauth*_account.py login_methods > > tnx! > > 2010/8/22 Michele Comitini : > > > > > > > > > in tools.py

Re: [web2py] Re: fascinating

2010-08-26 Thread Alexey Nezhdanov
Yes, once I used it to print an 'enhanced stack backtrace'. Each time the site engine was crashing (not web2py, long ago) the stack trace was emailed to me along with all variables values that existed at all levels of the trace. On Fri, Aug 27, 2010 at 6:53 AM, GoldenTiger wrote: > do you refer

[web2py] Re: fascinating

2010-08-26 Thread GoldenTiger
do you refer to module inspect? it's great for introspecting on live objects and their source code On 27 ago, 03:44, mdipierro wrote: > I discovered this: > > def f(name): >     import inspect >     c_frame = inspect.getouterframes(inspect.currentframe(), 1)[1][0] >     c_args, c_varargs, c_varkw

[web2py] fascinating

2010-08-26 Thread mdipierro
I discovered this: def f(name): import inspect c_frame = inspect.getouterframes(inspect.currentframe(), 1)[1][0] c_args, c_varargs, c_varkw, c_locals = inspect.getargvalues(c_frame) d = dict(c_locals) return d[name] def g(): a=5 print f('a') g() # prints 5

[web2py] Re: SQLFORM not using newly added record

2010-08-26 Thread Richard
works - thanks. On Aug 26, 10:46 pm, mdipierro wrote: > you can do this: > > form = SQLFORM(db.topic) > if form.accepts(request.vars, session): >     session.flash = 'New topic created' >     redirect(URL(args=request.args)) > > On Aug 25, 11:11 pm, Richard wrote: > > > I have a table that refe

[web2py] Re: Date field represent not respected when for validation fails [SOLVED]

2010-08-26 Thread mdipierro
:-) On Aug 26, 6:31 pm, RipRyness wrote: > This seems to have solved my problem. > > On Aug 26, 5:15 pm, mdipierro wrote: > > > just to clarify. does this solve the original or you still have a > > problem? If you still have a problem, could you open a ticket on > > google code? > > > Massimo >

[web2py] Re: Date field represent not respected when for validation fails

2010-08-26 Thread RipRyness
This seems to have solved my problem. On Aug 26, 5:15 pm, mdipierro wrote: > just to clarify. does this solve the original or you still have a > problem? If you still have a problem, could you open a ticket on > google code? > > Massimo > > On Aug 26, 5:12 pm, RipRyness wrote: > > > > > What I d

Re: [web2py] Another beginner question

2010-08-26 Thread Gary Herron
On 08/26/2010 02:52 PM, Jean-Guy wrote: On 2010-08-26 15:51, Gary wrote: I'm trying to put some access control around some of my functions. When I use the admin interface to define a new auth_permission, the form allows a tablename from a drop-down list containint *ONLY* the 4 predefined auth_*

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-26 Thread mdipierro
This is reasonable but how to check? On Aug 26, 6:18 pm, mart wrote: > Interesting point... How about bugs can only be "truly submitted" if > user is registered in web2py user group? Can we up authentication > detail for users (if required)... True that it could be scary that > folks start loggi

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-26 Thread mart
Interesting point... How about bugs can only be "truly submitted" if user is registered in web2py user group? Can we up authentication detail for users (if required)... True that it could be scary that folks start logging bugs left and right... If part of user group, would this only generate same a

[web2py] Re: Date field represent not respected when for validation fails

2010-08-26 Thread mdipierro
just to clarify. does this solve the original or you still have a problem? If you still have a problem, could you open a ticket on google code? Massimo On Aug 26, 5:12 pm, RipRyness wrote: > What I did was create an en-us.py file in the languages folder. > { > 'use format -mm-dd': 'use forma

[web2py] Re: Pagination manual bug?

2010-08-26 Thread Niphlod
@dlin: it doesn't works because URL helper has been "improved" lately, in case you were asking yourself. PS: sadly if you put "web2py pagination" on google, the first link that appears is from mengu.net and that implementation is wrong, also if the analysis is correct. limitby works like python

Re: [web2py] Re: MS SQL driver in Windows binary.

2010-08-26 Thread Michele Comitini
By coincidence it was issue 101! mic p.s. i see now that googlecode ticket system is really poor... 2010/8/27 mdipierro : > In the new spirit please somebody open a ticket about this. > > Massimo > > On Aug 26, 4:53 pm, Brian M wrote: >> +1 >> Having pyodbc included in the windows version

[web2py] plugin legacy mysql: generates web2py code to access your mysql legacy db

2010-08-26 Thread selecta
Create the web2py code needed to access your mysql legacy db. To make this work all the legacy tables you want to access need to have an "id" field. This plugin needs: mysql mysqldump installed and globally available. Under Windows you will probably need to add the mysql executable directory to

[web2py] Re: MS SQL driver in Windows binary.

2010-08-26 Thread mdipierro
In the new spirit please somebody open a ticket about this. Massimo On Aug 26, 4:53 pm, Brian M wrote: > +1 > Having pyodbc included in the windows version would be great! > ~Brian > > On Aug 26, 2:16 am, Seeker wrote: > > > That would be great. > > > From the pyodbc page onhttp://code.goog

[web2py] Re: MS SQL driver in Windows binary.

2010-08-26 Thread mdipierro
building the windows binary with new binary modules takes some time. I will try as soon as I get hands on a windows machine. On Aug 26, 4:53 pm, Brian M wrote: > +1 > Having pyodbc included in the windows version would be great! > ~Brian > > On Aug 26, 2:16 am, Seeker wrote: > > > That would be

[web2py] Re: list:string not working

2010-08-26 Thread mdipierro
try define class IS_LIST_OF_STRINGS: def __call__(self,value): return [str(x) for x in value.split(',')] def formatter(self,value): return ', '.join(value) and use Field(...,'list:string',requires=IS_LIST_OF_STRINGS()) On Aug 26, 4:27 pm, yamandu wrote: > Yes, I w

[web2py] Re: crud.archive and migrations

2010-08-26 Thread mdipierro
yes it will migrate too. On Aug 26, 3:56 pm, selecta wrote: > if a table is migrated to a different structure will the archive table > from crud.archive migrate too? guessing from the code in def archive() > i would guess this does not happen?

[web2py] Re: Date field represent not respected when for validation fails

2010-08-26 Thread RipRyness
What I did was create an en-us.py file in the languages folder. { 'use format -mm-dd': 'use format m/d/', '%Y-%m-%d': '%m/%d/%Y', '%Y-%m-%d %H:%M:%S': '%m/%d/%Y %H:%M:%S' } in my model I had this ... Field('dob', 'date', requires=[IS_DATE(format=T('%Y-%m-%d'), error_message=T('use format y

[web2py] Re: MS SQL driver in Windows binary.

2010-08-26 Thread Brian M
+1 Having pyodbc included in the windows version would be great! ~Brian On Aug 26, 2:16 am, Seeker wrote: > That would be great. > > From the pyodbc page onhttp://code.google.com/p/pyodbc/: > "pyodbc is licensed using an MIT license, so it is free for commercial > and personal use. You can even u

Re: [web2py] Another beginner question

2010-08-26 Thread Jean-Guy
On 2010-08-26 15:51, Gary wrote: I'm trying to put some access control around some of my functions. When I use the admin interface to define a new auth_permission, the form allows a tablename from a drop-down list containint *ONLY* the 4 predefined auth_* tables. It does not list any of my o

Re: [web2py] Re: Trying to multiprocess

2010-08-26 Thread Michele Comitini
Phyo, I agree mostly with what Kevin says, but some multiprocessing could be good for the case, unless "strings" is faster than IO. Since the specific problem is not web specific, I suggest that you do create a program in python (without web2py) and, as Kevin says, better if you replace "strings"

[web2py] Re: list:string not working

2010-08-26 Thread yamandu
Yes, I wish I could let the user input strings that don´t belong to predetermined set. A type of list that can add new itens does not make much sense for me. This is just a multi select, not properly a list in its most meaningful sense. On Aug 26, 5:36 pm, mdipierro wrote: > This is not wrong. >

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
Thanks. I am making progress. Regards Johann --     "Be not deceived; God is not mocked: for whatsoever a      man soweth, that shall he also reap."                                   Galatians 6:7

Re: [web2py] Re: How may I revoked a user logged in "server side"

2010-08-26 Thread Jean-Guy
Ok! It clear now. Yes could be a nice to have... But Web2py is already a wonderfully nice framework ;-) Ciao! Jonhy On 2010-08-26 16:17, mdipierro wrote: e the session file. We do not have an utility for it. We should make one.

[web2py] crud.archive and migrations

2010-08-26 Thread selecta
if a table is migrated to a different structure will the archive table from crud.archive migrate too? guessing from the code in def archive() i would guess this does not happen?

Re: [web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-26 Thread Michele Comitini
some thoughts... Firstly it is important that tickets reach their fate (closed, wont fix, cant fix, not a bug, whatever ) soon, otherwise it would be worst than people writing for bugs already fixed. You can see many projects that have 3 year old tickets... This means that some individuals should

[web2py] Re: list:string not working

2010-08-26 Thread mdipierro
This is not wrong. The problem is that your field has type='list:string' but you did not set requires=IS_IN_SET(('aaa','bbb','ccc')) or requires=IS_IN_DB(...) Without the validator web2py does not know which options are valid and which ones are not and does not know how to make a dropbox. You hav

[web2py] list:string not working

2010-08-26 Thread yamandu
I possibly found a problem with list:string field. I´ve searched for a widget and I could found one for it. So I starte to make my own based on this http://blog.crazybeavers.se/wp-content/demos/jquery.tag.editor/ I could be like that tag editor in plugin_wiki too but I found it harder to base on it

[web2py] Re: How may I revoked a user logged in "server side"

2010-08-26 Thread mdipierro
No. the auth_user table has a column already called registration_key. Just write "blocked" in there. This will not logout the user. It will only prevent it from logging in again. To logout the use you need to find which session he is using and delete the session file. We do not have an utility f

[web2py] Another beginner question

2010-08-26 Thread Gary
I'm trying to put some access control around some of my functions. When I use the admin interface to define a new auth_permission, the form allows a tablename from a drop-down list containint *ONLY* the 4 predefined auth_* tables. It does not list any of my own tables in the drop-down list. Shou

Re: [web2py] Re: How may I revoked a user logged in "server side"

2010-08-26 Thread Jean-Guy
So to summarize I need to add a boolean column in the auth_user table and flagging it to true will kick out the user? Is the name "force_logout" a built in name that automated the thing or do I have to code a proper function and call it in my controllers? I just want instantaneous method t

[web2py] Re: jqgrid and edit-link

2010-08-26 Thread mdipierro
plugin_wiki.widget('jqgrid',table='mytable') assumes all records (mytable.id>0) On Aug 26, 2:38 pm, Johann Spies wrote: > On 26 August 2010 21:08, mdipierro wrote: > > > datatable and jqgrid are different. > > > datatable fetches all records at once (without ajax) that allows > > arbitrary quer

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
On 26 August 2010 21:08, mdipierro wrote: > datatable and jqgrid are different. > > datatable fetches all records at once (without ajax) that allows > arbitrary queries but does not work with large datasets. > > jqgrid fetches records via ajax. that allows only simple queries > (because they have

[web2py] Re: Beginner questions

2010-08-26 Thread mdipierro
yes. it should have been updated. On Aug 26, 2:24 pm, Gary Herron wrote: > On 08/26/2010 05:52 AM, mdipierro wrote: > > > > > > > On Aug 25, 11:47 pm, Gary  wrote: > > >> I'm a experienced Python programmer (15+ years), but mostly new to web > >> programming and just several days into my first we

Re: [web2py] Re: Beginner questions

2010-08-26 Thread Gary Herron
On 08/26/2010 05:52 AM, mdipierro wrote: On Aug 25, 11:47 pm, Gary wrote: I'm a experienced Python programmer (15+ years), but mostly new to web programming and just several days into my first web2py application. Several questions have come up: 1. On SQLFORM and CRUD forms, is there a w

[web2py] Re: Problem uploading file in GAE dev environment...

2010-08-26 Thread jasquigl
Hello Massimo! It worked by removing the dbio part. I originally found that in another post as the application was crashing with a file related error. Many many thanks! Jason. :-) On Aug 26, 9:13 pm, mdipierro wrote: > Do you know that GAE does allows more than 1MB uploads? > dbio = False means

[web2py] Re: Problem uploading file in GAE dev environment...

2010-08-26 Thread mdipierro
Do you know that GAE does allows more than 1MB uploads? dbio = False means you do not want any database IO. On Aug 26, 12:50 pm, jasquigl wrote: > Hi Everyone! > > I am trying to upload a file using snippets of code I have seen in > other posts and in the manual using GAE locally. It simply does

[web2py] Re: jqgrid and edit-link

2010-08-26 Thread mdipierro
datatable and jqgrid are different. datatable fetches all records at once (without ajax) that allows arbitrary queries but does not work with large datasets. jqgrid fetches records via ajax. that allows only simple queries (because they have to be passed in a safe way via ajax) but works well wit

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
With the datatable plugin I can use teachers=plugin_datatable(db(db.teacher.id>0).select(),_class='datatable') which works but is to wide and with column headers that looks ugly. db.teacher.id.represent = lambda id: SPAN(A('edit',_href=URL(r=request,c='default',f='edit_teacher',args=id))) works

Re: [web2py] Re: jqgrid and edit-link

2010-08-26 Thread Johann Spies
On 26 August 2010 03:30, mdipierro wrote: > look into the plugin code modes/plugin_wiki.py models/plugin_wiki.py Thanks. That helped to see what is going on but: When I use teachers=plugin_jqgrid(db.teacher,columns=["id", "surname","name","highest_qualification","id_number","school", "gende

[web2py] Re: How may I revoked a user logged in "server side"

2010-08-26 Thread mdipierro
What Thadeus suggests forces the user to logout. Before you do that you may also want to use appadmin and write "blocked" in their registration key. This will prevent them from logging in again. On Aug 26, 11:58 am, Thadeus Burgess wrote: > Two ways, delete their session file... unless you know

[web2py] Problem uploading file in GAE dev environment...

2010-08-26 Thread jasquigl
Hi Everyone! I am trying to upload a file using snippets of code I have seen in other posts and in the manual using GAE locally. It simply does not create an entry in the document table. Could somebody please look at my code and tell me where I am going wrong. Many thanks, Jason. manage.py: @a

[web2py] Re: OpenID, facebook, twitter, linkedin, etc etc

2010-08-26 Thread hcvst
Hi, Just stepped though RPXAccount and for some reason Janrain returns profile.providerName = 'Other' and no email the second time I logon with Google, so I end up with one profile with and one without email. Clearly something's wrong on their side. HC

[web2py] Re: lazy virtualfields

2010-08-26 Thread Niphlod
I see, the issue is really difficult to explain. I really want to squash this "bug", though. In addition on what I reported before, I managed to get eclipse debugging web2py and found that a default row is passed as default value to lazy_test_field() and surprise. surprise, it's actually the last

Re: [web2py] How may I revoked a user logged in "server side"

2010-08-26 Thread Thadeus Burgess
Two ways, delete their session file... unless you know their IP it might be hard to find the right one, so if its ok just delete them all. The other way is a design thing. Add a column to the auth_user table that says "force_logout" that is a boolean type. If you just flag that to true, make the l

[web2py] How may I revoked a user logged in "server side"

2010-08-26 Thread Jean-Guy
Hello, I would like to know how may I revoked a user logged in "server side"? Can I just edit app/sessions/file... And comment appropriate line? Which lines are the appropriate lines? ;-) Jonhy

[web2py] Re: Web2py column in Latinux Magazine

2010-08-26 Thread mdipierro
:-) On Aug 26, 9:51 am, Gustavo wrote: > Hello everyone, > > I am writing on behalf of the entire Latinux Magazine team for > announce that we have opened an web2py exclusive space in the > magazine. Anyone who wants to collaborate with this section, with > articles or > tutorials, can write us t

[web2py] Web2py column in Latinux Magazine

2010-08-26 Thread Gustavo
Hello everyone, I am writing on behalf of the entire Latinux Magazine team for announce that we have opened an web2py exclusive space in the magazine. Anyone who wants to collaborate with this section, with articles or tutorials, can write us to the following addresses: i...@latinuxmagazine.com M

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-26 Thread mart
good plan! Do you have people dedicated to test purposes for the monitoring help? Were you thinking on a something like a 2 tier filtering system? first level bug validation (is this really a new bug?) as automated filtering & second: trusted testers/dev folks who can best help in filtering and pas

[web2py] Re: dashes in controller names?

2010-08-26 Thread villas
On Aug 26, 1:38 am, Kevin wrote: > I personally consider hybridized URLs like net-neutrality-and-you> to be junk because there are two unique > identifiers in the URL). Hi Kevin, Your post was interesting and I was curious about your strong view in your comment a

Re: [web2py] Re: IS_IMAGE() broke?

2010-08-26 Thread Jonathan Lundell
On Aug 26, 2010, at 6:56 AM, Joe Wakefield wrote: > > Massimo, > > The new code works great! Thanks for the quick fix. And yes, the comment is helpful. > > Regards, > Joe > > On Aug 25, 10:51 pm, mdipierro wrote: >> Please check if this is fixed in trunk and if the comment I added >> makes a

[web2py] Re: IS_IMAGE() broke?

2010-08-26 Thread Joe Wakefield
Massimo, The new code works great! Thanks for the quick fix. Regards, Joe On Aug 25, 10:51 pm, mdipierro wrote: > Please check if this is fixed in trunk and if the comment I added > makes any sense. > > Massimo > > On Aug 25, 10:59 am, Jonathan Lundell wrote: > > > On Aug 25, 2010, at 8:33 AM,

[web2py] Integrating pyjamas into web2py

2010-08-26 Thread iiijjjiii
I am trying to get my head around using pyjamas with web2py. I like the benefits of pyjamas, cross browser compatibility and coding in python, but all the applications I tested, the example in the web2py book and the ones in the pyjamas book, create a complete page, opening html tag to closing html

[web2py] Re: My editor ...

2010-08-26 Thread Skiros
GREAT Job Stef !!! and don´t worry, do it at your own time, is no need to hurry. On 24 ago, 08:39, Stef Mientki wrote: >  On 24-08-2010 07:05, Johan wrote:> Is it possible to post a free version of > this _as it is_ ? > > Some of us my find it very useful. > > Or even, a version without the wy

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-26 Thread mdipierro
I am in favor of both proposals 1) user google code more 2) having a bug tracking application but - I would like some help in monitoring this list and opening bugs on google code when a new bug is suggested on the list. This is because I do not want to have to explain to new users how to open goo

[web2py] Re: Web2py with barcode Reader

2010-08-26 Thread Kevin
On Aug 26, 4:59 am, Neveen Adel wrote: > Thanks All for ur replies :) > > @Thadeus Burgess > > please how can i invoke this code once the magnetic card is entered ? The excellent jQuery library that Thadeus linked to shows full example use -- just change their use of reader.cardRead to do whateve

[web2py] Re: Beginner questions

2010-08-26 Thread mdipierro
On Aug 25, 11:47 pm, Gary wrote: > I'm a experienced Python programmer (15+ years), but mostly new to web > programming and just several days into my first web2py application. > > Several questions have come up: > > 1.  On SQLFORM and CRUD forms, is there a way to get a cancel button > displayed

[web2py] Re: Will web2py support database view? When?

2010-08-26 Thread mdipierro
yes On Aug 26, 1:31 am, Mohamed Zenadi wrote: > Hey, > > I don't know if you can just follow the Django way, in which you simply > create a model for your db view. > > Cheers > > On Thu, Aug 26, 2010 at 7:05 AM, heidan wrote: > > hi, > > > Is there a way to work with database views using the DAL

[web2py] Beginner questions

2010-08-26 Thread Gary
I'm a experienced Python programmer (15+ years), but mostly new to web programming and just several days into my first web2py application. Several questions have come up: 1. On SQLFORM and CRUD forms, is there a way to get a cancel button displayed next to the submit buttons? 2. If I want to p

Re: [web2py] Will web2py support database view? When?

2010-08-26 Thread Mohamed Zenadi
Hey, I don't know if you can just follow the Django way, in which you simply create a model for your db view. Cheers On Thu, Aug 26, 2010 at 7:05 AM, heidan wrote: > hi, > > 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

[web2py] Re: SQLFORM not using newly added record

2010-08-26 Thread mdipierro
you can do this: form = SQLFORM(db.topic) if form.accepts(request.vars, session): session.flash = 'New topic created' redirect(URL(args=request.args)) On Aug 25, 11:11 pm, Richard wrote: > I have a table that references another record of the same table: > > db.define_table('topic', >

[web2py] Re: Web2py with barcode Reader

2010-08-26 Thread Neveen Adel
Thanks All for ur replies :) @Thadeus Burgess please how can i invoke this code once the magnetic card is entered ? Thanks in Advance Neveen

[web2py] Re: Web2py with barcode Reader

2010-08-26 Thread Neveen Adel
Thanks All for ur replies :) @Thadeus Burgess please how can i invoke this code once the magnetic card is entered ? Thanks in Advance Neveen

[web2py] Re: Web2py with barcode Reader

2010-08-26 Thread Neveen Adel
Thanks All for ur replies :) @Thadeus Burgess please how can i invoke this code once the magnetic card is entered ? Thanks in Advance Neveen

Re: [web2py] Will web2py support database view? When?

2010-08-26 Thread Vasile Ermicioi
if you can query your views with sql that should be possible with dal too, just declare your views as web2py tables and set migrate=False (no need to create tables) something like db.define_table('your_view_name', Field('field1'), Field('field2'), migrate=False)

[web2py] How to switch language in application?

2010-08-26 Thread David Marko
How can I switch language in application in a way, that app will remember this? T.force() seems to just switch translations in one request, but how to make scenario, that user will click on particular language flag icon and since that application will display in selected translation. I guess some

[web2py] Re: OpenID, facebook, twitter, linkedin, etc etc

2010-08-26 Thread hcvst
Hi, [Version 1.83.1 (2010-08-11 23:52:55)] I am trying to use rpx as per chapter 8 of the W2P book (http:// web2py.com/book/default/chapter/08) from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.actions_disabled=['register','change_password','request_reset_password'] a

[web2py] Re: Should we have a feature freeze and stability maintenance period in future?

2010-08-26 Thread mart
LOL :) I still vote for you ;) But meanwhile... had a little fun with google code and created a project (which i will soon obliterate - its my attemps at making a wewb2py app which is most likely broken ;)). But regardless... I had the worst time using 'hg' ... feels a little like "no sense of cont

[web2py] Re: MS SQL driver in Windows binary.

2010-08-26 Thread Seeker
That would be great. >From the pyodbc page on http://code.google.com/p/pyodbc/: "pyodbc is licensed using an MIT license, so it is free for commercial and personal use. You can even use the source code in your own projects." Now ... if you manage to include the PostgreSQL driver as well ... I'm s