[web2py:33800] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
I made a simple patch that lets this work and is seemingly backwards compatible (didn't break my apps anyway). It basically automatically does a select for any reference fields so you can do this (db.things has a reference field 'author' to auth_user in this example): record =

[web2py:33801] Re: Http Error 500

2009-10-27 Thread Felipe
Dont know... because in my wsgiserver.py there is no such line ... and yes, I can browse the site without flex On 26 out, 13:04, mdipierro mdipie...@cs.depaul.edu wrote: Is this related to the issue?http://code.google.com/p/web2py/issues/detail?id=60can=1 Massimo On Oct 26, 9:58 am,

[web2py:33802] Re: Layout and css in web2py

2009-10-27 Thread annet
Thank you both for your suggestions, setting the margins and padding on the table elements solved the problem. Displaying the original views and css's in Internet Explorer 8 also solved the problem, but I am afraid not many of my application's visitors run the latest version of IE. Kind

[web2py:33803] nicEdit and validation

2009-10-27 Thread annet
When I validate my pages using the w3cvalidator services, it appears that using nicEdit introduces a lot of errors. Further more, dragging and dropping texts in nicEdit enabled textareas also creates a mess. I wonder whether there is a good alternative for nicEdit, which is as light as nicEdit

[web2py:33804] Re: FORM with self located fields and data from two tables

2009-10-27 Thread znafets
Massimo, is this sufficient to understand the problem, or should I describe further ? ciao Stefan On 26 Okt., 19:57, znafets znaf...@googlemail.com wrote: Massimo, I am sorry, I will try to be more explicite here: the model (two tables user and addr) db.define_table('user',            

[web2py:33805] Re: nicEdit and validation

2009-10-27 Thread mdipierro
The new web2py 1.68.2 no longer uses nicedit but it still has problems. On Oct 27, 6:32 am, annet annet.verm...@gmail.com wrote: When I validate my pages using the w3cvalidator services, it appears that using nicEdit introduces a lot of errors. Further more, dragging and dropping texts in

[web2py:33806] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
This is not backward compatible, it also make a hidden select every time you access a record. So if you select 100 records that have reference and loop over them, you'd be making 100 additional selects. If this is what you want to do, I think it is better to be explicit or do a join. On Oct 27,

[web2py:33807] Re: Making a reference to an auth_user

2009-10-27 Thread Wiiboy
Cool. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to

[web2py:33808] Re: Web2py concerns

2009-10-27 Thread carlo
seldom I use the web editor myself, but I admit it is a facility when you are at customers and you have to make a change on the fly. As other said, there is a lot of magic in web2py but fortunately you can tweek the environment the way you like. carlo On 24 Ott, 18:50, Doxaliber

[web2py:33810] Plugins again. In trunk response.meta, response.files

2009-10-27 Thread mdipierro
Yesterday I coded the following reservation/booking app: http://web2py.com/examples/static/web2py.app.booking.w2p In the process I realized it would be nice if a plugin could setup more meta ... and style... and script... in the response header, conditionally. I have therefore deprecated

[web2py:33811] Re: backward compatibility

2009-10-27 Thread Renato-ES-Brazil
I think that something needs to be doing to keep the principle (There should be only one way of doing things). Some warnings would be a good start. :-) On 26 out, 14:14, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Mon, Oct 26, 2009 at 13:42, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:33813] Re: backward compatibility

2009-10-27 Thread Thadeus Burgess
I suggest a gluon/deprecated.py. This file would hold all deprecated functions/classes. In say your configuation file, say options_std.py you could set what version of web2py to run under, and if the version is less that what the version currently is, it will grab and replace the appropriate

[web2py:33815] important announcement from Amazon

2009-10-27 Thread mdipierro
http://www.cloudave.com/link/amazon-releases-relational-database-as-a-service-my-initial-thoughts --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:33816] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
Too bad, other DAL/ORMs have this. SQLAlchemy calls it a backref and django calls it a reverse foreign key manager. What if Field had a 'select_refs=False' attribute so it was configurable? On Oct 27, 7:32 am, mdipierro mdipie...@cs.depaul.edu wrote: This is not backward compatible, it also

[web2py:33817] Re: backward compatibility

2009-10-27 Thread Thadeus Burgess
I agree :P Worth a shot though haha -Thadeus On Tue, Oct 27, 2009 at 11:18 AM, mdipierro mdipie...@cs.depaul.edu wrote: I do not think this feasible. On Oct 27, 11:15 am, Thadeus Burgess thade...@thadeusb.com wrote: I suggest a gluon/deprecated.py. This file would hold all deprecated

[web2py:33818] Re: Making a reference to an auth_user

2009-10-27 Thread Thadeus Burgess
I would like this. select_refs would get passed to the select() function, this way I did not have to write a join. Perhaps it could be called join_foreign, defaulted to False Say a student is assigned to a teacher. db(db.students.student_id==1102926).select(foreignkey_join=True) yeilds

[web2py:33819] Re: FORM with self located fields and data from two tables

2009-10-27 Thread znafets
Yeah, but this does not work. The call form.accept will throw an exception KeyError: ('no_table',) File /usr/lib/python2.5/threading.py, line 462, in __bootstrap self.__bootstrap_inner() File /usr/lib/python2.5/threading.py, line 486, in __bootstrap_inner self.run() File

[web2py:33820] Re: FORM with self located fields and data from two tables

2009-10-27 Thread Thadeus Burgess
Using custom forms is the simplest way to access the fields. http://web2py.com/AlterEgo/default/show/205 -Thadeus On Tue, Oct 27, 2009 at 11:33 AM, znafets znaf...@googlemail.com wrote: Yeah, but this does not work. The call form.accept will throw an exception KeyError: ('no_table',)

[web2py:33821] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
I have a better solution: class A(int): pass x=A(100) print x 100 x+40 140 isinstance(x,int) True Yet x in an object and can have attributes. We can define a new class that works like and the reference id belongs to this class. When you request an attribute of it, you get the attribute of

[web2py:33822] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
Something like this? class DALRef(int): ... def __init__(self,table,value): ... int.__init_(self,value) ... self._table=table ... self._record=None ... def __getattr__(self,key): ... if not self._record: ...

[web2py:33823] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
Can you give an example of the usage? On Oct 27, 11:43 am, mdipierro mdipie...@cs.depaul.edu wrote: Something like this? class DALRef(int): ...     def __init__(self,table,value): ...             int.__init_(self,value) ...             self._table=table ...             self._record=None

[web2py:33824] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
exactly as you suggested, you can do: record = db(db.tablename.id==1).select()[0] print record.author.email but print record.author is an integer. On Oct 27, 12:46 pm, mr.freeze nat...@freezable.com wrote: Can you give an example of the usage? On Oct 27, 11:43 am, mdipierro

[web2py:33826] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
Sorry, I meant the table/field declaration. Would it look any different? On Oct 27, 12:48 pm, mdipierro mdipie...@cs.depaul.edu wrote: exactly as you suggested, you can do:     record = db(db.tablename.id==1).select()[0]     print record.author.email but     print record.author is an

[web2py:33825] Re: Making a reference to an auth_user

2009-10-27 Thread Thadeus Burgess
How would you enable/disable the functionality? Like you said, for some queries, you would not want to get the references. -Thadeus On Tue, Oct 27, 2009 at 12:48 PM, mdipierro mdipie...@cs.depaul.edu wrote: exactly as you suggested, you can do: record =

[web2py:33827] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
Give it a try. It is in trunk. Here is an example: $ python web2py.py -S mytest db=DAL('sqlite://storage') db.define_table('user',Field('name')) db.define_table('address',Field('city'),Field('user',db.user)) db.user.insert(name=max) 1 db.address.insert(user=1,city=Chicago) 1

[web2py:33828] Re: FORM with self located fields and data from two tables

2009-10-27 Thread mdipierro
Now I see the problem better. One of the validators is failing. Can you try remove them and one by one and check which one? On Oct 27, 11:33 am, znafets znaf...@googlemail.com wrote: Yeah, but this does not work. The call form.accept will throw an exception KeyError: ('no_table',) File

[web2py:33829] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
Also in trunk now: max=db.user[1] max DALStoarge {'name':'max'} print max.id, max.name 1, max db.address.insert(user=max,city=Chicago) for row in db().select(db.address.ALL): ... print row.user.name, row.city ... max Chicago On Oct 27, 1:09 pm, mdipierro mdipie...@cs.depaul.edu

[web2py:33830] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
So far so good! I have a larger app I can test at home. I'll let you know if it breaks anything. Thanks. On Oct 27, 1:09 pm, mdipierro mdipie...@cs.depaul.edu wrote: Give it a try. It is in trunk. Here is an example: $ python web2py.py -S mytest db=DAL('sqlite://storage')

[web2py:33831] Eclipse and avoiding Iron Python advice sort

2009-10-27 Thread Carl
hi, I've been developing on Win XP, Python 2.5, Eclipse Ganymede, PyDev Web2py... targeting GAE... and that was going well. I've installed Windows 7 and taken the opportunity to install Eclipse Galileo and the latest PyDev. PyDev supports Iron Python, a fact I thought I could ignore. But

[web2py:/] Re: Eclipse and avoiding Iron Python advice sort

2009-10-27 Thread Wes James
On Tue, Oct 27, 2009 at 1:01 PM, Carl carl.ro...@gmail.com wrote: snip But when I try and set-up PYTHONPATH Eclipse tells me it needs Python 2.6! I need to stick with v2.5 because my target is GAE which uses v2.5. Why don't you use 2.6, but code for 2.5? Has anyone already walked this

[web2py:33833] Re: Eclipse and avoiding Iron Python advice sort

2009-10-27 Thread mr.freeze
I think they're saying you need IronPython 2.6 RC1 to use it with PyDev (because previous versions of IronPython don't support sys._getframe()) On Oct 27, 2:01 pm, Carl carl.ro...@gmail.com wrote: hi, I've been developing on Win XP, Python 2.5, Eclipse Ganymede, PyDev Web2py... targeting

[web2py:33834] More experimental stuff in trunk

2009-10-27 Thread mdipierro
Simple example: db=DAL('sqlite://test') db.define_table('purchase', Field('item'), Field('unit_price','double'), Field('quantity','integer')) db.purchase.insert(item='Box',unit_price=15,quantity=3) rows=db().select(db.purchase.ALL) class

[web2py:33835] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
should this thing be called meta? interface? extension? On Oct 27, 2:26 pm, mdipierro mdipie...@cs.depaul.edu wrote: Simple example: db=DAL('sqlite://test') db.define_table('purchase',                 Field('item'),                 Field('unit_price','double'),                

[web2py:33836] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
Bug! This only works because address.user is named the same as the user table. If they have different names (address.user_id for example) it will fail. I think the 'referee' needs to be passed to DALRef. On Oct 27, 1:09 pm, mdipierro mdipie...@cs.depaul.edu wrote: Give it a try. It is in trunk.

[web2py:33837] Re: Making a reference to an auth_user

2009-10-27 Thread mdipierro
Did you try it? It think it does that On Oct 27, 2:42 pm, mr.freeze nat...@freezable.com wrote: Bug! This only works because address.user is named the same as the user table. If they have different names (address.user_id for example) it will fail. I think the 'referee' needs to be passed to

[web2py:33838] Re: More experimental stuff in trunk

2009-10-27 Thread Thadeus Burgess
Not meta, too confusing with django stuff. How about expression, makes much more sense. That is what it is actually referred to when talking about SQL. Access calls them expressions as well. -Thadeus On Tue, Oct 27, 2009 at 2:32 PM, mdipierro mdipie...@cs.depaul.edu wrote: should this

[web2py:33839] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
we normally user expressions to refer to things like this db(query).update(field=db.table.field+1) How about interface? On Oct 27, 3:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: Not meta, too confusing with django stuff. How about expression, makes much more sense. That is what it is

[web2py:33840] Re: Eclipse and avoiding Iron Python advice sort

2009-10-27 Thread Carl
thanks; I saw the sys._frame post but it didn't hit me that this was a showstopper. but it is, isn't it ;) thanks again On Oct 27, 7:16 pm, mr.freeze nat...@freezable.com wrote: I think they're saying you need IronPython 2.6 RC1 to use it with PyDev (because previous versions of IronPython

[web2py:33841] Re: Eclipse and avoiding Iron Python advice sort

2009-10-27 Thread Carl
I certainly could run one version and write for another but I reckon there go demons ;) On Oct 27, 7:09 pm, Wes James compte...@gmail.com wrote: On Tue, Oct 27, 2009 at 1:01 PM, Carl carl.ro...@gmail.com wrote: snip But when I try and set-up PYTHONPATH Eclipse tells me it needs Python

[web2py:33842] Re: Making a reference to an auth_user

2009-10-27 Thread mr.freeze
It works. Accidentally reverted to previous commit. Back to the coffee shop for me. On Oct 27, 2:50 pm, mdipierro mdipie...@cs.depaul.edu wrote: Did you try it? It think it does that On Oct 27, 2:42 pm, mr.freeze nat...@freezable.com wrote: Bug! This only works because address.user is

[web2py:33843] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
I am going with virtualfields On Oct 27, 3:19 pm, mdipierro mdipie...@cs.depaul.edu wrote: we normally user expressions to refer to things like this db(query).update(field=db.table.field+1) How about interface? On Oct 27, 3:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: Not meta,

[web2py:33844] Re: Eclipse and avoiding Iron Python advice sort

2009-10-27 Thread Carl
'fraid it's Python 2.6 that pydev 1.5 requires. I'll just have to use an older version of pydev and see if it works with the latest edition of Eclipse. On Oct 27, 7:16 pm, mr.freeze nat...@freezable.com wrote: I think they're saying you need IronPython 2.6 RC1 to use it with PyDev (because

[web2py:33845] Re: More experimental stuff in trunk

2009-10-27 Thread Thadeus Burgess
Basically what we are doing is SELECT COUNT(*) AS Number of Orders, SUM(quantity)AS Total Number of Items Purchased, AVG(quantity)AS Average Number of Items Purchased FROM orders; What is the correct terminology for AS statement? Some research suggest ALIAS is the most accurate term. I think

[web2py:33846] Re: Web2py concerns

2009-10-27 Thread Renato-ES-Brazil
Massimo, Do you found the error on editor? :-) On 27 out, 12:26, carlo syseng...@gmail.com wrote: seldom I use the web editor myself, but I admit it is a facility when you are at customers and you have to make a change on the fly. As other said, there is a lot of magic in web2py but

[web2py:33847] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
No no. We are not doing that. The new virtualfields are compute by web2py, not by the database. Massimo On Oct 27, 3:55 pm, Thadeus Burgess thade...@thadeusb.com wrote: Basically what we are doing is SELECT COUNT(*) AS Number of Orders, SUM(quantity)AS Total Number of Items Purchased,

[web2py:33848] Re: More experimental stuff in trunk

2009-10-27 Thread Thadeus Burgess
Ok, I was about to stand my ground, however I now agree with you. virtualfields is fine to me, as long as our DAL gets support for native SQL aggregates (liek SUM, AVG, etc). And when the DAL gets that, it leaves open the option to assign true aliases that are tied into the SQL query. aliases =

[web2py:33849] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
On Oct 27, 4:35 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ok, I was about to stand my ground, however I now agree with you. virtualfields is fine to me, as long as our DAL gets support for native SQL aggregates (liek SUM, AVG, etc). The DAL does that already. Just not all of them.

[web2py:33850] Re: More experimental stuff in trunk

2009-10-27 Thread Thadeus Burgess
I really need to read that thing :) However, that syntax is chaotic. That row._extra syntax makes me cringe. If it works it works, but I think it could be ***better***. Why can it not be something like. rows = db(query).select(sum(field), avg(field)) # I just psuedocoded this. Like i usually do

[web2py:33851] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
I do not like the _extra either and I am thinking of a way to get rid of it but it is all but chaotic. Consider this example db.define_table('a',Field('b','double')) e=(db.a.b.max()-3)*(db.a.b.min()+5) rows = db().select(e) row=rows.first() print row._extra[e] the _extra prevents conflicts

[web2py:33852] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
_extra literally means anything returned by the query that is not a table field. On Oct 27, 5:55 pm, mdipierro mdipie...@cs.depaul.edu wrote: I do not like the _extra either and I am thinking of a way to get rid of it but it is all but chaotic. Consider this example

[web2py:33853] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
In trunk now: db.define_table('a',Field('b','double')) e=(db.a.b.max()-3)*(db.a.b.min()+5) rows = db().select(e) row=rows.first() print row._extra[e] can now be written as: db.define_table('a',Field('b','double')) e=(db.a.b.max()-3)*(db.a.b.min()+5) rows = db().select(e) row=rows.first() print

[web2py:33854] video explaining some of the new stuff in trunk

2009-10-27 Thread mdipierro
http://www.vimeo.com/7296755 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to

[web2py:33855] Google Groups is Dead

2009-10-27 Thread Richard
Interesting article from John Resig of JQuery fame: http://ejohn.org/blog/google-groups-is-dead/ Is it really this bad Massimo? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

[web2py:33856] Re: Python 3.1

2009-10-27 Thread Timbo
Just so you guys know, I'm watching Python 3.x very closely and in some places helping it along. Here are the things that need to happen before Python 3.x becomes a viable web-platform (for a new project): - The email module need to be fixed (it hasn't been rebuilt to handle the unicode

[web2py:33857] Re: GAE caching

2009-10-27 Thread Richard
is it possible to get web2py on GAE as responsive as Slicehost? (See Thadeus' app: surrenderthebooty.thadeusb.com) On Oct 26, 4:42 pm, Richard richar...@gmail.com wrote: I noticed my GAE app is slow for the first webpage I load, but snappy for subsequent webpages. So it seems there is a

[web2py:33858] Re: Google Groups is Dead

2009-10-27 Thread mdipierro
We are 10x smaller so I guess we get 10x less spam. We get about 50-100 spam emails/day. We block the emails used by spammers. We had only one reported case of actual user being spoofed. That did cause some trouble for the user. I am not sure there are much better options. Massimo On Oct 27,

[web2py:33859] Re: GAE caching

2009-10-27 Thread mdipierro
I do not know. On Oct 27, 6:51 pm, Richard richar...@gmail.com wrote: is it possible to get web2py on GAE as responsive as Slicehost? (See Thadeus' app: surrenderthebooty.thadeusb.com) On Oct 26, 4:42 pm, Richard richar...@gmail.com wrote: I noticed my GAE app is slow for the first

[web2py:33860] Re: Making a reference to an auth_user

2009-10-27 Thread Wiiboy
Awesome. This is exactly how I hoped it would work (and exactly how Django, my ex-framework did it) =) Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email

[web2py:33861] Re: Google Groups is Dead

2009-10-27 Thread Jonathan Lundell
On Oct 27, 2009, at 4:56 PM, mdipierro wrote: We are 10x smaller so I guess we get 10x less spam. We get about 50-100 spam emails/day. We block the emails used by spammers. We had only one reported case of actual user being spoofed. That did cause some trouble for the user. I am not sure

[web2py:33862] Re: Looking for a simple reservation system

2009-10-27 Thread Brian M
Very cool. The non-profit I work for has been looking for a scheduling system for volunteers and this may give us a start if we decide to do our own. As others have said, every resource ends up with different requirements - we for example would have pre-defined time slots that can hold a limited

[web2py:33863] Re: Looking for a simple reservation system

2009-10-27 Thread Brian M
Well the new strftime only partly fixes it. It shows up on just the one day but it's still in the all day area rather than showing up in the correct timeslot if you go to single day view. Brian On Oct 27, 7:38 pm, Brian M bmere...@gmail.com wrote: Very cool. The non-profit I work for has been

[web2py:33864] Re: video explaining some of the new stuff in trunk

2009-10-27 Thread mr.freeze
Nice! On Oct 27, 6:31 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.vimeo.com/7296755 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:33865] Re: Looking for a simple reservation system

2009-10-27 Thread Brian M
It looks like you have to specify whether or not each event is allDay otherwise it assumes that it is. So if you're going to specifically allow people to do all day events, you may want to have a checkbox to flag that and add that check into the template. Here's a modified script that won't show

[web2py:33866] Re: video explaining some of the new stuff in trunk

2009-10-27 Thread Brian M
Interesting, when is this likely to officially appear? On Oct 27, 6:31 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.vimeo.com/7296755 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py:33867] Re: More experimental stuff in trunk

2009-10-27 Thread Thadeus Burgess
On the same track that I was thinking. However this does not work like I would expect. e = (db.a.b * 10) f = (db.a.b.max() * db.a.b.min()) rows = db(db.a.id 0).select(db.a.ALL, e, f) return dict(rows=SQLTABLE(rows)) For something like the above, f would only have one row, and e

[web2py:33868] Re: GAE caching

2009-10-27 Thread Thadeus Burgess
run a cron on your local computer to urllib the page ? :) All I can come up with. It is just one of the ways GAE works, when a page is no longer needed, it kills the processes until their needed again. Had this problem with dreamhost before they supported Passenger -Thadeus On Tue, Oct 27,

[web2py:33869] Re: Making a reference to an auth_user

2009-10-27 Thread Wiiboy
How about a datetime field?: Field(date, datetime, default=request.now) Right? Mine are ending up blank. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email

[web2py:33871] Re: Making a reference to an auth_user

2009-10-27 Thread Thadeus Burgess
It is, however when you submit your form (crud.create), even if you do not enter anything, it submits , so basically overwriting your default. db.table.date.readable= False db.table.date.writable = False So that it will not show up in crud.create. There is more information on this in the

[web2py:33872] Re: Looking for a simple reservation system

2009-10-27 Thread Thadeus Burgess
Tomorrow I will. -Thadeus On Mon, Oct 26, 2009 at 10:45 PM, mdipierro mdipie...@cs.depaul.edu wrote: Can you help me with this? http://web2py.com/examples/static/web2py.app.booking.w2p Almost everything works except the jquery calendar widget does not display events. I do not know

[web2py:33873] Re: video explaining some of the new stuff in trunk

2009-10-27 Thread mdipierro
If people like it and no major objections, Thursday. On Oct 27, 9:17 pm, Brian M bmere...@gmail.com wrote: Interesting, when is this likely to officially appear? On Oct 27, 6:31 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.vimeo.com/7296755

[web2py:33874] Re: video explaining some of the new stuff in trunk

2009-10-27 Thread mengu
massimo, the both features are great, though the first feature is needed more, what made me excited is the virtualfields feature. thank you. On Oct 28, 2:31 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.vimeo.com/7296755 --~--~-~--~~~---~--~~ You

[web2py:33875] Re: Google Groups is Dead

2009-10-27 Thread mengu
i think a forum would be more helpful and better. On Oct 28, 2:56 am, mdipierro mdipie...@cs.depaul.edu wrote: We are 10x smaller so I guess we get 10x less spam. We get about 50-100 spam emails/day. We block the emails used by spammers. We had only one reported case of actual user being

[web2py:33876] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
On Oct 27, 9:23 pm, Thadeus Burgess thade...@thadeusb.com wrote: On the same track that I was thinking. However this does not work like I would expect.     e = (db.a.b * 10)     f = (db.a.b.max() * db.a.b.min())     rows = db(db.a.id 0).select(db.a.ALL, e, f)     return

[web2py:33878] Re: Google Groups is Dead

2009-10-27 Thread david bain
I understand the spam issue with Google Groups, however I wouldn't throw the baby out with the bathwater. I find mailing lists to be very valuable. On Tue, Oct 27, 2009 at 9:50 PM, mengu whalb...@gmail.com wrote: i think a forum would be more helpful and better. On Oct 28, 2:56 am, mdipierro

[web2py:33877] Re: GAE caching

2009-10-27 Thread mdipierro
How long does it stay cached? On Oct 27, 9:26 pm, Thadeus Burgess thade...@thadeusb.com wrote: run a cron on your local computer to urllib the page ? :) All I can come up with. It is just one of the ways GAE works, when a page is no longer needed, it kills the processes until their needed

[web2py:33879] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
One thing I do not like: right now we are using a class/object to define the virtualfields but you are suggesting a dictionary to name aggregates. Should we use a dictionary for virtualfields too, for example? rows.virtualfields={'total':(lambda self:

[web2py:33880] Re: Google Groups is Dead

2009-10-27 Thread mdipierro
All together I am happy with it. On Oct 27, 9:53 pm, david bain pigeonfli...@gmail.com wrote: I understand the spam issue with Google Groups, however I wouldn't throw the baby out with the bathwater. I find mailing lists to be very valuable. On Tue, Oct 27, 2009 at 9:50 PM, mengu

[web2py:33881] Re: Making a reference to an auth_user

2009-10-27 Thread Wiiboy
H I've set db.articles.readable and db.articles.writable to False. I made an onvalidation function that sets the date to request.now. The default is request.now. I even went into the Database Admin an added a new db.articles and provided a value for date. And yet there is no date values.

[web2py:33882] Re: Layout and css in web2py

2009-10-27 Thread mengu
unfortunately there are still millions of people using IE 6. On Oct 27, 2:25 pm, annet annet.verm...@gmail.com wrote: Thank you both for your suggestions, setting the margins and padding on the table elements solved the problem. Displaying the original views and css's in Internet Explorer 8

[web2py:33883] Re: More experimental stuff in trunk

2009-10-27 Thread Thadeus Burgess
I just finished watching your video about virtualfields. Its a toss up between the two. The one thing I really like about the class structure, is being able to pass defaults to it (like tax). Another thing that I really like about classes, is that when you specify _tablename to something else,

[web2py:33884] Re: Google Groups is Dead

2009-10-27 Thread Thadeus Burgess
I like the mailing list because I can access it from gmail easily. Forum Iw ould have to go to yet one more site to communicate. I like keeping everything in gmail if at all possible. -Thadeus On Tue, Oct 27, 2009 at 9:58 PM, mdipierro mdipie...@cs.depaul.edu wrote: All together I am happy

[web2py:33885] Re: Making a reference to an auth_user

2009-10-27 Thread Wiiboy
Wait. They do have date valuesI'm just accessing them wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from

[web2py:33886] Re: GAE caching

2009-10-27 Thread Richard
yeah I was thinking of using a cron job to keep web2py in memory, but from GAE instead: http://code.google.com/appengine/docs/python/config/cron.html A cron job will invoke a URL at a given time of day. On Oct 28, 1:26 pm, Thadeus Burgess thade...@thadeusb.com wrote: run a cron on your local

[web2py:33887] bug in Rows.last()

2009-10-27 Thread mr.freeze
I get a syntax error when using this. I believe line 2926 of Rows.__getitem__ needs to be changed from: if i = len(self.response) or i 0: ...to... if i = len(self.response): since Rows.last() returns self[-1] --~--~-~--~~~---~--~~ You received this message

[web2py:33888] Re: bug in Rows.last()

2009-10-27 Thread mdipierro
Thanks. Just fixed in trunk! On Oct 27, 10:35 pm, mr.freeze nat...@freezable.com wrote: I get a syntax error when using this. I believe line 2926 of Rows.__getitem__ needs to be changed from: if i = len(self.response) or i 0: ...to... if i = len(self.response): since Rows.last()

[web2py:33889] Re: Google Groups is Dead

2009-10-27 Thread JorgeRpo
I rather like a forum because it doesnt require to clog my email box with threaded msg. We need a forum. We've had already discussed this. On Oct 27, 10:20 pm, Thadeus Burgess thade...@thadeusb.com wrote: I like the mailing list because I can access it from gmail easily. Forum Iw ould have to

[web2py:33890] Re: More experimental stuff in trunk

2009-10-27 Thread mdipierro
If I understand. You can do this already: db.define_table('products', Field('name'), Field('price', 'double')) db.define_tables('sales', Field('product', db.products), Field ('quantity','integer')) qry_product_sales = (db.sales.id_product == db.products.id) (db.products.id 0) class VF_total:

[web2py:33891] Re: Google Groups is Dead

2009-10-27 Thread david bain
I'm not against a forum, but I don't think I'd use it much. I'm especially concerned that setting up and maintaining a forum may distract the core developers from developing, whatever minimizes the administrative overhead of running the web2py project is good as it frees minds to focus on

[web2py:33892] Re: Google Groups is Dead

2009-10-27 Thread mdipierro
Right now the web2py google group takes negligible maintenance time. We have about 10 managers. Massimo On Oct 27, 11:26 pm, david bain pigeonfli...@gmail.com wrote: I'm not against a forum, but I don't think I'd use it much. I'm especially concerned that setting up and maintaining a forum

[web2py:33893] Re: bug in Rows.last()

2009-10-27 Thread mr.freeze
Works! Would you be interested in these for sql.py Rows class?: def where(self,f): if not self.response: return None rows = [] for i in range(0,len(self)): row = self[i] if f(row): rows.append(self.response[i]) return Rows(self._db,rows,*self.colnames)

[web2py:33894] Re: GAE caching

2009-10-27 Thread Robin B
How long does it stay cached? Inactive Python handlers used to last ~1 minute, recently it is closer to 15 seconds. Java servlets last longer, over a minute, maybe becuase they are so slow to boot (6 seconds +). One of the coming releases is supposed to speed up the cold boot times. Cron has

[web2py:33895] Re: bug in Rows.last()

2009-10-27 Thread mdipierro
Very much! I propose one change. Just one API (filter) and an extra parameter (inplace=True|False). What you think? On Oct 28, 12:11 am, mr.freeze nat...@freezable.com wrote: Works! Would you be interested in these for sql.py Rows class?: def where(self,f):     if not self.response: