[web2py] Re: short term roadmap

2012-09-15 Thread Marin Pranjić
> > > On Tue, Sep 11, 2012 at 6:48 PM, Massimo Di Pierro wrote: > I think we need a general purpose way to call scripts from apps (in this > case admin) that run in background and communicate with them. I am working > on this mechanism. > Can't wait to see this + hg/git support! I can help w

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
I have added initial multi-db support and now I am working on your suggestion. It should be ready in a couple of hours. I will let you know. -rif sâmbătă, 15 septembrie 2012, 02:33:49 UTC+3, rochacbruno a scris: > > @rif I have some suggestion > > Screenshot: http://i.imgur.com/3t2kv.png > > For

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Bruno Rocha
I did that, a modal for field details... I did a pull-request with this, maybe you can improve the design. --

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Bruno Rocha
I did the modal part, now need to do the shortcuts. also as you are working on mult-db support, the code may change a little. look: [image: Inline image 1] [image: Inline image 2] --

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
You can pull from my devel branch for multi-db support. Please give me feedback. I am merging your pull request. An I think I will use ajax. -rif sâmbătă, 15 septembrie 2012, 13:11:14 UTC+3, rochacbruno a scris: > > I did the modal part, now need to do the shortcuts. > > also as you are working

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Bruno Rocha
Your call, also if you prefer to take the modal logic from modules/server side DOM on to HTML template it is easy to change. I just created as Server side DOM because it can be reused. --

[web2py] Re: web2py book on github

2012-09-15 Thread Alan Etkin
Then I suppose deleting manualy the .html is enough and no further hacking of the controller is needed. actually, even better instead of commenting 92,93,94, change 81 from > > TOMORROW = now + datetime.timedelta(days=1) > > to > > TOMORROW = now - datetime.timedelta(days=1) > > Thanks --

Re: [web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
I bow before what you showed in modules/html.py, yet I preferred a much simpler solution even if it is not reusable (hopefully it will give a chance to less-python-gurus like me to understand :). I will focus on the rest of the suggestions now. -rif sâmbătă, 15 septembrie 2012, 13:31:52 UTC+3,

[web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread Alan Etkin
Shouldn't this be called plugin_admin or similar (following the plugin_wiki fashion)? Does w2x_etc naming use any plugin convention?. For instance, in Pyodel (also a plugin) I rely in an application manager role (without a prefix). Maybe we can adopt a standard naming convention for plugin role

[web2py] Re: [ANN] Started development on web2admin

2012-09-15 Thread rif
I just thought that one might want to use the manager (without prefix) role for a different propose so I was just playing safe. I agree about namespace pollution. We just need more opinions on this matter (Is it safe to just use manager role or general read/write/etc permissions?). And if we re

[web2py] Re: IS_IN_DB(multiple=True) problems on GAE

2012-09-15 Thread Alan Etkin
El viernes, 14 de septiembre de 2012 20:08:23 UTC-3, howesc escribió: > > i noticed that in 2.0.8 and trunk that IS_IN_DB when multiple=True tries > to do a belongs query with the string values posted by the user rather than > int values needed for the query (at least on GAE). bug report + propo

[web2py] Is there a way to have a widget like list:string on list:reference?

2012-09-15 Thread Tito Garrido
Hi Folks, I am pretty sure that there is a way to have list:string widget on list:reference but I couldn't find looking in email archives. Anybody know it? Thanks in advance, TIto -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ --

[web2py] Re: Is there a way to have a widget like list:string on list:reference?

2012-09-15 Thread Anthony
How would that work from the user perspective? What would the user enter into each string box? On Saturday, September 15, 2012 10:13:16 AM UTC-4, Tito Garrido wrote: > > Hi Folks, > > I am pretty sure that there is a way to have list:string widget on > list:reference but I couldn't find looking

[web2py] Re: executesql bug

2012-09-15 Thread Anthony
Not all of the adapters allow placeholders. Which one are you using? On Friday, September 14, 2012 11:59:20 PM UTC-4, Matt wrote: > > Hi there, > > Another bug in 2.0.x: > > > def test_execute(): > rows = db.executesql('select * from y where id = %(id)s', placeholders = > dict(id = 1), as_dict

[web2py] Re: IS_IN_DB(multiple=True) problems on GAE

2012-09-15 Thread howesc
your patch does the correction in the DAL - i almost suggested the same thing (and since i was working off of 2.0.8 at the time that's why i missed your change). though i think it is possible to have key fields in GAE that are not ints so i was hesitant to make the change in the DAL myself. ei

[web2py] Count users

2012-09-15 Thread Martin Weissenboeck
I have built an application where users can impersonate some others. Now I want to count the number of persons using this feature, i.e. I want to count the impersonators. Is there a place for a global variable or a static variable for an application? Regards, Martin --

[web2py] Problem with validator IS_LIST_OF(IS_EMAIL())

2012-09-15 Thread Martin Weissenboeck
I have a simple table, one name and a list of email-addresses: db.define_table('address', Field('name'), Field('emails','list:string', requires=IS_LIST_OF(IS_EMAIL( Now I add one name and two email-addresses to this table. Id: 1 Name:Smith Emails: jsm...@example.com

[web2py] what validator do I use to produce radio boxes in html?

2012-09-15 Thread Pystar
what validator do I use to produce radio boxes in html? i.e. in the database definition? --

[web2py] Re: IS_IN_DB(multiple=True) problems on GAE

2012-09-15 Thread Alan Etkin
> > your patch does the correction in the DAL - i almost suggested the same > thing (and since i was working off of 2.0.8 at the time that's why i missed > your change). though i think it is possible to have key fields in GAE that > are not ints so i was hesitant to make the change in the DAL

[web2py] Re: [web2py:38444] Re: myISAM table creation

2012-09-15 Thread Santiago M
I'm newby with Web2py. Using current version 2.0.9. I cant find MySQLAdapter, MyISAMAdapter, InnoDBAdapter. Only gluon/dal.py with InnoDb hardcoded. Can you help me please? Thanks On Wednesday, January 6, 2010 1:55:40 PM UTC-3, Thadeus wrote: > > O > > MySQLAdapter > ->MyISAMAdapter > ->Inn

[web2py] Re: Problems compiling

2012-09-15 Thread rick817
On Friday, 14 September 2012 17:53:18 UTC+1, Massimo Di Pierro wrote: > > > Doesn't the ticket say which file is causing the problem? > >> >> >> >> > I'm not getting a ticket. When I click compile from the 'site' tab/window >> all that happens is that an >> > orange pop-up box appears contai

[web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Anthony
I don't think there's a validator that does it automatically, but you can specify widget=SQLFORM.widgets.radio.widget. See http://web2py.com/books/default/chapter/29/07#Widgets. Anthony On Saturday, September 15, 2012 2:12:17 PM UTC-4, Pystar wrote: > > what validator do I use to produce radio

[web2py] Re: IS_IN_DB(multiple=True) problems on GAE

2012-09-15 Thread howesc
web2py default IDs are integers. we have some GAE users who are using named keysor at least i added support for named keys on GAE based on some user's requests. i don't have a generic solution for the DAL that chunks belongs queries in groups of 30, so it is still left as something the use

[web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Pystar
Doing that threw this error: widget cannot determine options of auth_user.sex On Saturday, September 15, 2012 7:21:42 PM UTC+1, Anthony wrote: > > I don't think there's a validator that does it automatically, but you can > specify widget=SQLFORM.widgets.radio.widget. See > http://web2py.com/b

Re: [web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Alec Taylor
Something like this: Field('sex', requires=IS_IN_SET(['male','female'], widget=SQLFORM.widgets.radio.widget) On Sun, Sep 16, 2012 at 4:32 AM, Pystar wrote: > Doing that threw this error: > widget cannot determine options of > auth_user.sex > > > On Saturday, September 15, 2012 7:21:42 PM UTC+1,

Re: [web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Pystar
exactly what I did but it still threw that error. Also, kindly note that I am adding this extra field to the auth_user table. And displaying it in a custom form. Also another question concerning custom forms, in the view, how do I access elements of the form using syntax like form[0]["_class"] =

[web2py] Just pulled web2py from hg - wiki returns an error

2012-09-15 Thread guruyaya
This problem occured on the latest stable release to, but I'll describe it on trunk 1. pull the latest trunk from hg 2. run web2py 3. using any editor, including the built in interface, edit default.py on the welcome app to contain def index(): return auth.wiki() 4. go to localhost, and go on

[web2py] Re: Just pulled web2py from hg - wiki returns an error

2012-09-15 Thread guruyaya
Attaching a suggested patch and calling it a day. Good night On Saturday, September 15, 2012 10:12:15 PM UTC+3, guruyaya wrote: > > This problem occured on the latest stable release to, but I'll describe it > on trunk > 1. pull the latest trunk from hg > 2. run web2py > 3. using any editor, inclu

Re: [web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Anthony
On Saturday, September 15, 2012 2:49:56 PM UTC-4, Pystar wrote: > > exactly what I did but it still threw that error. Can you show the exact code? If you have a list of validators, I believe IS_IN_SET must be the first in the list. > Also, kindly note that I am adding this extra field to the

[web2py] Re: Lazy tables bug

2012-09-15 Thread Massimo Di Pierro
No. I will asap. On Friday, 14 September 2012 23:00:10 UTC-5, Matt wrote: > > Weird. Did you try with GAE? > > Matt > > On Saturday, September 15, 2012 2:20:57 PM UTC+12, Massimo Di Pierro wrote: >> >> I cannot reproduce this. tested with and without lazy_tables = True on >> 2.0.9. >> >> On Frida

[web2py] Re: [web2py:38444] Re: myISAM table creation

2012-09-15 Thread Massimo Di Pierro
Please add a request for enhancement issue. It should not be difficult to add this feature. On Saturday, 15 September 2012 11:46:15 UTC-5, Santiago M wrote: > > I'm newby with Web2py. Using current version 2.0.9. > I cant find MySQLAdapter, MyISAMAdapter, InnoDBAdapter. Only gluon/dal.py > with

[web2py] Re: Problem with validator IS_LIST_OF(IS_EMAIL())

2012-09-15 Thread Massimo Di Pierro
I cannot reproduce this: >>> IS_EMAIL()('x') ('x', 'enter a valid email address') >>> IS_EMAIL()('x...@x.com') ('x...@x.com', None) >>> IS_LIST_OF(IS_EMAIL())(['x']) (['x'], 'enter a valid email address') >>> IS_LIST_OF(IS_EMAIL())(['x...@x.com']) (['x...@x.com'], None) >>> IS_LIST_OF(IS_EMAIL())(

Re: [web2py] Re: what validator do I use to produce radio boxes in html?

2012-09-15 Thread Pystar
Thanks, it works now, since I made the IS_IN_SET() the first in my validators like. But with the way I struggled with it, I think that quirky feature should be noted in the documentation to help newbies. On Saturday, September 15, 2012 9:19:47 PM UTC+1, Anthony wrote: > > On Saturday, September

[web2py] How do I access the elements of a custom form?

2012-09-15 Thread Pystar
How do I access the elements of a custom form? when I design my form using {{=form.custom.begin}}{{=form.custom.end}}. How do I access elements of the form using methods like form[0]["_class""] etc. its not working --

[web2py] Re: How do I access the elements of a custom form?

2012-09-15 Thread Anthony
Please show some code... On Saturday, September 15, 2012 5:08:43 PM UTC-4, Pystar wrote: > > How do I access the elements of a custom form? when I design my form using > {{=form.custom.begin}}{{=form.custom.end}}. How do I access elements of the > form using methods like form[0]["_class""] etc.

[web2py] Need help with impersonate

2012-09-15 Thread Michael Ellis
I haven't worked with impersonate before. Thought I understood from the manual how to set it up, but apparently not. When I try to impersonate another user, I get "Forbidden" when I hit Submit after entering the user id. I'm running on localhost. Here's what the shell says I have in the au

Re: [web2py] Re: Problem with validator IS_LIST_OF(IS_EMAIL())

2012-09-15 Thread Martin Weissenboeck
Sorry, I did not mention: I did not use a form, I have used the admin interface to insert and update the records. I have tried it twice: first with my "real" program and second with the small program I have sent. Now I have added this function: def em(): form=SQLFORM(db.address) if form.p

[web2py] Re: [web2py:38444] Re: myISAM table creation

2012-09-15 Thread Niphlod
isam the one without transactions ? On Saturday, September 15, 2012 10:38:28 PM UTC+2, Massimo Di Pierro wrote: > > Please add a request for enhancement issue. It should not be difficult to > add this feature. > > On Saturday, 15 September 2012 11:46:15 UTC-5, Santiago M wrote: >> >> I'm newby

Re: [web2py] Re: Is there a way to have a widget like list:string on list:reference?

2012-09-15 Thread Bruno Rocha
I am using the default multi-select and this http://ivaynberg.github.com/select2/ --

Re: [web2py] Re: Problem with validator IS_LIST_OF(IS_EMAIL())

2012-09-15 Thread Massimo Di Pierro
Definitively a problem with the widget. Please open a ticket about it. On Saturday, 15 September 2012 17:01:44 UTC-5, mweissen wrote: > > Sorry, I did not mention: > I did not use a form, I have used the admin interface to insert and update > the records. > I have tried it twice: first with my "

[web2py] Re: [web2py:38444] Re: myISAM table creation

2012-09-15 Thread Massimo Di Pierro
I think the point is to allow swapping mySQL engines. Not that we should recommend it. ;-) On Saturday, 15 September 2012 17:07:50 UTC-5, Niphlod wrote: > > isam the one without transactions ? > > On Saturday, September 15, 2012 10:38:28 PM UTC+2, Massimo Di Pierro wrote: >> >> Please add a requ

[web2py] Re: IS_IN_DB(multiple=True) problems on GAE

2012-09-15 Thread Alan Etkin
>i'm undecided anyway if this should be automatic for users or if they should be forced to realize that large belongs queries are >implemented as multiple datastore calls on GAE. For me, the automatic breaking should be the default, with a documented warning that surpassing the 30 item limit wi

[web2py] Re: Count users

2012-09-15 Thread Alan Etkin
I'd add a sentry function in the model to record each usage in a table def pseudo_impersonate(impersonate arguments): db.impersonation.insert(impersonator=auth.user_id) auth.(impersonate_arguments) El sábado, 15 de septiembre de 2012 12:46:14 UTC-3, mweissen escribió: > > I have built an

Re: [web2py] Re: Problem with validator IS_LIST_OF(IS_EMAIL())

2012-09-15 Thread Bruno Rocha
I have the exact same problem, but it is with tags widget. I tried a lot but did not found the way to solve it :/ BEFORE VALIDATION ERROR: [image: Inline image 1] AFTER VALIDATION ERROR [image: Inline image 2] --

[web2py] Re: Postgres Heroku

2012-09-15 Thread Bruno Rocha
And data-clips are amazing feature! https://postgres.heroku.com/dataclips/icuwejkuecgtzhbdtcpeomdakcyg --

Re: [web2py] Re: Is there a way to have a widget like list:string on list:reference?

2012-09-15 Thread Tito Garrido
Like facebook, user would type and web2py would add the string to tag db if necessary... but I guess the only way would be using a widget + dbio=False and format the output of the widget to add in the tag table... Bruno, this widget is awesome! Do you have it implemented on web2py as widget? Tha

Re: [web2py] Re: Error using facebook authentication when upgraded to 2.0.8

2012-09-15 Thread Tito Garrido
Issue opened: http://code.google.com/p/web2py/issues/detail?id=1006 On Fri, Sep 14, 2012 at 1:50 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Please open a ticket. Looks like a bug. > > On Friday, September 14, 2012 10:02:57 AM UTC-5, Tito Garrido wrote: >> >> Ticket ID >> >> 177.

Re: [web2py] Re: Postgres Heroku

2012-09-15 Thread Kenny Chung
Thank you, Bruno. Do they also offer Web2py hosting as well? I am not familiar with their service. By the way, thanks for another reply for my post couple days ago! ;) On Sat, Sep 15, 2012 at 8:36 PM, Bruno Rocha wrote: > > And data-clips are amazing feature! > > https://postgres.heroku.com/data

Re: [web2py] Re: Is there a way to have a widget like list:string on list:reference?

2012-09-15 Thread Anthony
> > Like facebook, user would type and web2py would add the string to tag db > if necessary... but I guess the only way would be using a widget + > dbio=False and format the output of the widget to add in the tag table... > I see. Then no, there's nothing like that built in. Anthony --

[web2py] Re: executesql bug

2012-09-15 Thread Matt
I'm using GAE + Cloud SQL (essentially MySQL.) I've been using executesql like this in 1.99.7 and it was working fine then. Kind regards, Matt On Sunday, September 16, 2012 2:34:02 AM UTC+12, Anthony wrote: > > Not all of the adapters allow placeholders. Which one are you using? > > On Friday, S

[web2py] Re: executesql bug

2012-09-15 Thread Anthony
Hmm, doesn't look like the Google SQL adapter takes a placeholder argument: http://code.google.com/p/web2py/source/browse/gluon/dal.py#4028. I'm not sure if that changed at some point. The MySQL adapter should take placeholders, though. Anthony On Saturday, September 15, 2012 11:09:43 PM UTC-4

Re: [web2py] Re: Is there a way to have a widget like list:string on list:reference?

2012-09-15 Thread Bruno Rocha
This one:http://ivaynberg.github.com/select2/#infinite It is easy to implement, just a default text box and you bind this. --

[web2py] Re: How do I access the elements of a custom form?

2012-09-15 Thread Annet
I have a custom form in one of my views in which I access an element this way: {{=form.custom.begin}} {{del form.element('table')[-1]}} {{=form.element('table')}} {{=form.custom.submit}} {{=form.custom.end}} Annet --

Re: [web2py] Re: Problem with validator IS_LIST_OF(IS_EMAIL())

2012-09-15 Thread Martin Weissenboeck
Done: Issue 29 : on error IS_LIST_OF() changes the value of INPUT 2012/9/16 Massimo Di Pierro > Definitively a problem with the widget. Please open a ticket about it. > > > On Saturday, 15 September 2012 17:01:44 UTC-5, mweissen wrote: > >> S

Re: [web2py] Re: Count users

2012-09-15 Thread Martin Weissenboeck
Thank you, I will try it. Maybe there is a solution without a db-table? 2012/9/16 Alan Etkin > I'd add a sentry function in the model to record each usage in a table > > def pseudo_impersonate(impersonate arguments): > db.impersonation.insert(impersonator=auth.user_id) > auth.(impersonat

[web2py] Format of Start Time in scheduler_task

2012-09-15 Thread Martin Weissenboeck
A minor problem: Looking at a row of db.scheduler_task using admin shows: Start Time: Next Run Time: Stop Time: "Next Run Time" and "Stop Time" use the format "%d.%m.%Y %H:%M:%S" (the format I have choosen). "Start Time" shows date and time in the default format "%Y-%m-%d %H:%M:%S" I think that