Re: [web2py] Re: How to persist session data for user across browsers

2012-09-01 Thread Bruno Rocha
I think you can use cache. user_data = cache.ram("user_data_%s" % auth.user_id, lambda : dict(field=value, field=value), 86400) --

[web2py] Buttons not styled the Bootstrap way.

2012-09-01 Thread Annet
In a controller I have the following function: def subCreate(): form=SQLFORM.factory( Field('subClass',type='integer',requires=IS_IN_SET([1,2,3],labels=['Organization','Person','Connector'],zero=T('select a value'))), separator='') if form.process(keepvalues=False).accepted:

[web2py] Teaching web2py

2012-09-01 Thread Andrew W
I know some of you have taught, or presented web2py in classrooms/seminars. Massimo Now that version 2 is out, I am introducing web2py to my work colleagues who are a little green to python, and programming in general. Couldn't think of a better way to get them showing good results with a mi

Re: [web2py] Re: web2py book on github

2012-09-01 Thread Andrew W
Does auth.wiki need to be included in the doco todo list ? If plugin_wiki is to be phased out does the Components chapter need updating to refer to auth.wiki? By the way, thanks for putting the book on github. A good lesson in itself for a documentation app (on my list) I need to add so

[web2py] Re: Scaling Web2py

2012-09-01 Thread Anthony
> > Second, session handling. Sessions are locked at the beginning of a > request and is released only when the request is finished. You can > "session forget"; but when your app is complex, this is not feasibly or > natural. > True, but if there's a lot of complexity associated with when se

[web2py] Re: How to persist session data for user across browsers

2012-09-01 Thread Anthony
As long as you're storing the session object, rather than trying to point to the old session file, why not just write the session contents into the new session? Anthony On Saturday, September 1, 2012 12:38:47 PM UTC-4, monotasker wrote: > > I'd like my app to preserve a "state" for each user fo

[web2py] Re: How to persist session data for user across browsers

2012-09-01 Thread VP
I don't think you can use session to do this. For one thing, sessions are usually have an id saved in the browser's cookie. If you switch browser, this id is lost. I think you can have a database table (using DAL) whose rows are associated with users and are expired after 24 hours. On Satu

[web2py] Re: Scaling Web2py

2012-09-01 Thread VP
Web2py can be used to build fairly effortlessly either complex applications with *small* numbers of concurrent users (*small* here is relatively and objective) or simple applications with *large* numbers of concurrent users. But if you want to build complex applications with large numbers of

[web2py] web2py 2.0.6 is out.

2012-09-01 Thread Massimo Di Pierro
Same goodies as 2.0.1... but many bug fixes (all those reported and non pre-existing). In particular it fixes a serious problem with 2.0.1-2.0.5 which may cause file corruption when you "update all languages" from the admin interface. Massimo --

[web2py] Re: error with "update all languages" action.

2012-09-01 Thread Massimo Di Pierro
This is a very serious issue. And I have verified it indeed occurs. web2py 2.0.1-2.05 all suffer from this problem. They corrupt the last file in modules, of the last file they check when you run "update all languages" from admin. This is because of a typo in the languages file. It saves the la

Re: [web2py] Use web2py to create offline desktop application

2012-09-01 Thread VP
One problem I have during development with the default setup of rocket is that it occasionally freezes when there is an error. These freezes appear to vanish when I use anyserver.py with rockets and 2 or 4 workers. On Saturday, September 1, 2012 8:17:10 PM UTC-5, rochacbruno wrote: > > Yes!

[web2py] error with "update all languages" action.

2012-09-01 Thread Karel Antonio Verdecia Ortiz
Hi, I have a module (tables.py) in modules directory. When I click in the button "update all languages" in the admin app, it overwrites the tables.py module with the chinese language. I'm using version 2.0.5. 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS..

Re: [web2py] Use web2py to create offline desktop application

2012-09-01 Thread Shawn McElroy
Oh awesome. I'll have to look more into sqlite. I've never used it. Is there any docs on using it it if the remote db is mongo/couch (syncing). Or even if there's a way to package couch/mongo with the app so they don't have to in stall it separately (assuming not using sqlite locally) On Sep 1, 201

Re: [web2py] Use web2py to create offline desktop application

2012-09-01 Thread Bruno Rocha
Yes! You have some options: 1 Use sqlite locally, use rocket server (built-in), use py2exe to pack your app as a windows application .exe, or py2app to pack as apple application. Take a look on to this: http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-binaries

[web2py] web2py 2.0.2 is out

2012-09-01 Thread Jaymin Oh
Huge thanks for all members in Web2py team. I'm going to spread out this framework to Korean user and maybe work on Korean version. --

[web2py] Use web2py to create offline desktop application

2012-09-01 Thread luckysmack
I am curious, if there could be a way to use web2py to create an installable desktop application. The app would be based on a web app so would have much of the same code. I would want/hope to find a way to bundle a local database (mongodb or couchdb if it works with web2py) and have the local

[web2py] Re: Scaling Web2py

2012-09-01 Thread Massimo Di Pierro
There are different issues: 1) speed 2) scalability with number of users 3) scalability with data size 4) scalability with complexity of queries 1) Anthony has posted lots of advice in this direction. Out of the box web2py is not the fastest framework because it does more. For example you cannot

[web2py] Re: Scaling Web2py

2012-09-01 Thread Anthony
There are many things you can do for efficiency and scalability that are not specific to web2py. I'll leave you to research those topics, but here are some items specific to web2py (many of these are mentioned in the "Efficiency Tricks" section of the Deployment Recipes

[web2py] Re: Self referencing with lazy_tables

2012-09-01 Thread Massimo Di Pierro
Please open a ticket about this it get tracked. On Saturday, 1 September 2012 14:14:26 UTC-5, Donatas Burba wrote: > > I noticed a problem with self referencing tables and option > lazy_tables=True. This is my code: > > - model - > > db.define_table('biography_available_award', > Fie

[web2py] Re: Is it bug or feature?

2012-09-01 Thread Massimo Di Pierro
Please open a ticket about this. On Saturday, 1 September 2012 13:37:41 UTC-5, Donatas Burba wrote: > > I have resolved the problem by creating VirtualField and this is part of > previous source: > > query = ... > records = db(query).select(..., > db.auth_user.first_name, db.auth_user.last_name,

Re: [web2py] Re: web2py book on github

2012-09-01 Thread Massimo Di Pierro
It is actually [ ] db.table.myuploadfield.default = 'path/to/file' On Saturday, 1 September 2012 17:21:56 UTC-5, rochacbruno wrote: > > Also mention that this > > [x] new syntax: db.mytable.insert(myuploadfield=open()), thank you > Iceberg > > Now works as: > > [ ] db.table.myuploadfield.d

Re: [web2py] Re: web2py 2.0.5 is out

2012-09-01 Thread vinicius...@gmail.com
Great! \o/ On 09/01/2012 05:18 PM, Richard Vézina wrote: Confirm backward compatibility. I just migrate from 1.99.4 to 2.0.5 Notice, that I change : controllers/appadmin.py static/css/* static/js/* static/images/* views/*generic.* views/web2py_ajax.html With the files form welcome app, prov

Re: [web2py] Scaling Web2py

2012-09-01 Thread ian douglas
Oops, had meant to reply to him off list, sorry everyone. On Sep 1, 2012 3:51 PM, wrote: > I'm replying off list. > > Your questions in this thread are more about general web architecture and > scalability issues than being specific questions about whether web2py is > suitable for your project. >

Re: [web2py] Scaling Web2py

2012-09-01 Thread ian douglas
I'm replying off list. Your questions in this thread are more about general web architecture and scalability issues than being specific questions about whether web2py is suitable for your project. If availability and scalability are your only true concerns, I'd -highly- recommend using web2py on

[web2py] Re: Scaling Web2py

2012-09-01 Thread Webtechie
Just another last question . 1. Is it advantageous to use Database Abstraction layer provided by web2py or use the vendor specific db module ? (I know it depends on the type of db,but the general rule) On Sunday, September 2, 2012 3:57:46 AM UTC+5:30, Niphlod wrote: > > This is a discussion wit

[web2py] Re: Scaling Web2py

2012-09-01 Thread Niphlod
This is a discussion with no ends if you don't provide a complete app. 1. read your preferred manual/book/guide on how to tune your db engine (whatever engine will you choose). Find out if it performs better with more RAM, or faster disks, or more CPU, on what OS, etc. and plan your resources ac

Re: [web2py] Re: web2py book on github

2012-09-01 Thread Bruno Rocha
Also mention that this [x] new syntax: db.mytable.insert(myuploadfield=open()), thank you Iceberg Now works as: [ ] db.table.myuploadfield.default = open() --

Re: [web2py] Re: web2py book on github

2012-09-01 Thread Bruno Rocha
Include this: [ ] Rows.find(lambda row: bool(), limitby=(0,1)) --

[web2py] Re: Scaling Web2py

2012-09-01 Thread Webtechie
1. Apart from building tables so that joins are minimum and building indexes .. what are other optimisations to make that possible ? 2 . I understand that some tuning should be done . could you be more specific about the type of tuning that should be done ? what should be changed exactly ? can

[web2py] Re: web2py book on github

2012-09-01 Thread andrej burja
i think there are some problems in chapter The database abstraction layer after belongs anrej On Saturday, September 1, 2012 7:00:49 PM UTC+2, Massimo Di Pierro wrote: > > The web2py book app has been rewritten > >http://www.web2py.com/bo

[web2py] Re: Scaling Web2py

2012-09-01 Thread Niphlod
1. DAL is not a database. My point was: if you can't get your mongodb instance to return 1m requests per second (using nothing but mongoitself), surely web2py can't help with that. 2. never said that. Every app needs different requirements. That being said, there is at least one instance of web2

[web2py] Re: SQLite DLL with ICU - support multilingual LIKE statements and ORDER BY

2012-09-01 Thread Dysmas
Would you be so kind as to give some examples of how it is possible to make multilingual LIKE statements ? Or perhaps just say if what I am looking for is possible. We have been using MySQL until now with a modified unicode collation. It allowed us to search for example : ... LIKE "me%" ... and

[web2py] Re: Is it bug or feature?

2012-09-01 Thread Donatas Burba
I have resolved the problem by creating VirtualField and this is part of previous source: query = ... records = db(query).select(..., db.auth_user.first_name, db.auth_user.last_name, join=[..., db.auth_user.on(db.auth_user.id==...)]) for i, r in enumerate(records):

[web2py] Self referencing with lazy_tables

2012-09-01 Thread Donatas Burba
I noticed a problem with self referencing tables and option lazy_tables=True. This is my code: - model - db.define_table('biography_available_award', Field('title', label=T('biography_available_award__title')), Field('parent_id', 'reference biography_available_award'), Field

[web2py] Re: Scaling Web2py

2012-09-01 Thread Webtechie
Thanks for the quick reply . I apologize for not being clear . I do not have a specific web app or use case in my mind . I just wanted to know whether it can be used for large-scale projects (yes . I understand that now) . However i could not interpret some points of your reply . 1. Database -

[web2py] Re: web2py book on github

2012-09-01 Thread Niphlod
the docs on the scheduler are ready in markmin because they are embedded into w2p_scheduler_tests. Really don't know where to put those, it's a pretty long section. On Saturday, September 1, 2012 11:37:11 PM UTC+2, Massimo Di Pierro wrote: > > These features are now documented in the html book.

[web2py] Re: tickets2email.py not showing traceback

2012-09-01 Thread Niphlod
I'll open a bug on google code with the patch. Strange that you got mails, it should have gone into exception before. On Saturday, September 1, 2012 11:38:54 PM UTC+2, Jose C wrote: > > Hi Niphlod, > > On Saturday, September 1, 2012 8:52:08 PM UTC+1, Niphlod wrote: >> >> And you get mails ? >> > >

[web2py] Re: tickets2email.py not showing traceback

2012-09-01 Thread Jose C
Hi Niphlod, On Saturday, September 1, 2012 8:52:08 PM UTC+1, Niphlod wrote: > > And you get mails ? > yes, definitely. One per ticket, just without any text in the body. > I get errors (no mail are sent), for a minor bug. > Could you try modifying the script a little bit ? > > right after the

[web2py] Re: web2py book on github

2012-09-01 Thread Massimo Di Pierro
These features are now documented in the html book. Working on more. [x] Support for DAL(lazy_tables=True) and db.define_table(on_define=lambda table:), thanks Jonathan [x] db(...).select(cacheable=True) make select 30% faster [x] db(...).select(cache=(cache.ram,3600)) now caches parsed data 100x

[web2py] Re: web2py book on github

2012-09-01 Thread Massimo Di Pierro
thanks. On Saturday, 1 September 2012 15:53:50 UTC-5, rif wrote: > > Another small patch to chapter with to changes: > > postrgresql:// -> postgres:// > hocalhost -> localhost > > sâmbătă, 1 septembrie 2012, 20:00:49 UTC+3, Massimo Di Pierro a scris: >> >> The web2py book app has been rewritten >

Re: [web2py] web2py appliance released by Turnkey Linux

2012-09-01 Thread Massimo Di Pierro
Let's wait a week that web2py is stabilized. Then we'll contact them. They are very responsive. On Saturday, 1 September 2012 15:22:41 UTC-5, rochacbruno wrote: > > It is running web2py 1.99.7, is there a way they upgrade to 2.0.5 ? > > *Bruno Cezar Rocha** - @rochacbruno* > rocha...@gmail.com |

Re: [web2py] web2py mirrors

2012-09-01 Thread Massimo Di Pierro
If you provide the script I can do the tagging. On Saturday, 1 September 2012 15:03:51 UTC-5, Michele Comitini wrote: > > What about using tagging on git combined with a simple script? > > mic > Il giorno 01/set/2012 19:15, "Massimo Di Pierro" > > > ha scritto: > >> Some of you have offered to r

Re: [web2py] help with apache

2012-09-01 Thread Massimo Di Pierro
Thanks. Yes I missed it. So we need to start uuidd at os startup. On Saturday, 1 September 2012 13:53:36 UTC-5, Niphlod wrote: > > uhm, someone did not read carefully ^_^ I'll post here the relevant > post from the thread before, I think the user in question (pcastellazzi) > nailed it. > >

[web2py] Re: web2py book on github

2012-09-01 Thread rif
Another small patch to chapter with to changes: postrgresql:// -> postgres:// hocalhost -> localhost sâmbătă, 1 septembrie 2012, 20:00:49 UTC+3, Massimo Di Pierro a scris: > > The web2py book app has been rewritten > >http://www.web2py.com/book > > and the source of the app and the book itse

Re: [web2py] web2py appliance released by Turnkey Linux

2012-09-01 Thread Bruno Rocha
It is running web2py 1.99.7, is there a way they upgrade to 2.0.5 ? *Bruno Cezar Rocha** - @rochacbruno* rochacbr...@gmail.com | Mobile: +55 (11) 99210-8821 www.CursoDePython.com.br | www.rochacbruno.com.br Blog: Using Python to get all the external links from a webpage

Re: [web2py] Re: web2py 2.0.5 is out

2012-09-01 Thread Richard Vézina
Confirm backward compatibility. I just migrate from 1.99.4 to 2.0.5 Notice, that I change : controllers/appadmin.py static/css/* static/js/* static/images/* views/*generic.* views/web2py_ajax.html With the files form welcome app, provided within web2py. Thanks Massimo and all developers for th

Re: [web2py] id and legacy id name in row object gone with 1.99.7 can we have it back

2012-09-01 Thread Richard Vézina
Gone! I get my app to work under 2.0.5 without much problem, just one thing broke, but I don't understand why for now, but it pretty not important. So, I confirm that : for row in db(db.table.id>0).select(): print row.id OR print row.legacy_id Works. I am pretty happy about that!

Re: [web2py] web2py mirrors

2012-09-01 Thread Michele Comitini
What about using tagging on git combined with a simple script? mic Il giorno 01/set/2012 19:15, "Massimo Di Pierro" ha scritto: > Some of you have offered to run web2py mirrors. > > Now that the book is finally on github and no loger requires db (nor does > examples app) we should be able to set

[web2py] Re: tickets2email.py not showing traceback

2012-09-01 Thread Niphlod
And you get mails ? I get errors (no mail are sent), for a minor bug. Could you try modifying the script a little bit ? right after the while 1: for file in os.listdir(path): filename = file #instead of os.path.join(path, file) and the os.unlink line, replace with: os.unlink(os.path.join(path

[web2py] web2py appliance released by Turnkey Linux

2012-09-01 Thread rik goldman
TurnKey Linux did it. Web2py appliance now available in several forms from http://www.turnkeylinux.org/web2py. --

[web2py] Re: tickets2email.py not showing traceback

2012-09-01 Thread Jose C
Hi Niphlod, I copied it to my own custom_scripts directory (in order to tweak some settings later, nothing changed yet) and run it like this: python web2py.py -S m_winp_ca -N -R applications/m_winp_ca/custom_scripts/tickets2email.py --

[web2py] Re: Scaling Web2py

2012-09-01 Thread David Marko
Hi all, i'm also curious on this. Can howesc share his experience ... Or others ? We are planing project for estimated 1mil views per working hours (in 12 hours in day). I know that there are many aspects but generaly would be encouraging to hear real life data with architecture info. How many

Re: [web2py] help with apache

2012-09-01 Thread Niphlod
uhm, someone did not read carefully ^_^ I'll post here the relevant post from the thread before, I think the user in question (pcastellazzi) nailed it. The python uuid library use libuuid from e2fsprogs (at least in > ubuntu). This particular uuid library spanws a daemon called uuidd to >

[web2py] Re: Date widget isn't displaying?

2012-09-01 Thread Niphlod
you need to include calendar.js and web2py.js at least. Those lines in web2py.js initialize the calendar widget on any input that has a class of time, date or datetime. ... var date_format = (typeof w2p_ajax_date_format != 'undefined') ?w2p_ajax_date_format : "%Y-%m-%d"; var datetime_format

[web2py] Re: Scaling Web2py

2012-09-01 Thread Niphlod
is the sky blue, really really blue ? those kind of questions really makes me wonder. What is "high volume of traffic" ? 1k concurrent requests ? 10GB/hour of traffic ? many small requests? less requests but requesting a large chunk of data? The data returned to the users will be the result of

[web2py] Re: wrong link to usergroup on the web site

2012-09-01 Thread Alec Taylor
Also we don't need the question mark, i.e.: this will work fine - https://groups.google.com/forum/#!forum/web2py On Sunday, September 2, 2012 3:29:41 AM UTC+10, Massimo Di Pierro wrote: > > Looks like it is a markmin bug (combined with a weird choice of url link > from google). > > On Saturday

[web2py] Date widget isn't displaying?

2012-09-01 Thread Alec Taylor
I can't seem to get the date widget to work. Using the following with crud.create still leaves me without a date widget, even though I've been overly explicit: db.define_table( 'dob', Field('user_id', db.auth_user, unique=True, default=auth.user_id, readable=False, writable=False),

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread paolo.vall...@gmail.com
Hi Massimo, first of all thank you for spending time on it! The first test ends as the others, namely the first time it works, then it raises an error. The the second test works without any problem :-) To solve the issue, I will change the code to follow what you have suggested in the second test.

[web2py] Re: wrong link to usergroup on the web site

2012-09-01 Thread Massimo Di Pierro
Looks like it is a markmin bug (combined with a weird choice of url link from google). On Saturday, 1 September 2012 12:16:35 UTC-5, Massimo Di Pierro wrote: > > ouch! > > > On Saturday, 1 September 2012 12:04:47 UTC-5, Nico Zanferrari wrote: >> >> Hello, I've noticed a little problem on the webs

[web2py] Re: Date format in CRUD forms

2012-09-01 Thread Massimo Di Pierro
Actually simon that is not how you should do it because it will break stuff. The data format appears in two places: - web2py.js for the popup calendar - the IS_DATE(), IS_DATETIME() validators. They have to be the same in both. They are always wrapped in a T(...) so all you should need to do it

[web2py] Re: wrong link to usergroup on the web site

2012-09-01 Thread Massimo Di Pierro
ouch! On Saturday, 1 September 2012 12:04:47 UTC-5, Nico Zanferrari wrote: > > Hello, I've noticed a little problem on the website. At > http://www.web2py.com/examples/default/usergroups, the first link is > somehow broken in the middle - being written as > > https://groups.google.com/forum/?f

[web2py] web2py mirrors

2012-09-01 Thread Massimo Di Pierro
Some of you have offered to run web2py mirrors. Now that the book is finally on github and no loger requires db (nor does examples app) we should be able to setup mirroring rules. Mirroring the book is easy, just dowload from github every day. Mirroring examples/ is also easy but it should be d

[web2py] Re: web2py 2.0.5 is out

2012-09-01 Thread Massimo Di Pierro
I agree. we kind of have a referral program (experts4solutions.com) and I am happy to sell support to businesses. We need to create more structure. There are definitively business opportunities. On Saturday, 1 September 2012 08:32:55 UTC-5, apps in tables wrote: > > So, How to do business with

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-09-01 Thread Massimo Di Pierro
I see. So you propose auth.navbar without auth.define_tables. Now I understand and this makes sense. Please open a ticket or send me a patch, whatever is easier. ;-) Massimo On Saturday, 1 September 2012 11:51:40 UTC-5, Anthony wrote: > > Many requests don't require Auth at all (i.e., public p

Re: [web2py] help with apache

2012-09-01 Thread Massimo Di Pierro
On my machine it is 100% of the times. Strange. what calls uuidd? Perhaps the new CRYPT logic which calls web2py_uuid() On Saturday, 1 September 2012 09:47:48 UTC-5, Marin Pranjić wrote: > > Maybe not so easy... I only got it twice and I have no idea what exactly > did I do. > This will take a w

[web2py] Re: Is it bug or feature?

2012-09-01 Thread Massimo Di Pierro
I need to see more code to debug this. I cannot say if it ia bug or not. On Saturday, 1 September 2012 09:44:00 UTC-5, Donatas Burba wrote: > > Hello, I'm testing new web2py release and not all my code works on it. So > the question: is ir bug or feature that in lines (gluon/sqlhtml.py, lines >

[web2py] wrong link to usergroup on the web site

2012-09-01 Thread Nico Zanferrari
Hello, I've noticed a little problem on the website. At http://www.web2py.com/examples/default/usergroups, the first link is somehow broken in the middle - being written as https://groups.google.com/forum/?fromgroups#!forum/web2py/ in this way it points to the generic google groups site, and n

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread Massimo Di Pierro
One more test: def getdb(): return db db.reviews.pos = Field.Lazy(lambda row,db=getdb: db()((db().reviews_like.review_id == row.reviews.id) & (db().reviews_like.helpful == True)).count() ) db.reviews.neg = Field.Lazy(lambda row,db=getdb: db()((db().reviews_like.review_id == row.reviews.id) & (

[web2py] web2py book on github

2012-09-01 Thread Massimo Di Pierro
The web2py book app has been rewritten http://www.web2py.com/book and the source of the app and the book itself is now on github https://github.com/mdipierro/web2py-book/tree/master/sources Hopefully this will make it easier to keep it updated. You can just send me patches. You can also

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-09-01 Thread Anthony
Many requests don't require Auth at all (i.e., public part of website). Yet generating the navbar still requires an Auth instance. Just for the navbar, though, there's no reason to define all the db tables. Likewise, even for parts of the site that require login, @auth.requires_login() does not

[web2py] Scaling Web2py

2012-09-01 Thread Webtechie
I would like to use web2py for a web application which has large databases (really large) , expects high volume of traffic . Are there any ways to make web2py apps run faster ? (like really faster ) , (looking for solutions apart from pooling more hardware and replacing Cpython wth pypy , runn

[web2py] Is it bug or feature?

2012-09-01 Thread Donatas Burba
Hello, I'm testing new web2py release and not all my code works on it. So the question: is ir bug or feature that in lines (gluon/sqlhtml.py, lines 2419-2422) try: field = sqlrows.db[tablename][fieldname] except KeyError: field = None I got: ... File "/home/donatas/ProCursus/projects/

[web2py] Scaling web2py

2012-09-01 Thread Webtechie
I would like to use web2py for a web application which has large databases (really large) , expects high volume of traffic . Are there any ways to make web2py apps run faster ? (like really faster ) , (looking for solutions apart from pooling more hardware and replacing Cpython wth pypy , runn

[web2py] How to persist session data for user across browsers

2012-09-01 Thread monotasker
I'd like my app to preserve a "state" for each user for 24-hours, even if s/he - logs out and back in - switches browsers - switches IP (i.e., uses a different device) What would be the best way to do this? I'm already using the session object to preserve state in the app. So I was thinking th

[web2py] Re: tickets2email.py not showing traceback

2012-09-01 Thread Niphlod
how do you run it ? I might have seen a small bug. On Saturday, September 1, 2012 5:58:28 PM UTC+2, Jose C wrote: > > First web2py app and trying to set up emailing tickets. When the > tickets2email.py script runs, I get sent an email for each ticket with `new > web2py ticket` in the subject li

[web2py] tickets2email.py not showing traceback

2012-09-01 Thread Jose C
First web2py app and trying to set up emailing tickets. When the tickets2email.py script runs, I get sent an email for each ticket with `new web2py ticket` in the subject line, however nothing at all appears in the bodies of the emails. The tickets are successfully deleted from the disk as th

Re: [web2py] help with apache

2012-09-01 Thread Marin Pranjić
Maybe not so easy... I only got it twice and I have no idea what exactly did I do. This will take a while... It is hard to reproduce. On Sat, Sep 1, 2012 at 2:25 PM, Marin Pranjić wrote: > Sure. First I need to find out what triggers it but that should be easy > part. > > > > On Sat, Sep 1, 2012

[web2py] Re: upgrade ubuntu to 12.04.1

2012-09-01 Thread Ron McOuat
I moved to 12.04 not long after it came out. PostgreSQL will require migration to 9.1 which for me was painless. I have not had any problems with 15 systems running web2py under apache2 with PostgreSQL as the database. Ron On Thursday, 30 August 2012 00:55:07 UTC-7, andrej burja wrote: > > hi

[web2py] Re: web2py 2.0.5 is out

2012-09-01 Thread apps in tables
So, How to do business with web2py? How to find a customer ( needs web app )? How to find a technical support ? I think the business side of web2py needs to be wraped up in a video by massimo... On Saturday, September 1, 2012 4:26:56 PM UTC+3, apps in tables wrote: > > Most of the users will

[web2py] Re: web2py 2.0.5 is out

2012-09-01 Thread apps in tables
Most of the users will donate, specially the ones who do business with web2py. On Saturday, September 1, 2012 3:30:12 PM UTC+3, Massimo Di Pierro wrote: > > No you do not win anything. It means make a gift to web2py. It is the > usual donation box. > > On Saturday, 1 September 2012 00:38:29 UTC-

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread paolo.vall...@gmail.com
Hi Massimo, I've just tried both strategies you suggested but I got the same behavior; namely the first time it works, the second rises the error. Paolo 2012/9/1 Massimo Di Pierro : > I do not fully understand this. It mush have something to do with the > scoping of variables in python. > > Can y

[web2py] Re: web2py 2.0.5 is out

2012-09-01 Thread Massimo Di Pierro
No you do not win anything. It means make a gift to web2py. It is the usual donation box. On Saturday, 1 September 2012 00:38:29 UTC-5, apps in tables wrote: > > make a gift to win 10,000 ??? > > it is in the main page of web2py.com > > --

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread Massimo Di Pierro
I do not fully understand this. It mush have something to do with the scoping of variables in python. Can you try replace db.reviews.pos = Field.Lazy(lambda row: db((db.reviews_like.review_id == row.reviews.id) & (db.reviews_like.helpful == True)).count() ) db.reviews.neg = Field.Lazy(lambda ro

Re: [web2py] help with apache

2012-09-01 Thread Marin Pranjić
Sure. First I need to find out what triggers it but that should be easy part. On Sat, Sep 1, 2012 at 2:13 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you try figur out which web2py change introduced the problem? > > > On Saturday, 1 September 2012 00:12:57 UTC-5, Marin Pranj

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-09-01 Thread Massimo Di Pierro
I agree. What I do not understand is why would anybody want to instantiate the auth object if the auth_* tables are not there. auth = Auth(db) ... auth.define_tables() in my mind are like: begin creating authentication logic end creating authentication logic If t

[web2py] Re: Foreign Key not showing up in form (One table only)

2012-09-01 Thread Massimo Di Pierro
db.define_table('orders', ... format = '%(id)s' ) tables need a format for the record else the automatic validators for the dropdown cannot be created. On Saturday, 1 September 2012 00:54:52 UTC-5, Kevin C wrote: > > We're having a strange issue he

Re: [web2py] help with apache

2012-09-01 Thread Niphlod
I think the problem you are facing is the one described here Massimo: https://groups.google.com/forum/?fromgroups=#!topic/django-users/yDp6oSuxER0 Never happened to me, but I use nginx+uwsgi since forever, I'm not very well versed in apache... --

Re: [web2py] help with apache

2012-09-01 Thread Massimo Di Pierro
Can you try figur out which web2py change introduced the problem? On Saturday, 1 September 2012 00:12:57 UTC-5, Marin Pranjić wrote: > > I have the same problem, but starting web2py with WingIDE debugger > (rocket). It happens on ubuntu but not on windows (I do not use windows > much so maybe I

[web2py] Re: Can't get linkto working in SQLFORM

2012-09-01 Thread david xiao
Hi, Not sure if there is anybody else using it or trying it, but I encounter this as a start, and hanged there for some time. In order to help starter going easier, it'd be better to correct it. Because SQLFORM class can not be modified, then just to correct the example in the book.

[web2py] Re: How to modify Welcome application so that users with "do not want to be tracked" can still register?

2012-09-01 Thread nc
Hi Massimo, Anthony, Thanks for your replies. I mistakenly thought that it was the "Tell websites I do not want to be tracked" option that caused the registration to fail - it was actually because the "Accept cookies from sites" Firefox option was disabled. Taking Anthony's suggestion, I tri

Re: [web2py] Re: Lazy_tables with virtual fields

2012-09-01 Thread João Saraiva
Hello, Could it be something related to Dropbox's sync mechanism? Have you tried running your app in another folder outside of Dropbox's reach? Would probably explain why your example works fine on other user's machines. Best regards, JS On Saturday, September 1, 2012 6:34:39 AM UTC+1, Paolo