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.
Just curious. I don't use it, but I probably would if I thought I
could get a fast response from an expert.
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
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
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',
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
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
I think I can use the _create() and _insert() methods to achieve this.
@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
thanks Ivan - yes that's the post I was trying to find.
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
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.
-
I neglected to mention that I also have a requires:
db.mytable.groups.requires=IS_IN_DB(db,'groups.id','%
(name)s',multiple=True)
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.
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
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
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
>>
>>
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
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
> 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 --
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
Is there an SQL query that gives the desired result?
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
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
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...
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.
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
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
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
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
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
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
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
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
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
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
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
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".
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.
[
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
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
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)
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
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
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
http://web2py.com/book/default/chapter/08#Decorators
Line 8 of code snippet should be
@auth.requires_membership('agents')
not
@auth.requires_membership(agents)
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
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
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
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
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
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
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
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
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
>
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
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
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
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,
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
I use something like this (the = is equivalent to response.write)
{{
response.write(json(python_data_structure)+";", escape=False)
}}
> 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
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
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.
Wold love to test it with joins.
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.
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
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
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
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
70 matches
Mail list logo