> http://www.vimeo.com/2720410
thats quite what I want,
but there should be some extra table hiding somewhere?
like friendship...
(db.person.id==db.friendship.person)&(db.dog.id==db.friendship.dog)
how should I get/query the list of the owners, if I have just their
names in text field...
there
Got this on initial startup:
Traceback (most recent call last):
File "web2py.py", line 20, in
gluon.widget.start(cron=True)
TypeError: start() takes no arguments (1 given)
I re tried, it worked the second time. So, if anyone gets this, well
just retry. ;) Im on ubuntu hardy.
As for testi
Running into two problems:
1) The welcome.w2p tried to upload it, it says that it cannot be
installed (no error message)
2) I upload welcome.tar, works fine, I go to the website then go back
to the admin interface. It logs me out of the admin interface and when
I go to type in my password it says
On 18 May, 09:33, Jurgis wrote:
> >http://www.vimeo.com/2720410
> there might be 2 owners with same names...
That's why the tagging field stores record IDs not Names.
The main issue I have with this solution is that there's no
referential integrity (although deleted records do have their
referr
Jason,
Just a thought ... Did you put the response.menu in a model or in a
controller? I use the following rule of thumb to decide where to put
response.menu.
If all controllers have the same navigation, you can put response.menu
in a model, e.g. menu.py. If different controllers have different
Hi Folks! Thank you for yours answers!
In fact what a really want is to get db data from a previously defined
database on db.py.
I have a table there called "album" and I'd like to get those albums to
build a menu like on Maximo's example, but getting it from a table defined
on db.py.
Any ideas?
Why not define it as you would with any table? If it's already within
the database, add a migrate=False option :)
On May 18, 7:50 am, Tito Garrido wrote:
> Hi Folks! Thank you for yours answers!
>
> In fact what a really want is to get db data from a previously defined
> database on db.py.
> I h
(Python 2.6.2):
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34:
DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
Traceback (most recent call last):
File "./web2py.py", line 16, in
import gluon.import_all
File "/home/hosts/googleappengine/web2py-
diff did not help since excel files are considered binary format.
the copies are bigger than the original.xls. I also tried to copy the
copy and the 2nd copy is again bigger in size than the 1st copy.
interesting is that shutil.copyfileobj() and .write(read()) generate
identical files, both corrup
Is it possible to combine decorators using logical operators? e.g.
executing a function requires membership of the group 'site' or
membership of the group 'core'
@auth.requires_membership('site') OR auth.requires_membership('core')
Kind regards,
Annet
--~--~-~--~~~-
thanks everybody.
I think the best practice is quite clear.
On May 16, 1:26 am, Álvaro Justen [Turicas]
wrote:
> On Fri, May 15, 2009 at 4:30 PM, AchipA wrote:
> > I did a fair amount of testing on a couple of systems and the numbers
> > say that in real life, it's quite a significant gain exce
Although the modules are imported (from gluon.tools import *) I get
this error:
NameError: name 'Recaptcha' is not defined
On May 18, 9:56 am, mdipierro wrote:
> Please give it a try and let me know.
>
> Massimo
--~--~-~--~~~---~--~~
You received this message be
I checked Version 1.62.0 (2009-05-18 01:35:01) - look perfectly fine
to me (and my proxy).
Thank you !
To split a hair :-) I didn't see "routes.example.py" in the
distribution zipfile.
On 18 Mai, 01:53, mdipierro wrote:
> thanks for reporting this. I fixed it. The problem was indeed
>
> from g
Another thing... looking at the time you created the 1.62.0 release:
when do you sleep ?
Your book is excellent, thank you !
http://www.lulu.com/content/4968879
On 18 Mai, 15:42, Bernd das Brot wrote:
> I checked Version 1.62.0 (2009-05-18 01:35:01) - look perfectly fine
> to me (and my proxy)
Hello Massimo and others,
> field validators IS_IN_SET and IS_IN_DB trigger SELECT/OPTION
> automatically. You can do
>
> INPUT(_name='fieldname',requires=IS_IN_DB(db,'table.field','%
> (otherfieldname)s')
I checked that out.
It works well to define the items offered for selection.
But how do I d
Hello,
what are the best procedures to move an existing and working basic
application developed just on top of web2py into T3?
I have no idea how to modify my controllers into procedures in order
to get the same functionality in my wiki application.
For example, I have defined functions in my con
I will post more about it and make a video about new features
On May 18, 5:22 am, TheDude wrote:
> Got this on initial startup:
> Traceback (most recent call last):
> File "web2py.py", line 20, in
> gluon.widget.start(cron=True)
> TypeError: start() takes no arguments (1 given)
>
> I re t
Can you please repeat this step by step. I cannot reproduce it.
binary or source? which python version?
On May 18, 5:37 am, TheDude wrote:
> Running into two problems:
> 1) The welcome.w2p tried to upload it, it says that it cannot be
> installed (no error message)
> 2) I upload welcome.tar, wor
On May 18, 7:28 am, notabene wrote:
> (Python 2.6.2):
>
> /var/lib/python-support/python2.6/MySQLdb/__init__.py:34:
> DeprecationWarning: the sets module is deprecated
> from sets import ImmutableSet
> Traceback (most recent call last):
> File "./web2py.py", line 16, in
> import gluon.
The bug is in a file:
gluon/contrib/openauth.py
which is not provided by web2py. You must have put there.
web2py thinks is its own file, tries to pre-import it for speed and
fails.
anyway, you should not be getting an error. Fixing in trunk.
On May 18, 7:28 am, notabene wrote:
> (Python 2.6
what do you mean by sleep? ;-)
On May 18, 8:48 am, Bernd das Brot wrote:
> Another thing... looking at the time you created the 1.62.0 release:
> when do you sleep ?
>
> Your book is excellent, thank you !
>
> http://www.lulu.com/content/4968879
>
> On 18 Mai, 15:42, Bernd das Brot wrote:
>
> >
You must create your own widget do to this. If I have time I will post
an example.
Massimo
On May 18, 9:16 am, Timmie wrote:
> Hello Massimo and others,
>
> > field validators IS_IN_SET and IS_IN_DB trigger SELECT/OPTION
> > automatically. You can do
>
> > INPUT(_name='fieldname',requires=IS_IN
Timmie,
lot of the code of T3 is deprecated since has been moved into web2py
core.
Can you wait a couple of more weeks?
Massimo
On May 18, 9:23 am, Timmie wrote:
> Hello,
> what are the best procedures to move an existing and working basic
> application developed just on top of web2py into T3?
no with current decorators.
I could implement it but only with "|" not "or" since "or" cannot be
overloaded in Python (why?).
Massimo
On May 18, 7:49 am, annet wrote:
> Is it possible to combine decorators using logical operators? e.g.
> executing a function requires membership of the group 'si
Thank you. I will look into this later today.
On May 18, 7:35 am, Hans
wrote:
> diff did not help since excel files are considered binary format.
> the copies are bigger than the original.xls. I also tried to copy the
> copy and the 2nd copy is again bigger in size than the 1st copy.
> interesti
proper many2many requires joins. GAE does not support JOINs so the
multiple=True option provides a short. Technically it does not provide
referential integrity (because the database does not understand it)
but the validator takes care of broken references and removes them.
On May 18, 5:40 am, Fra
Suppose I have this table defined:
db.define_table('category',
SQLField('title'),
SQLField('parent','reference category'))
db.category.parent.requires=IS_NULL_OR(IS_IN_DB (db,'category.id','%
(id)s'))
And I then use the administrative interface to insert a
> You must create your own widget do to this.
Thanks for this info. I will try to learn widgets.
> If I have time I will post an example.
This would be very neat.
I think this is a typical web form function...
--~--~-~--~~~---~--~~
You received this message because
Yes, here is how
db.category.parent.requires=IS_NULL_OR(IS_IN_DB (db,'category.id','%
(title)s'))
On May 18, 9:39 am, James Booker wrote:
> Suppose I have this table defined:
>
> db.define_table('category',
> SQLField('title'),
> SQLField('parent','refere
> lot of the code of T3 is deprecated since has been moved into web2py
> core.
> Can you wait a couple of more weeks?
Thanks for this very useful information. If I had known this before...
So you wouldn't recommend to base on T3 at all?
Can you put a warning on the corresponding Launchpad sites?
This is a problem. I fixed and posted 1.62.1. Thanks for letting me
know.
On May 18, 8:34 am, Vidul Petrov wrote:
> Although the modules are imported (from gluon.tools import *) I get
> this error:
>
> NameError: name 'Recaptcha' is not defined
>
> On May 18, 9:56 am, mdipierro wrote:
>
> > Ple
Thanks for the prompt reply!
On May 18, 3:47 pm, mdipierro wrote:
> Yes, here is how
>
> db.category.parent.requires=IS_NULL_OR(IS_IN_DB (db,'category.id','%
> (title)s'))
>
> On May 18, 9:39 am, James Booker wrote:
>
> > Suppose I have this table defined:
>
> > db.define_table('category',
> >
I fixed a couple of issues posted during the night and reposted
1.62.1. Please let me know if you have any problem.
New features:
- There is a new "welcome" scaffoling app that has Authentication,
Authorization, Crud, Services, and Menu by default.
- There is a new file format for web2py apps (
Hello,
how can I automatically use the default labels of database fiels
(defined in db.py) as table headers?
As such:
SQLTABLE(rows_obj, headers=default_labels)
* Why would web2py not automaticaly use the lables defined in db.py
I tried:
headers = {}
for col in mydb.colnames:
headers.update
You can do
headers=dict([(c,db[c.split('.')[0]][c.split('.')[1]].label) for c in
rows.colnames])
SQLTABLE(rows, headers=headers)
Not there is a reason this is not done by default:
- rows may be a result of a joins (thus two columns may end up with
the same name)
- rows may contain an aggregate (
Hello,
may it be possible in the next version to add a fields argument to
SQLTABLE?
This could be very convenient for generating a table with a selected
number of fields.
This is already implemented in the SQLFORM.
Regards,
Timmie
Below information from the docstrings:
SQLFORM?
fields: a lis
> headers=dict([(c,db[c.split('.')[0]][c.split('.')[1]].label) for c in
> rows.colnames])
> SQLTABLE(rows, headers=headers)
Thanks!
> Not there is a reason this is not done by default:
I can see. But what about an optional argument?
I see myself repeating this a lot...
--~--~-~--~~---
Works as desired!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubs
The fact is it should re redundant and more complex to use than the
current solution.
Currently you can select the fields returned by the select before
passing it to SQLTABLE
rows=db(...).select(field1, field2)
table=SQLTABLE(rows) # or table=rows works the same
return dict(table=table)
In this
Please include also arguments like:
hide_id = True|False
linkto_fields = [list_of_fields]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googl
SQLTABLE is a convenience function. Not something that you should use
in production.
I suggest you build your tables explicitly:
{{for row in rows:}}
{{=row.field}}...
{{pass}}
there is no way we can make SQLTABLE as flexible as this. Explicit
looping is very easy anyway.
Massimo
On May
On May18, 11:10pm, mdipierro wrote:
> I fixed a couple of issues posted during the night and reposted
> 1.62.1. Please let me know if you have any problem.
Looks great! And would you mind to also include the
web2py_no_console.exe into web2py_win.zip? Even when you are manually
updating library.z
Massimo, what did you fix? Just the recaptcha? Also, Im using python
2.5 if that helps :)
On May 18, 10:57 am, mdipierro wrote:
> This is a problem. I fixed and posted 1.62.1. Thanks for letting me
> know.
>
> On May 18, 8:34 am, Vidul Petrov wrote:
>
> > Although the modules are imported (from
Hello,
I want to achieve the following:
* Show all records or a search result of records as a table.
* The first column of the table shall contain a checkbox.
* The usere shall select those records, he/she is interested in by
checking the boxes
* The user shall click on: show details for selected
Hello,
Is there a example on how to change a form dynamically from
readonly=True to readyonly=False?
Can this just be done by sending the the appropriate parameters via
the URL?
Timmie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Not sure I understand...
you can do
def read_sometable(): return dict(form=crud.read(db.sometable,
request.args[0]))
def update_sometable(): return dict(form=crud.update(db.sometable,
request.args[0]))
You can also use turn off individual fields everywhere
def update_sometable_partial():
Can you build the .exe and email it to me.
On May 18, 11:15 am, Iceberg wrote:
> On May18, 11:10pm, mdipierro wrote:
>
> > I fixed a couple of issues posted during the night and reposted
> > 1.62.1. Please let me know if you have any problem.
>
> Looks great! And would you mind to also include
I fixed the recapcha and failure to import files that do not belong to
web2py.
I do not know of any other problem.
Massimo
On May 18, 11:16 am, TheDude wrote:
> Massimo, what did you fix? Just the recaptcha? Also, Im using python
> 2.5 if that helps :)
>
> On May 18, 10:57 am, mdipierro wrote
def do_what_timmie_asks():
rows=db(db.sometable.id>0).select()
db.sometable.id.represent=lambda id: DIV(id,INPUT
(_type='checkbox',_name='check%i'%id))
form=FORM(SQLTABLE(rows),INPUT(_type='submit'))
if form.accepts(request.vars):
pass # or so something not sure wha
Other new features are
- admin interface reads web2py twits (perhaps we'll change to RSS but
now his works fine)
- choice of third party authentication mechanisms including BASIC,
GMAIL, LDAP
from gluon.contrib.login_methods import *
auth.login_method.append(email_auth()) ### this will check cre
Replying this to everyone, so that stakeholders can know following
notes.
Note:
web2py_no_console.exe has exactly same command line switches as the
standard web2py.exe, however some are just meaningless in a "no-
console" environment, such as "-h".
A typical usage is:
web2py_no_console.exe -a
http://www.reddit.com/r/programming/comments/8lco9/whats_new_and_unique_in_web2py_162/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegr
I will probably post it tonight.
Massimo
On May 18, 1:05 pm, Iceberg wrote:
> Replying this to everyone, so that stakeholders can know following
> notes.
>
> Note:
> web2py_no_console.exe has exactly same command line switches as the
> standard web2py.exe, however some are just meaningless in a
I have the following patch for the SQL Schema to web2py db schema
conversion utility where the original code is at:
http://mdp.cti.depaul.edu/AlterEgo/default/download/document.file.075074495458.py/auto.py
This patch corrects these auto.py issues:
1. spelling error: reponse.flash should be re
> def do_what_timmie_asks():
Made me laugh ;-)
Sorry, for posting that many questions.
I did some testing / design. And these issues came up.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" g
there are few things wrong with this block on page 29. Where is the
canonical place to issue notice of small errors?
>>> class MyList
(object)# no :
>>> def __init__(self,*a):
self.a=a# self.a becomes a tup
Hello,
> Additionaly, may I ask for a road map of
> * web2py: target date and features
> * tier 2/3/4: target and feautures.
>
> => This would be really useful. I need to make some planning decisions
> and also get internal approval for further developing the application.
> If things are easy to
Hello,
I haven't done anything with web2py in quite a while, but am still
curious. I keep skulking back
to check on things. I am quite interested in the "built-in"
authentication you have added to the
"welcome" scaffolding package. Problem is when I update my version of
web2py (using sources
o
can you please email it to me as an attachment?
On May 18, 1:52 pm, dlypka wrote:
> I have the following patch for the SQL Schema to web2py db schema
> conversion utility where the original code is at:
> http://mdp.cti.depaul.edu/AlterEgo/default/download/document.file.075...
>
> This patch cor
No problem at all. This is a place for asking questions. The more the
better. I do what I can to keep up.
Massimo
On May 18, 2:24 pm, Tim Michelsen wrote:
> > def do_what_timmie_asks():
>
> Made me laugh ;-)
>
> Sorry, for posting that many questions.
> I did some testing / design. And these is
thanks!
On May 18, 2:41 pm, Skylar Saveland wrote:
> there are few things wrong with this block on page 29. Where is the
> canonical place to issue notice of small errors?
>
>>>> class MyList
> (object)# no :
>>>> def __init__(self,*a)
They are not supposed to be upgraded unless you do
--upgrade=yes
I am surprised it does not work. Does it work for other people?
Massimo
On May 18, 3:29 pm, RyeBread wrote:
> Hello,
>
> I haven't done anything with web2py in quite a while, but am still
> curious. I keep skulking back
> to ch
But I would have to maintain two identical pieces of code... :-/
On Mon, May 18, 2009 at 8:59 AM, TheDude wrote:
>
> Why not define it as you would with any table? If it's already within
> the database, add a migrate=False option :)
>
> On May 18, 7:50 am, Tito Garrido wrote:
> > Hi Folks! Than
you know like when you're at the keyboard when images of dancing CSS
menus, like fairies, flitter accross your screen... and time seems to stand
still, as if moments have only gone by, and suddenly - the sun is up outside
your window and your son's voice comes from the distance
"Papa?.
h. do you need this? Couldn't your decorator w/ arguments be
written:
@auth.requires_any_membership( *list )
see, for example, http://www.artima.com/weblogs/viewpost.jsp?thread=240845
On Mon, May 18, 2009 at 9:33 AM, mdipierro wrote:
>
> no with current decorators.
> I could implement
Hello,
congratulations for this release.
> - There is a new {{=MENU(response.menu)}} helper
Can you show an example for this?
In the Manual it says on page 129:
response.menu=[['Google',False','http://www.google.com'],
2 ['Index',True,URL(r=request,f='index')]]
Thanks in advance,
Timmie
--~-
look into the new welcome app. There are three menus defined in models/
menu.py They are used in views/layout.html. The CSS is from public
domain but there is a link to an article about it in static/base.css
Massimo
On May 18, 5:25 pm, Tim Michelsen wrote:
> Hello,
> congratulations for this re
http://bidegg.com
The author told they hosted 1 auctions to date. Congratulations!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googl
I knew I was forgetting somebody.
Thanks to Sergey for help with Oracle and Fran for LDAP support.
Massimo
On May 18, 12:36 pm, mdipierro wrote:
> Other new features are
>
> - admin interface reads web2py twits (perhaps we'll change to RSS but
> now his works fine)
> - choice of third party au
*Warning:DO NOT REGISTER / GIVE MONEY TO THIS SITE*
It appears to be fraudulent.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googl
For now I removed the link from the list.
I hope to hear back from the author about this.
Massimo
On May 18, 9:40 pm, Yarko Tymciurak wrote:
> *Warning: DO NOT REGISTER / GIVE MONEY TO THIS SITE*
>
> It appears to be fraudulent.
--~--~-~--~~~---~--~~
You r
Hello.
Reading the SQLFORM sources doesn't give me any insight on
how to do custom form layout w/o modifying web2py source
AND writing extensive wrappers around it.
I found these pages while googling:
http://groups.google.com/group/web2py/browse_thread/thread/39c0bd5e01860eb/fecc0f6edbb3885f?lnk
Kudos to Yarko for discovering this.
http://bidegg.com is not a web2py site, it does no even say it is, it
is A SCAM.
But I fell for the scam. I received an email from somebody claiming
that it was a web2py site. The site looked legit but I did not try
because I do not bid online. I fell for it
Kudos to Yarko for discovering this.
To the best of our knowledge http://bidegg.com is not a web2py site,
it does no even say it is, it is A SCAM.
But I fell for the scam. I received an email from somebody claiming
that it was a web2py site. The site looked legit but I did not try
because I do n
Also - if you did try this (e.g. register for this site), please notify
PayPal, and file a complaint at http://ic3.gov
This is most likely an identity theft scam, so it is important follow
through.
On Mon, May 18, 2009 at 11:06 PM, mdipierro wrote:
>
> Kudos to Yarko for discovering this.
>
>
The author emailed me and claims it is not a scam.
I am out of this!
Massimo
On May 18, 11:16 pm, Yarko Tymciurak wrote:
> Also - if you did try this (e.g. register for this site), please notify
> PayPal, and file a complaint athttp://ic3.gov
>
> This is most likely an identity theft scam, so
76 matches
Mail list logo