[web2py] Re: BUTTON helper

2010-12-11 Thread weheh
To be more explicit, I think BUTTON is good for newbies -- it's just so obvious and convenient. Now TAG.BUTTON ... yes, I like TAG, but I'm not used to thinking about it. I guess that makes me a newbie, still.

[web2py] anybody use the web2py IRC chat?

2010-12-11 Thread weheh
Just curious. I don't use it, but I probably would if I thought I could get a fast response from an expert.

[web2py] Re: BUTTON helper

2010-12-11 Thread weheh
Yes, I know about TAG.BUTTON(...). Thanks. Still, given all the helpers, I like the idea of being able to say BUTTON. When I think button, I don't think TAG. On Dec 12, 2:24 am, mdipierro wrote: > TAG.BUTTON() > > On Dec 12, 12:19 am, weheh wrote: > > > Yes, I know. Nevertheless, it feels li

[web2py] Re: administrator controller

2010-12-11 Thread mdipierro
On Dec 12, 12:45 am, Richard wrote: > @abrilc, would be interested to see what you have. > My specifications are simple: > - view users def users(): return dict(users=db(db.auth_user).select()) > - block/unblock user db.auth_user(id).update_record(registration_key='blocked') > - delete user

[web2py] Re: BUTTON helper

2010-12-11 Thread mdipierro
TAG.BUTTON() On Dec 12, 12:19 am, weheh wrote: > Yes, I know. Nevertheless, it feels like button deserves its own > helper. Also, the doc does not list _type='button'. Probably needs to > be updated. > > On Dec 12, 12:41 am, Bruno Rocha wrote: > > > INPUT(_type='button',_value='Click here',

[web2py] Re: SQLTABLE with joined data, but without repeats?

2010-12-11 Thread mdipierro
You can do, for example: rows = db(db.one.id==db.many.one).select(db.many.id,db.many.one,db.many.xx,db.many.yy,db.many.zz,db.one.aa,db.one.bb,db.one.cc) On Dec 11, 12:27 pm, Carlos wrote: > Hi, > > I need to show a SQLTABLE with joined data but without repeated > information (like grouping but s

[web2py] "Unable to create application" on WebFaction

2010-12-11 Thread Dave
I created a web2py app on WebFaction using the custom install script posted on the WebFaction site. I then linked it to two subdomains: Name: web2py_admin Https: yes Subdomains: admin.web2py.dlawrence.webfactional.com Site apps: web2py Name: web2py_public Https: no Subdomains: web2py.dlawrence.w

[web2py] Re: how to generate database dumps with DAL

2010-12-11 Thread Richard
I think I can use the _create() and _insert() methods to achieve this.

Re: [web2py] administrator controller

2010-12-11 Thread Richard
@abrilc, would be interested to see what you have. My specifications are simple: - view users - block/unblock user - delete user - edit user details - give/revoke administrator privilege so others can manage this page

Re: [web2py] administrator controller

2010-12-11 Thread Richard
thanks Ivan - yes that's the post I was trying to find.

[web2py] Re: BUTTON helper

2010-12-11 Thread weheh
Yes, I know. Nevertheless, it feels like button deserves its own helper. Also, the doc does not list _type='button'. Probably needs to be updated. On Dec 12, 12:41 am, Bruno Rocha wrote: > INPUT(_type='button',_value='Click here', _onclick='javascript:alert("button > clicked")')   ? > > 2010/12/1

Re: [web2py] BUTTON helper

2010-12-11 Thread Bruno Rocha
INPUT(_type='button',_value='Click here', _onclick='javascript:alert("button clicked")') ? 2010/12/12 weheh > I know this has come up before, but I found myself wondering why > web2py doesn't have a BUTTON helper? Sure seems like it would be > useful, backwards compatible and consistent. -

[web2py] Re: help needed with db table indexing within SQLFORM.factory

2010-12-11 Thread weheh
I neglected to mention that I also have a requires: db.mytable.groups.requires=IS_IN_DB(db,'groups.id','% (name)s',multiple=True)

[web2py] BUTTON helper

2010-12-11 Thread weheh
I know this has come up before, but I found myself wondering why web2py doesn't have a BUTTON helper? Sure seems like it would be useful, backwards compatible and consistent.

[web2py] help needed with db table indexing within SQLFORM.factory

2010-12-11 Thread weheh
I'm using SQLFORM.factory to create a multi-list from a list:string field: form=SQLFORM.factory(db.mytable) where db.define_table('mytable',Field('groups','list:string')) The view is: form.custom.widget.groups The multilist widget appears in the view -- no problems there. The issue is t

Re: [web2py] Re: Scalability of web2py?

2010-12-11 Thread Branko Vukelic
Zotonic is a framework with CMS included. It's actually quite powerful (and large). It also packs lots of next-gen stuff like websockets and comet. Comes with freeimage-based image processing capability etc. Very cool stuff. Of course, my poor excuse for Erlang programming didn't live up to the cha

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Branko Vukelic
I think it's better to just remove the favicon. Having a default logo is just as bad as having a web2py logo. On Sun, Dec 12, 2010 at 5:13 AM, Bruno Rocha wrote: > we can have a different favicon following the different logo that welcome > has. @branko can suggest one? > 2010/12/12 Anthony >> >>

Re: [web2py] SQLTABLE with joined data, but without repeats?

2010-12-11 Thread Bruno Rocha
I dont know if you can do that with a query (DAL or SQL), I guess you can't. But, there is a workaround using virtual fields, you can store the values in a set, then check if the value is already in set, if true do not display. Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Bruno Rocha
we can have a different favicon following the different logo that welcome has. @branko can suggest one? 2010/12/12 Anthony > > as long as the name is changed > > When using the welcome app, we should require that the web2py favicon be > removed -- I keep running into web2py powered sites that di

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Anthony
> as long as the name is changed When using the welcome app, we should require that the web2py favicon be removed -- I keep running into web2py powered sites that display the web2py favicon. Actually, maybe it would be a better idea to simply not include the web2py favicon with the welcome app --

Re: [web2py] Re: Scalability of web2py?

2010-12-11 Thread Albert Abril
I've been researching about Erlang because Branko comments. There's a few frameworks, and there is a compare chart: http://www.chicagoboss.org/compare.html I get impressed by zotonic. It appears to be a good cms+framework. On Sun, Dec 5, 2010 at 2:43 PM, mdipierro wrote: > Yes. eventlet failed

Re: [web2py] SQLTABLE with joined data, but without repeats?

2010-12-11 Thread Ivan Matveev
Is there an SQL query that gives the desired result?

[web2py] Re: reserved words in databases

2010-12-11 Thread mdipierro
No. Right now there may problems if you used a reserved keyword. On Dec 11, 6:57 pm, Carlos wrote: > Hi, > > With respect to the following old thread: > > http://groups.google.com/group/web2py/browse_thread/thread/6a0948e7bf... > > Is web2py now ready to use reserved words as table and field name

[web2py] reserved words in databases

2010-12-11 Thread Carlos
Hi, With respect to the following old thread: http://groups.google.com/group/web2py/browse_thread/thread/6a0948e7bf8c826f/e14174651edf05e2 Is web2py now ready to use reserved words as table and field names (e.g. "user", "group") without any conflicts with any of the supported databases?. Or wha

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Branko Vukelic
On Sun, Dec 12, 2010 at 1:02 AM, pbreit wrote: > For what it's worth, I believe the following is accurate: > 1. GPL is more objectionable than BSD/MIT Both GPL and BSD are not well suited to template code, that's the point. > 2. Frameworks tend not to use GPL So? -- Branko Vukelić bg.bra...

[web2py] Re: it case you missed it...

2010-12-11 Thread pbreit
For what it's worth, I believe the following is accurate: 1. GPL is more objectionable than BSD/MIT 2. Frameworks tend not to use GPL (http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks) It's probably worth consideration if we would like maximum usage.

[web2py] Re: User login in jquery colorbox

2010-12-11 Thread pk
thanks for your help, but i am a beginner of web2py :( can i send you perhaps my app and you tell me what i have exactly to do? that would be nice. thanks peter On 11 Dez., 20:01, Branko Vukelic wrote: > Some more detail on how to do this: > > Instea of submitting the form, you can trap the onSu

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Branko Vukelic
DO WHAT THE SEXUAL INTERCOURSE YOU WANT LICENSE On Sat, Dec 11, 2010 at 10:31 PM, mdipierro wrote: > Yes. That is the license for the welcome app but I think we should > phrase a little more professionally. ;-) > > On Dec 11, 3:16 pm, Bruno Rocha wrote: >> http://sam.zoy.org/wtfpl/ >> >> 2010/12

[web2py] Re: it case you missed it...

2010-12-11 Thread mdipierro
Yes. That is the license for the welcome app but I think we should phrase a little more professionally. ;-) On Dec 11, 3:16 pm, Bruno Rocha wrote: > http://sam.zoy.org/wtfpl/ > > 2010/12/11 mdipierro > > > > > You have a good point. The welcome scaffolding app is not GPL. It is > > pubic domain

[web2py] Re: Many to Many on GAE

2010-12-11 Thread howesc
Arun, this line: persons_and_dogs = db((db.person.id==db.ownership.person) & (db.dog.id==db.ownership.dog)) won't run on GAE because of the joins. You can choose to keep the data structure as you have it and run 2 queries and mesh the results. before the advent of list properties i was doing that

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Bruno Rocha
http://sam.zoy.org/wtfpl/ 2010/12/11 mdipierro > You have a good point. The welcome scaffolding app is not GPL. It is > pubic domain (no license whatsoever). > I have said that before but it is not explicitly stated in the > license. > I will add a statement to the top of each .py file in the we

[web2py] Re: Off Topic: HTML5 webapps with Google Closure, Clojure and NoSQL db's

2010-12-11 Thread dspiteself
It is not public yet, but it is in trial use by handful of offices. It is a commercial product so the source would not be availiable, but we would be interested in collaborating on any open source project to better integrate google closure support. It would be helpful for all developers to compress

[web2py] Re: Off Topic: HTML5 webapps with Google Closure, Clojure and NoSQL db's

2010-12-11 Thread dspiteself
It is not public yet, but it is in trial use by handful of offices. It is a commercial product so the source would not be availiable, but we would be interested in collaborating on any open source project to better integrate google closure support. It would be helpful for all developers to compress

[web2py] Re: it case you missed it...

2010-12-11 Thread mdipierro
You have a good point. The welcome scaffolding app is not GPL. It is pubic domain (no license whatsoever). I have said that before but it is not explicitly stated in the license. I will add a statement to the top of each .py file in the welcome app. Massimo On Dec 11, 2:52 pm, Branko Vukelic wr

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Branko Vukelic
On Sat, Dec 11, 2010 at 9:49 PM, VP wrote: > My understanding is this.   The apps that you develop with Web2py does > not have to be GPL, and can be licensed in any way you want.  (I am > unsure if this violates GPL's terms or not, but this is what I think > how web2py's licensing permits). > > Wh

[web2py] Re: it case you missed it...

2010-12-11 Thread VP
My understanding is this. The apps that you develop with Web2py does not have to be GPL, and can be licensed in any way you want. (I am unsure if this violates GPL's terms or not, but this is what I think how web2py's licensing permits). What is GPL is the web2py framework itself. So, as long

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Branko Vukelic
On Sat, Dec 11, 2010 at 9:23 PM, G. Clifford Williams wrote: > Thanks I appreciate that and I'll surely take you up on that it I think it'll > help me win one of these battles. > > The bottom line is that many commercial entities frown on GPL licensed > software. Legal departments go ape when so

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread G. Clifford Williams
Thanks I appreciate that and I'll surely take you up on that it I think it'll help me win one of these battles. The bottom line is that many commercial entities frown on GPL licensed software. Legal departments go ape when someone brings in new software and 1) it's "free" and 2) it's "GPL'd".

Re: [web2py] Re: User login in jquery colorbox

2010-12-11 Thread Branko Vukelic
Some more detail on how to do this: Instea of submitting the form, you can trap the onSubmit event, capture the data from the form, and send it manually using a $.post() call. You can specify a callback function in the $.post() call, and then use window.location.replace()[1] to do the redirect. [

[web2py] Re: upload files in specific sub-folders

2010-12-11 Thread GoldenTiger
did you try Field arguments? http://www.web2py.com/examples/static/epydoc/index.html uploadfolder=None uploadseparate=False # upload to separate directories by uuid_keys # first 2 character and tablename.fieldname # False - old behaviour

Re: [web2py] Re: User login in jquery colorbox

2010-12-11 Thread Branko Vukelic
Yes exactly. The login should wait for a return value, and do the redirect itself. The server side should issue a redirect only if it knows it's not an ajax request. On Sat, Dec 11, 2010 at 5:45 PM, Luther Goh Lu Feng wrote: > Yes, you are clearer now. I don't know the answer but maybe your login

[web2py] Many to Many on GAE

2010-12-11 Thread K.R.Arun
I'm working on a project in which I have several tables with many to many relationship. So I started to try it with example given in book like this. Models - db.define_table('person', Field('name')) db.define_table('dog',Field('name')) db.define_table('ownership',Field('person', db.person)

Re: [web2py] Re: doc not showing properly in firefox [Fixed - Closed]

2010-12-11 Thread Jonathan Lundell
On Dec 11, 2010, at 10:36 AM, weheh wrote: > > On Dec 11, 12:26 am, weheh wrote: >> In case this wasn't obvious, by doc, I mean the web2py online >> documentation at web2py.com/book. >> >> On Dec 10, 11:54 pm, weheh wrote: >> >>> Anybody having trouble with not being able to read doc in Firefo

[web2py] Re: doc not showing properly in firefox [Fixed - Closed]

2010-12-11 Thread weheh
On Dec 11, 12:26 am, weheh wrote: > In case this wasn't obvious, by doc, I mean the web2py online > documentation at web2py.com/book. > > On Dec 10, 11:54 pm, weheh wrote: > > > Anybody having trouble with not being able to read doc in Firefox? > > Looks OK in Chrome, but Firebug in Firefox thr

[web2py] SQLTABLE with joined data, but without repeats?

2010-12-11 Thread Carlos
Hi, I need to show a SQLTABLE with joined data but without repeated information (like grouping but showing all rows). Let's say I have the following model: db.define_table('one', Field('aa'), Field('bb'), Field('cc'), format='%(aa)s') db.define_table('many', Field('one', 'referen

[web2py] Error in decorator section of web2py book

2010-12-11 Thread Luther Goh Lu Feng
http://web2py.com/book/default/chapter/08#Decorators Line 8 of code snippet should be @auth.requires_membership('agents') not @auth.requires_membership(agents)

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread Branko Vukelic
As long as it's not Affero GPL, they really have nothing to worry about. I acutally like GPL more than BSD and other crap. Viral licenses are much better for upstream. On Sat, Dec 11, 2010 at 5:17 PM, mdipierro wrote: > are you talking about the web2py license? Why would a client care? > Web2py i

[web2py] Re: User login in jquery colorbox

2010-12-11 Thread Luther Goh Lu Feng
Yes, you are clearer now. I don't know the answer but maybe your login should be an ajax submission using jquery's ajax calls. Maybe someone with more experience can help. On Dec 12, 12:34 am, pk wrote: > hi, > here are the pix. the loginview:http://www.hs-augsburg.de/~pk/pix/login.png > > after

[web2py] Re: User login in jquery colorbox

2010-12-11 Thread pk
hi, here are the pix. the loginview: http://www.hs-augsburg.de/~pk/pix/login.png after the user submit a redirect works in the colorbox: http://www.hs-augsburg.de/~pk/pix/redirect.png but this redirect should not be shown in the colorbox! i hop it is clearer? thanks peter On 11 Dez., 17:29, Lut

[web2py] Re: Suggestion to crud auth_user table for web2py wizard

2010-12-11 Thread Luther Goh Lu Feng
I don't think I saw it, but I believe that the book does not have any documentation about the wizard. I think the wizard should be highlighted more as I managed to get some of my friends interested in web2py because of the wizard. Just my suggestion. On Dec 11, 11:52 pm, mdipierro wrote: > Will

Re: [web2py] Re: Unable to call method in module

2010-12-11 Thread Jonathan Lundell
On Dec 11, 2010, at 7:18 AM, Vikram wrote: > > I could not able to connect to database giving the below error. > > Traceback (most recent call last): > File "/home/vikramt/web2py/gluon/restricted.py", line 188, in > restricted >exec ccode in environment > File "/home/vikramt/web2py/applicat

[web2py] Re: User login in jquery colorbox

2010-12-11 Thread Luther Goh Lu Feng
I would love to help you but I am afraid that I have difficulty understanding your problem. If words fail perhaps some screenshots to tinypic.com can help make your question clearer? On Dec 11, 11:33 pm, pk wrote: > Hi together, > > it works fine to display the login formular in my jquery colorbo

[web2py] Overriding of existing files when using wizard

2010-12-11 Thread Luther Goh Lu Feng
On a fresh creation of an application, the wizard works great. Consider the case a user does modifications to the views, menu, controllers generated by the wizard. If the user wishes to create an additional table using the wizard, I noticed that the the modifications are overwritten. This is undes

[web2py] Re: it case you missed it...

2010-12-11 Thread mdipierro
are you talking about the web2py license? Why would a client care? Web2py imposes no restriction on their code. I an write a letter to this effect if at all necessary. Massimo On Dec 11, 10:11 am, "G. Clifford Williams" wrote: >  I hope so. A different license would certainly help with my fight

Re: [web2py] Re: it case you missed it...

2010-12-11 Thread G. Clifford Williams
I hope so. A different license would certainly help with my fight for adoption by a few clients On Fri, Dec 10, 2010 at 06:31:15PM -0800, pbreit spake: > Did I read correctly that you might evaluate Web2py's license? It does > seem like GPL could potentially discourage usage since it makes the >

[web2py] Re: Suggestion to crud auth_user table for web2py wizard

2010-12-11 Thread mdipierro
Will add to todos :-) On Dec 11, 4:23 am, Luther Goh Lu Feng wrote: > Firstly, I would like to express my heartfelt appreciation for the > wizard. It saves me loads of time! > > Now on to my suggestion. My application requires admins to be able to > CRUB users in auth_user table. The wizard curre

[web2py] Re: web2py trunk versioning

2010-12-11 Thread mdipierro
I think here is a problem with with my commit script. It does not refresh the VERSION. I will fix this. On Dec 11, 2:00 am, Luther Goh Lu Feng wrote: > I did a fresh checkout of trunk using > > hg clonehttps://web2py.googlecode.com/hg/web2py > > First thing I noticed was that the version date see

[web2py] User login in jquery colorbox

2010-12-11 Thread pk
Hi together, it works fine to display the login formular in my jquery colorbox. but now i have a question. if user login successfully, i get a refresh to the userpage in the little colorbox. but i will close the colorbox before refreshing with this js-command: $.colorbox.close() have anybody an i

[web2py] Re: Unable to call method in module

2010-12-11 Thread Vikram
HI Martin, I could not able to connect to database giving the below error. Traceback (most recent call last): File "/home/vikramt/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home/vikramt/web2py/applications/myapp/controllers/ default.py", line 66,

[web2py] Re: SEO Tips & How this can be applied in web2py apps?

2010-12-11 Thread GoldenTiger
Yes, there are a few links like that. In fact, the links with higher PR. Check all internal pagerank on http://www.internalrank.com http://www.web2py.com/examples/default/download is PR= 5 http://web2py.com/examples/default/download is PR= 5 Two links above should be one, so PR could be hi

[web2py] Re: having trouble with python to json to javascript parameters

2010-12-11 Thread ron_m
I use something like this (the = is equivalent to response.write) {{ response.write(json(python_data_structure)+";", escape=False) }}

Re: [web2py] administrator controller

2010-12-11 Thread Ivan Matveev
> I saw one previously on this list but can't seem to find it right now. Was it plugin by Selecta? http://groups.google.com/group/web2py/browse_thread/thread/52014e4b0adf5888/013d69bb1fe9008c?lnk=gst&q=tools+to+manage+users+%2F+groups+%2F+permissions#013d69bb1fe9008c

Re: [web2py] administrator controller

2010-12-11 Thread Albert Abril
I wrote one panel to my client, to control his web/models. But isn't so much serious, i was thinking on rewrite it to achieve something better. Something like appadmin but thinking on final users. @Richard, did you thought on concrete specifications? * User administrator * Images * ... On Sa

[web2py] administrator controller

2010-12-11 Thread Richard
Does anyone have a simple administrator controller for granting/revoking permissions, blocking/deleting users, etc? I saw one previously on this list but can't seem to find it right now.

Re: [web2py] grid

2010-12-11 Thread Ivan Matveev
Wold love to test it with joins.

[web2py] Re: SEO Tips & How this can be applied in web2py apps?

2010-12-11 Thread Martin.Mulone
There are some links in menu, that point to ex: web2py.com/book, in web2py mainsite. Perhaps we need to change to www.web2py.com.

[web2py] Re: Unable to call method in module

2010-12-11 Thread Martin.Mulone
checkrole.py --- class checkrole(): def mysession(name): username=name role=db.user(role,ldap=username) return role db.py - db=SQLDB('mysql://root:test...@localhost/web') modrole=local_import('checkrole') myrole = modrole.checkrole() db.define_table('user',Field('ldap'),Fie

[web2py] Suggestion to crud auth_user table for web2py wizard

2010-12-11 Thread Luther Goh Lu Feng
Firstly, I would like to express my heartfelt appreciation for the wizard. It saves me loads of time! Now on to my suggestion. My application requires admins to be able to CRUB users in auth_user table. The wizard currently does not create the respective actions and views for auth_user crud. I ask

[web2py] Unable to call method in module

2010-12-11 Thread Vikram
Hi I am trying to call a method in my module but always giving the below error Traceback (most recent call last): File "/home/vikramt/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home/vikramt/web2py/applications/myapp/controllers/ default.py", line

[web2py] web2py trunk versioning

2010-12-11 Thread Luther Goh Lu Feng
I did a fresh checkout of trunk using hg clone https://web2py.googlecode.com/hg/ web2py First thing I noticed was that the version date seems a bit off, given that there were already commits in Dec: Version 1.89.5 (2010-11-21 16:03:13) The next thing I saw was the upgrade prompt: upgrade now Ve