[web2py] Re: trying to get email to work

2010-02-03 Thread weheh
Yes, I have implemented queuing mechanisms. The issue here is that web2py isn't sending any email. In tmy example above, I'm actually sending only a single email ... to me ... for testing purposes, not production. Bottom line, I'm not getting any email and none is being sent. I looked at the email

[web2py] Re: making changes in web2py

2010-02-03 Thread mdipierro
I agree. I would take this path. On Feb 3, 11:38 pm, Thadeus Burgess wrote: > -1 for admin username > +1 for anti-brute-forcing. If incorrect password typed 3 times, ban > the IP permanently until you log into ssh and edit a pickled file. > > -Thadeus > > On Wed, Feb 3, 2010 at 7:07 PM, mdipierro

[web2py] Re: trying to get email to work

2010-02-03 Thread mdipierro
The role of a cron job is to start the same task at periodic time. If the task takes too long, two or more of such tasks can overlap and slow thing down. In your case you have events that trigger the emails. You do not want to send emails at fixed scheduled time but as soon as possible if not busy

Re: [web2py] Re: making changes in web2py

2010-02-03 Thread Thadeus Burgess
-1 for admin username +1 for anti-brute-forcing. If incorrect password typed 3 times, ban the IP permanently until you log into ssh and edit a pickled file. -Thadeus On Wed, Feb 3, 2010 at 7:07 PM, mdipierro wrote: > I am confused. appadmin does not requires any. appadmin, by default, > requ

[web2py] Re: trying to get email to work

2010-02-03 Thread weheh
Do you mean a cron job? Or is it a separate service? I was intending to make it a service, however I wanted to try this out to see if it would work. I know for a fact that my mail server is functioning. I have an old app written in python that does an SMTP-based mailing using mail.server 127.0.0.1.

[web2py] Re: web2py value a key None if the key not exist?

2010-02-03 Thread mdipierro
In web2py session is not a dict it is a gluon.storage.Storage. It acts as a dict except that keys can accessed as attributes and if a key does not exist returns None. >>> session['key'] Exception >>> session.key None >>> 'key' in session False On Feb 3, 9:46 pm, jeantoe wrote: > i see this exam

[web2py] web2py value a key None if the key not exist?

2010-02-03 Thread jeantoe
i see this example in web2py_manual_cut.pdf code: def index(): session.counter = (session.counter or 0) + 1 return dict(message="Hello from MyApp", counter=session.counter) i try it in ipython and get a error In [13]: session.test = (session.test or 0) + 1

[web2py] Re: trying to get email to work

2010-02-03 Thread mdipierro
You need a background process and database queue of tasks for this to work well. On Feb 3, 8:50 pm, weheh wrote: > I tried the mail.settings.server='localhost:25' but still no results. > > As for Russel's comment, ultimately I intend to loop on a db of > possibly thousands of users. I intend to p

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread mdipierro
I needs to see more of the app to understand the workflow. This will get rid of the problem: Field('name_lower', compute=lambda r:r.get('name','unknwon').lower(),readable=False,writable=False) But somehow compute is being called without a prefilled record in your app. On Feb 3, 7:45 pm, Carl

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread weheh
I think what everyone's trying to say is that if you don't set auth.settings.login_next then by default, the redirect after login will be to the decorated controller that sent you to login to begin with. So make sure there is no auth.settings.login_next in your model file (db.py). -- You received

[web2py] Re: web2py rocks!

2010-02-03 Thread johntynan
mikech, You are right, the default orange is a great color; especially when playing off the brown (#3E3735) I especially like that it did not take a lot of changes in the stylesheet: http://bit.ly/cKDPZf Thanks! On Feb 3, 10:10 am, mikech wrote: > Orange is such a nice color :) > > On Feb 2,

[web2py] Re: trying to get email to work

2010-02-03 Thread weheh
I tried the mail.settings.server='localhost:25' but still no results. As for Russel's comment, ultimately I intend to loop on a db of possibly thousands of users. I intend to put some pause between user emails in order to not trip spam filters. Do you anticipate a problem from that configuration?

[web2py] Hierarchical Trees

2010-02-03 Thread Fran
This looks cool: http://code.tabo.pe/django-treebeard/src/ Single API to access 3 different models of hierarchical trees. I'm inspired to move my simple 'Adjacency List' model to one more suitable for Reads. I've seen a Web2Py implementation of modified preorder traversal: http://www.web2pyslice

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
ah... you are right; I don't get this information from a web2py form. I added in readable and writable but still get the exception: KeyError: 'name' On Feb 4, 1:16 am, mdipierro wrote: > required is not really required for anything. > > For debugging try: > > Field('name_lower', compute=lambda >

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-03 Thread mdipierro
do you use 2.5 or something else locally? On Feb 3, 6:11 pm, Carl wrote: > This may be related to GAE update_record() has subtle difference > compared to native > Web2Pyhttp://groups.google.com/group/web2py/browse_thread/thread/a69afded01... > but until shown otherwise, I've posed separately. >

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread mdipierro
required is not really required for anything. For debugging try: Field('name_lower', compute=lambda r:r['name'].lower(),readable=False,writable=False) Perhaps you do not display the field name in the form? On Feb 3, 5:57 pm, Carl wrote: > I've traced right now to the exception and I get KeyE

[web2py] Re: hg and files created during testing

2010-02-03 Thread mdipierro
look into .hgignore On Feb 3, 5:24 pm, Wes James wrote: > If I make changes to web2py and run it now I get parameters_port.py > and possibly ticket error files, session files, etc., created.  How do > you keep these from getting introduced in to the commits? > > -wes -- You received this messag

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread mdipierro
It should do that if you call login via @auth.requires_login() On Feb 3, 4:24 pm, Dane wrote: > Thanks! > > As an aside, I wonder why redirecting to the last accessed controller > function after login isn't the default behavior. Isn't this by far the > most common use case? > > On Feb 3, 2:25 pm

[web2py] Re: trying to get email to work

2010-02-03 Thread mdipierro
There is a timeout on the thread that may affect it. On Feb 3, 3:27 pm, Russell wrote: > Just curious...The code shows the mail.send routine in a loop and the > whole thing could take some time to run.  Should there be some limit > to the number of records that can be thrown into such a loop?   A

[web2py] Re: making changes in web2py

2010-02-03 Thread mdipierro
I am confused. appadmin does not requires any. appadmin, by default, required admin (perhaps you refer to that). appadmin predates auth. If your app needs a more complex appadmin authentication you should connect to the auth of the app. admin does not no need more than a passoword because there is

[web2py] Re: admin app misses symlinked directories

2010-02-03 Thread mdipierro
what os? make sure the case is correct On Feb 3, 3:17 pm, selecta wrote: > If i replace a directory with a symlink the application works fine > buthttp://127.0.0.1:8000/admin/default/design/testis not showing the > symlinked directory > > e.g. in application test I symlinked the views/default di

Re: [web2py] Lulu sale

2010-02-03 Thread Zoom.Quiet
On Thu, Feb 4, 2010 at 00:25, Drapko Nitzhonot wrote: > Bought it. Thanks > In fact if developer ask me the book; if them promise only self usage,i sent the pdf always ... thanx for all! > On Tue, Feb 2, 2010 at 11:13 PM, Jonathan Lundell > wrote: >> >> In case anyone is about to buy a copy of

[web2py] Re: how to support multiple web2py trees

2010-02-03 Thread Ted Baker
I can't use extra ports. Our university firewall policy does not allow traffic except on certain well known ports. We have port NAT and port filtering at several levels, run by different levels of the University organization, between the server the students in my course are using for their project

Re: [web2py] disable remember me

2010-02-03 Thread Thadeus Burgess
Cool, must have missed that one. In my environment I have absolutely no need for remember me on our app, In fact remember me would be a disaster to the internal application. Thanks. -Thadeus On Wed, Feb 3, 2010 at 5:40 PM, Wes James wrote: > This is in tools.py > > self.settings.remember_m

[web2py] GAE delete() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
This may be related to GAE update_record() has subtle difference compared to native Web2Py http://groups.google.com/group/web2py/browse_thread/thread/a69afded01d12d18/3f4f21acdff0c34b#3f4f21acdff0c34b but until shown otherwise, I've posed separately. I have this in db.py: db.define_table('team_us

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
I've traced right now to the exception and I get KeyError: 'name' This is referring to the definition in db.py of the compute function compute=lambda r:r['name'].lower()), I've removed both notnull=True & required=True from: Field('name', 'string', length=128, notnull=True, required=True), but I

Re: [web2py] disable remember me

2010-02-03 Thread Wes James
This is in tools.py self.settings.remember_me_form = True -wes On Wed, Feb 3, 2010 at 4:39 PM, Wes James wrote: > or have an option in db.py: > > auth.settings.remember_me=(True|False) > > On Wed, Feb 3, 2010 at 3:07 PM, Thadeus Burgess wrote: >> -Thadeus >> >> -- >> You received this message

Re: [web2py] disable remember me

2010-02-03 Thread Wes James
or have an option in db.py: auth.settings.remember_me=(True|False) On Wed, Feb 3, 2010 at 3:07 PM, Thadeus Burgess wrote: > -Thadeus > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegro

[web2py] Re: disable remember me

2010-02-03 Thread Richard
why? On Feb 4, 9:07 am, Thadeus Burgess wrote: > -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegr

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread Richard
I agree the epydocs are not very useful, which makes the manual crucial right now. (http://www.web2py.com/examples/static/epydoc/index.html) The current wiki has a number of recipes/explanations but it is never going to systematically cover the entire API. It is basically a new AlterEgo. So how ab

[web2py] hg and files created during testing

2010-02-03 Thread Wes James
If I make changes to web2py and run it now I get parameters_port.py and possibly ticket error files, session files, etc., created. How do you keep these from getting introduced in to the commits? -wes -- You received this message because you are subscribed to the Google Groups "web2py-users" g

[web2py] Re: rows.response

2010-02-03 Thread carlo
thank you, carlo On 3 Feb, 00:46, mdipierro wrote: > Try this: > > {{db[table].id.represent=lambda id: A(id,_href=URL(r=request, > c='default',f='data_clienti',args=id,vars={'table':table})})) > {{=SQLTABLE(rows,_class='sortable',headers=dict([(rows.colnames[i],c) > for (i,c) in enumerate(colonn

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Dane
Thanks! As an aside, I wonder why redirecting to the last accessed controller function after login isn't the default behavior. Isn't this by far the most common use case? On Feb 3, 2:25 pm, Wes James wrote: > You will want to do it in your controller for each view function you have. > > I have s

[web2py] disable remember me

2010-02-03 Thread Thadeus Burgess
-Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at htt

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread selecta
I agree that an on-line book is a bad idea, I never liked to read text for humans while programming, it just distracts me, (even the nice book from Massimo) BUT if we had something like the php documentation it would be awesome The documentation (epydoc) is already quite good but the interface is d

[web2py] Re: trying to get email to work

2010-02-03 Thread Russell
Just curious...The code shows the mail.send routine in a loop and the whole thing could take some time to run. Should there be some limit to the number of records that can be thrown into such a loop? About how many records before this sort of thing should be handed off to a daemon? On Feb 4, 4:

Re: [web2py] Re: making changes in web2py

2010-02-03 Thread Wes James
On Wed, Feb 3, 2010 at 1:48 PM, mdipierro wrote: > >> >> By the way  Massimo, will you take a patch to add a username to >> appadmin?  If not, I'm learning a few things on the way, anyway. > > please explain more. > appadmin only uses a password to login. I'm putting in a username too so it r

[web2py] admin app misses symlinked directories

2010-02-03 Thread selecta
If i replace a directory with a symlink the application works fine but http://127.0.0.1:8000/admin/default/design/test is not showing the symlinked directory e.g. in application test I symlinked the views/default directory in http://127.0.0.1:8000/admin/default/design/test it is looking like there

[web2py] Re: DAL migration problem

2010-02-03 Thread mdipierro
If you do not use GAE it should work right now (cp dal.py sql.py) Before I can make it work on GAE I need to abstract a little more about insert and select. Massimo On Feb 3, 2:55 pm, Thadeus Burgess wrote: > I know I didn't put one there. > > sql.py is way to spaghetti and will take longer th

[web2py] Re: IS_IN_SET multiple=True with non-ASCII character failed

2010-02-03 Thread mdipierro
Use UTF8 not unicode. On Feb 3, 2:03 pm, szimszon wrote: > IS_IN_SET(['Új', 'Beépítve', 'Eladva', 'Használt','Selejtezve', > 'Cseredarab', 'Bérben', 'Hibás'],multiple=True) > > If I select "Új" I get: value not allowed > If I select "Selejtezve" it's OK. -- You received this message because you

[web2py] Re: how to upgrade web2py with an existing database

2010-02-03 Thread mdipierro
I am not exactly sure what when wrong but I can explain how it works and how to fix it. Normally web2py looks for .table files for the current table structure. If that does not match the fields in the define table, it tried to alter and add or drop columns accordingly. After migration is completed

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread mdipierro
Denes is right. On Feb 3, 1:59 pm, DenesL wrote: > AFAIK Massimo does not oppose but actually encourages the creation of > more documentation in any form. > > On Feb 3, 2:48 pm, villas wrote: > > > Well to be fair, it didn't sound like Massimo was in favour of an > > online book earlier in this

Re: [web2py] Re: DAL migration problem

2010-02-03 Thread Thadeus Burgess
I know I didn't put one there. sql.py is way to spaghetti and will take longer than I have available to make it work for sql.py. When will we be able to use the new dal? -Thadeus On Wed, Feb 3, 2010 at 2:46 PM, mdipierro wrote: > There is no check_reserved in gluon/sql.py. > > On Feb 3, 12

[web2py] Re: Memory (thread?) problems. Is web2py suitable for large datasets?

2010-02-03 Thread mdipierro
This would fetch all records in memory. Not a good idea. lys = db().select(db.wos_rou.id) try this instead: lys = db().select(db.wos_rou.id,limitby=(0,100)) On Feb 3, 12:57 pm, Johann Spies wrote: > I am working with relatively large datasets (up to 45 records) an > even when I try to mi

[web2py] Re: making changes in web2py

2010-02-03 Thread mdipierro
On Feb 3, 12:50 pm, Wes James wrote: > adding username to appadmin ;) > > I did hg clone of 1.74.10 > > I start making some changes > > I then do hg export fig  the only thing i see is a pending change to > the Makefile of the version change.  Just a side note, I look in the > Makefile and it lo

[web2py] Re: DAL migration problem

2010-02-03 Thread mdipierro
There is no check_reserved in gluon/sql.py. On Feb 3, 12:33 pm, Thadeus Burgess wrote: > A) Bring home the bacon ! > > B) Every time unless you set check_reserve to None. In production you > would have check_reserve to None. > > C) It should be a union, and that is exactly what its documentation

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread mdipierro
Now the see this I understand the problem better. In this line: Field('mDate', 'datetime', required=True) required=True is not the same as requires=IS_NOT_EMPTY() and it is not the same as notnull=True. required=True means you cannot do insert without providing a value for this field and that is

[web2py] plugin_translate

2010-02-03 Thread mdipierro
http://web2py.com/plugins/default/translate I am not sure why it is translating only top and sidebar but not content. With other page layouts it translates the entire content. Any idea? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to

Re: [web2py] how to support multiple web2py trees

2010-02-03 Thread Wes James
Have you tried mod_rewrite? I've tried mod_write with wsgi and I had some problems with it not working right, but if you can run each of your instances on a different port and then use rewrite rules it might work. Just a guess here: RewriteEngine On RewriteRule ^/site1(.*) http://host:8

Re: [web2py] IS_IN_SET multiple=True with non-ASCII character failed

2010-02-03 Thread Thadeus Burgess
Try assigning them unique ID's instead of the string. IS_IN_SET((1, 2, 3, 4), (option a, option b, option c, option d), multiple=True) -Thadeus On Wed, Feb 3, 2010 at 2:03 PM, szimszon wrote: > IS_IN_SET(['Új', 'Beépítve', 'Eladva', 'Használt','Selejtezve', > 'Cseredarab', 'Bérben', 'Hibás'

[web2py] IS_IN_SET multiple=True with non-ASCII character failed

2010-02-03 Thread szimszon
IS_IN_SET(['Új', 'Beépítve', 'Eladva', 'Használt','Selejtezve', 'Cseredarab', 'Bérben', 'Hibás'],multiple=True) If I select "Új" I get: value not allowed If I select "Selejtezve" it's OK. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post

[web2py] how to support multiple web2py trees

2010-02-03 Thread Ted Baker
I am interested in running multiple web2py trees, for use in testing web2py upgrades before full deployment, as well as testing local code. I am behind a firewall, so I only have the http and https ports available. I'm running Apache, and managed so far to get just the one copy of web2py going, at

[web2py] how to upgrade web2py with an existing database

2010-02-03 Thread Ted Baker
I seem to have gotten myself in trouble while trying to upgrade from web2py1.74.6 to 1.74.9, where I am using postgresql as my database and apache2 as my front end. I am running the admin directory only through https. Q: If I have an existing database, and start with a clean web2py tree (with no .

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread DenesL
AFAIK Massimo does not oppose but actually encourages the creation of more documentation in any form. On Feb 3, 2:48 pm, villas wrote: > Well to be fair, it didn't sound like Massimo was in favour of an > online book earlier in this same thread. That was why I thought there > was a case to be m

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread villas
Well to be fair, it didn't sound like Massimo was in favour of an online book earlier in this same thread. That was why I thought there was a case to be made. You are right of course about raising the next question: who is going to do it? But in my mind, there isn't any point in trying to cros

[web2py] Hyakutake connected to a web2py server? Interesting.

2010-02-03 Thread villas
Just saw it on Vimeo: http://www.vimeo.com/9073663 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread Thadeus Burgess
There is no case. We all agree. Now who is actually going to DO it ? I can't. I work, sleep, and sometimes if I have time eat. Then I work some more. My company is not going to pay me to write web2py documentation. And as my comment earlier wasn't just to be funny it is serious. Do you have time

Re: [web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Wes James
You will want to do it in your controller for each view function you have. I have some like this: if auth.is_logged_in(): redirect(URL(r=request,c='default',f='apage')) or something like @auth.requires_login() def change_password(): return dict(form=auth.change_password(next=URL(r=

Re: [web2py] Memory (thread?) problems. Is web2py suitable for large datasets? [Solved]

2010-02-03 Thread Johann Spies
On 3 February 2010 21:17, Wes James wrote: > It might make a difference on the DB you are using.  Which are you > using sqlite, postgresql, mysql??  What OS?  As a side note if you are > using windows, win32 only uses a little over 3gig as it uses the other > for system use.  But I'm not sure what

Re: [web2py] Memory (thread?) problems. Is web2py suitable for large datasets?

2010-02-03 Thread Wes James
It might make a difference on the DB you are using. Which are you using sqlite, postgresql, mysql?? What OS? As a side note if you are using windows, win32 only uses a little over 3gig as it uses the other for system use. But I'm not sure what the python limits are either. On Wed, Feb 3, 2010

[web2py] Re: The state of the wiki and documentation in general

2010-02-03 Thread villas
I think that Cakephp also has a very good online book: http://book.cakephp.org. I notice these days that they are also raising some revenue with adsense, which might work well. However, people like me would also be willing to pay a subscription to access a more up to date online book. Goodness m

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Dane
Thanks, but I still don't understand.. if I set it in db.py, won't that permanently send all my login redirects to the same function? But I want the redirect to change depending on the part of the site my users try to access. Do I use a property on request for this? On Feb 3, 1:53 pm, Wes James w

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Dane
Thanks, but I still don't understand.. if I set it in db.py, won't that permanently send all my login redirects to the same function? But I want the redirect to change depending on the part of the site my users try to access. Do I use a property on request for this? On Feb 3, 1:53 pm, Wes James w

[web2py] Memory (thread?) problems. Is web2py suitable for large datasets?

2010-02-03 Thread Johann Spies
I am working with relatively large datasets (up to 45 records) an even when I try to minimize the memory usage by not doing a select on all the fields I get this error on a 4G ram computer with a dataset of about 15 records): lys = db().select(db.wos_rou.id) Exception in thread Thread-27:

Re: [web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Wes James
db.py On Wed, Feb 3, 2010 at 11:12 AM, Dane wrote: > Thanks, and where would I set this to get a redirect to the function > being accessed? In the body of the controller function itself? I'm new > to python and decorators, but I assumed nothing in the decorated > function would run. > > > On Feb

Re: [web2py] Re: making changes in web2py

2010-02-03 Thread Wes James
adding username to appadmin ;) I did hg clone of 1.74.10 I start making some changes I then do hg export fig the only thing i see is a pending change to the Makefile of the version change. Just a side note, I look in the Makefile and it looks like the change is already there. Not sure why. I

Re: [web2py] Re: DAL migration problem

2010-02-03 Thread Thadeus Burgess
A) Bring home the bacon ! B) Every time unless you set check_reserve to None. In production you would have check_reserve to None. C) It should be a union, and that is exactly what its documentation I added says. But we can't do a union until we actually create database specific keywords until

Re: [web2py] Re: DAL migration problem

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:43 AM, Thadeus Burgess wrote: > Ok take a look at the following proposed changes I'll try to look at it later today; I'm off to work now. Is the check made every time, or only when a table is actually being created (or migrated)? The latter should be adequate, at least by d

Re: [web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
db.define_table('team', Field('name', 'string', length=128, notnull=True, required=True), Field('name_lower', compute=lambda r:r['name'].lower()), Field('owner_user_id', db.auth_user, required=True, requires=IS_IN_DB(db,db.auth_user.id,'%(id)s')),

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Dane
Thanks, and where would I set this to get a redirect to the function being accessed? In the body of the controller function itself? I'm new to python and decorators, but I assumed nothing in the decorated function would run. On Feb 3, 10:37 am, mdipierro wrote: > auth.settings.login_next = URL(.

Re: [web2py] making changes in web2py

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:38 AM, Thadeus Burgess wrote: > Massimo seems to prefer emailing patches rather than pulling from our > cloned repositories. Since he wants exact specific control over what > gets pulled in. Kind of like "quality control" until he trusts the > developer I suppose :) Linus Torv

Re: [web2py] Re: DAL migration problem

2010-02-03 Thread Thadeus Burgess
As an added note, I could use some help in creating the database specific keywords lists. -Thadeus On Wed, Feb 3, 2010 at 11:43 AM, Thadeus Burgess wrote: > Ok take a look at the following proposed changes > > http://code.google.com/r/thadeusburgess-web2py/source/detail?r=c416459252755abde99

Re: [web2py] Re: DAL migration problem

2010-02-03 Thread Thadeus Burgess
Ok take a look at the following proposed changes http://code.google.com/r/thadeusburgess-web2py/source/detail?r=c416459252755abde998e923021188335924e02c I made it DRY. Also you pass a list of options. Here is example usage db = DAL('sqlite', pool_size, check_reserve=['common', 'postgres'

Re: [web2py] making changes in web2py

2010-02-03 Thread Thadeus Burgess
Massimo seems to prefer emailing patches rather than pulling from our cloned repositories. Since he wants exact specific control over what gets pulled in. Kind of like "quality control" until he trusts the developer I suppose :) Linus Torvalds also prefers this approach of diffs instead of clones f

Re: [web2py] making changes in web2py

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:19 AM, Thadeus Burgess wrote: > What is wrong with http://mercurial.selenic.com/guide/ > > There is nothing special about hg+web2py together. I was hoping for something a little more concise, and also some guidance for how to use my own clones (or whatever) on Google Code.

Re: [web2py] making changes in web2py

2010-02-03 Thread Thadeus Burgess
What is wrong with http://mercurial.selenic.com/guide/ There is nothing special about hg+web2py together. -Thadeus On Wed, Feb 3, 2010 at 11:13 AM, Jonathan Lundell wrote: > On Feb 3, 2010, at 9:09 AM, Thadeus Burgess wrote: > >> if you already have a clone, make your changes, then commit t

Re: [web2py] making changes in web2py

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:09 AM, Thadeus Burgess wrote: > if you already have a clone, make your changes, then commit them to > your local copy. > > When you want updates do > > hg pull web2py && hg merge > > It should update and leave your changes, unless there is a conflict > which you will need a

[web2py] Re: web2py rocks!

2010-02-03 Thread mikech
Orange is such a nice color :) On Feb 2, 8:08 pm, johntynan wrote: > Thanks!  Here is some additional information: > > http://opensourcebroadcasting.blogspot.com/2010/02/introducing-pledge... > > Also, between us here on the web2py group, here is the link to create > an account and set up your ow

Re: [web2py] making changes in web2py

2010-02-03 Thread Thadeus Burgess
if you already have a clone, make your changes, then commit them to your local copy. When you want updates do hg pull web2py && hg merge It should update and leave your changes, unless there is a conflict which you will need a program such as "MELD" to solve. -Thadeus On Wed, Feb 3, 2010 a

[web2py] Re: making changes in web2py

2010-02-03 Thread mdipierro
Out of curosity... What kind of changes are you making to web2py? On Feb 3, 11:02 am, Wes James wrote: > Say I do: > > hg clone web2py > > I make changes to the code, then later another update comes out for > web2py and I want my changes added to the update.  Can someone help me > with this proce

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread mdipierro
Can you show us the model and attributes of db.team. I suspect db.team.mDate is missing a writable=False, readable=False which you need since it is a computed field. On Feb 3, 10:59 am, Carl wrote: > MainThread - pid4460_seq4 >         update [gql.py:696] >         update_record [sql.py:3232] >

[web2py] 1.74.11 is OUT

2010-02-03 Thread mdipierro
Because I made a mistake in 1.74.10. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more optio

[web2py] making changes in web2py

2010-02-03 Thread Wes James
Say I do: hg clone web2py I make changes to the code, then later another update comes out for web2py and I want my changes added to the update. Can someone help me with this process? thx, -wes -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
MainThread - pid4460_seq4 update [gql.py:696] update_record [sql.py:3232] [sql.py:3109] update [subscription.py:65] update_team [default.py:call:68] serve_jsonrpc [tools.py:2560] __call__ [tools.py:2646] call [default.py:call:594]

[web2py] Re: 1.74.10 is OUT

2010-02-03 Thread mdipierro
doh! rebuilding it again On Feb 3, 10:40 am, Thadeus Burgess wrote: > It does not look like you included the patch for the reserved keywords? > > -Thadeus > > On Wed, Feb 3, 2010 at 10:22 AM, mdipierro wrote: > > fixes a few problems with CRON, typos and check for invalid field and > > in D

Re: [web2py] 1.74.10 is OUT

2010-02-03 Thread Thadeus Burgess
You might want to wait before including patch, since I made some of the suggested changes last night, we can see how it looks then. -Thadeus On Wed, Feb 3, 2010 at 10:40 AM, Thadeus Burgess wrote: > It does not look like you included the patch for the reserved keywords? > > -Thadeus > > > >

Re: [web2py] 1.74.10 is OUT

2010-02-03 Thread Thadeus Burgess
It does not look like you included the patch for the reserved keywords? -Thadeus On Wed, Feb 3, 2010 at 10:22 AM, mdipierro wrote: > fixes a few problems with CRON, typos and check for invalid field and > in DB (thanks Thedeus) > > -- > You received this message because you are subscribed to

[web2py] Re: plugin to sort database records with the mouse via ajax

2010-02-03 Thread Stefan
Ack - wrong thread! Sorry! On Feb 3, 11:31 am, Stefan wrote: > Hi Massimo, > > What's the trick to update a plugin_datatable display via anAjax > call?  As an example, I have the function: > > def data(): >     rows= db().select(db.statustable.ALL, > orderby=db.statustable.createdon) >     retur

[web2py] Re: plugin to sort database records with the mouse via ajax

2010-02-03 Thread Stefan
Hi Massimo, What's the trick to update a plugin_datatable display via an Ajax call? As an example, I have the function: def data(): rows= db().select(db.statustable.ALL, orderby=db.statustable.createdon) return plugin_datatable(rows,_class='datatable', truncate=34) However, when I make

Re: [web2py] Lulu sale

2010-02-03 Thread Drapko Nitzhonot
Bought it. Thanks On Tue, Feb 2, 2010 at 11:13 PM, Jonathan Lundell wrote: > In case anyone is about to buy a copy of the manual from Lulu, there's a > 15% discount through tomorrow. Coupon code SHADOW. > > -- > You received this message because you are subscribed to the Google Groups > "web2py-u

[web2py] 1.74.10 is OUT

2010-02-03 Thread mdipierro
fixes a few problems with CRON, typos and check for invalid field and in DB (thanks Thedeus) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Re: GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread mdipierro
what is the traceback? On Feb 3, 6:59 am, Carl wrote: > Given: > - a define_table() with a field as "compute=lambda r:r['name'].lower > ()" > - that I call update_record() on a row returned from a select. > > when I test on dev_appserver I need to include name as a parameter to > update_record()

[web2py] Re: Autocomplete issues...

2010-02-03 Thread mdipierro
this is what IS_IN_DB does internally. I do not think it does help in this case. The fact is you need a more sohisticated autocomplete because when you type something you need not just the autocompleted text but also the id corresponding to it. You need to create this logic. On Feb 3, 6:10 am, se

[web2py] Re: DAL syntax for sub-selects?

2010-02-03 Thread mdipierro
No but usually the same output can be produced by join or left join. I need to see the model and what is in the "..." to be sure. On Feb 3, 12:44 am, Guido Kollerie wrote: > Hi, > > Is web2py's DAL syntax rich enough to express sub-selects of the > following form? > >     select * >       from ta

[web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread mdipierro
auth.settings.login_next = URL(...) On Feb 3, 12:03 am, Dane wrote: > Hey all, I've been using the @auth.requires_login() decorator and I > love the simplicity. It was also pretty easily to hook it into google > account authentication after a bit of searching on this group. My only > problem with

[web2py] Re: trying to get email to work

2010-02-03 Thread mdipierro
Can you try? mail.settings.server='localhost:25' On Feb 3, 12:02 am, weheh wrote: > I'm trying to get the email module to work. In my model I say: > > #model > mail.settings.server='localhost'            # your SMTP server > mail.settings.login=None                    # your credentials > mail

[web2py] Re: read a blob to numpy array

2010-02-03 Thread kari
I apparently solved this. I needed to add "uploads/" between the request.folder and the filename I got from the blob object when concatenating the path since the files are stored in the "uploads" folder. I missed this in my first attempts. Kari On Feb 3, 10:51 am, kari wrote: > I need to read a

[web2py] GAE update_record() has subtle difference compared to native Web2Py

2010-02-03 Thread Carl
Given: - a define_table() with a field as "compute=lambda r:r['name'].lower ()" - that I call update_record() on a row returned from a select. when I test on dev_appserver I need to include name as a parameter to update_record() otherwise an exception is thrown by Set.update(self, **update_fields)

[web2py] Re: more plugins posted (with demo)

2010-02-03 Thread selecta
nice, but for the comments i posted a format breaker :) maybe improve that On Feb 2, 12:57 am, mdipierro wrote: > oops. gone. it did not belong there. > > On Feb 1, 5:51 pm, Richard wrote: > > > > > Very neat! > > > ("Change Layout" link is broken) > > > On Feb 2, 4:27 am, mdipierro wrote: > >

[web2py] Re: Autocomplete issues...

2010-02-03 Thread selecta
IS_IN_SET(dict([(i.id,i.name) for i in db(db.paint.id>0).select()])) did not test it but it should work On Feb 3, 10:31 am, Jason Brower wrote: > I have autocomplete working... it properly displays the information I > want.  I also have it integrated with my model that is being rendered. > But I

  1   2   >