[web2py] Re: return user defined xml in web2py

2012-10-15 Thread deepak
any updates/help... --

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Martin Weissenboeck
The trunc version solved my problem 2012/10/16 Massimo Di Pierro > This helped a lot. I was able to reproduce it and fix it. Can you please > check it in trunk. I can post 2.1.2 later tonight. > > > On Monday, 15 October 2012 19:18:09 UTC-5, Ricardo Pedroso wrote: > >> Forget to mention that you

[web2py] Re: doc suggestion

2012-10-15 Thread weheh
Change bar shows a vertical bar on right side of page spanning lines of text that have changed from the previous version(s). Optional is self-explanatory. On Sunday, October 14, 2012 5:10:37 PM UTC+8, Niphlod wrote: > > ehm what are "optional change bars" like ? > > On Sunday, October 14, 20

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread weheh
msg = 'this is a very long string ...' msg += 'this is some more ' msg += 'and more ...' db.define_table(..., Field='xyz', label=DIV(msg, _style='width: 100px;'), ...) On Tuesday, October 16, 2012 10:10:20 AM UTC+8, Don_X wrote: > > weheh ! > > Thank you for your response ... but this

[web2py] Re: web2py with riak

2012-10-15 Thread ajith c t
One more thing, since web2py uses the db variable in most of the authentication or even in the menu builder code, and many more cases, what should I do in these situations. I think there wont be any connection string for the riak-python client when creating a new application. If possible can yo

[web2py] Re: return user defined xml in web2py

2012-10-15 Thread deepak
3. I wanted to use attributes inside XML tags , thats wy i go for xmlwitch, which i feel is so lightweight to use --

[web2py] return user defined xml in web2py

2012-10-15 Thread deepak
Hi, 1. How do i return user defined XML with custom tags in web2py? 2. I wanted to use xmlwitch but i get the below error when i try to return the xml object: error on line 1 at column 26: Specification mandate value for attribute instance def get_xml(): xml = xmlwitch.Builder(version='1.

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread Anthony
Yes, the label can take an HTML helper -- but wouldn't it have been much faster and easier to just try that rather than post a question about it? ;-) On Monday, October 15, 2012 10:10:20 PM UTC-4, Don_X wrote: > > weheh ! > > Thank you for your response ... but this is not what I am looking for !

[web2py] Re: GAE issue - app works on Appspot - not on desktop

2012-10-15 Thread howesc
can you show us the error from the GAE log console when running locally? chances are the code you downloaded has an app.yaml config or something that is not compatible with the latest GAE SDK (i've had that happen to me in the past couple of years). i still use modules as on all other platform

[web2py] Re: GAE: importing code into controllers

2012-10-15 Thread howesc
while i'm still using 2.0.xi've not had module import problems on GAE for several versions of web2py. if you are still having problems can you post an example with the error messages? On Monday, October 15, 2012 10:19:15 AM UTC-7, b00m_chef wrote: > > I have an app and need to split out som

[web2py] GAE and count and smartgrid

2012-10-15 Thread howesc
Hi all, I am trying to integrate smartgrid into my web2py GAE app..but i have some tables with millions of rows, so when i want to load a table with no query filters the count() fails to return on GAE in 60 seconds. I'm thinking about creating a patch to grid/smartgrid that does not use row

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread Don_X
Good Job Massimo and to the whole crew ! I was wandering ... when do we get to have various types of custom response flash messages or levels of response flash messages I think there was a similar suggestion sometime ago ? ... --

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread Don_X
weheh ! Thank you for your response ... but this is not what I am looking for ! I know about what you suggested below .. this is how it is declared .. indeed ! Now ... Can the label argument take an HTML helper of somekind, so if the translation of 'mylabel' happens and it is too long of an

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread weheh
Check the doc on Database Abstraction Level for the full signature of Field. The Field argument to db.define_table includes the label argument, and yes, you can do something like this: db.define_table('mytable', Field(myfield, label=T('mylabel'), ) On Tuesday, October 16, 2012 8:41:07

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread apps in tables
deploy to openshift : cannot import name dir_util --

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread Massimo Di Pierro
The book is now kind of in between versions it is correct but some of the new features are not described and some example use old API while there is a better way. I plan to finish update it and release the 5th editions within one month. Hopefully sooner. On Monday, 15 October 2012 20:01:33

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread apps in tables
Fantastic.as usual. tiny hint: can the book title be more descriptive of the related version of web2py ? On Monday, October 15, 2012 8:30:42 PM UTC+3, martzi wrote: > > Many thanks Massimo web2py is here to stay ! > > On Monday, October 15, 2012 1:55:39 PM UTC+2, Massimo Di Pierro wrote: >

[web2py] Re: inserting/updating NULL values via db admin screens

2012-10-15 Thread Massimo Di Pierro
Good point. If the field is of type string, the form does distinguish between an empty string and null, assumes an empty string. On Monday, 15 October 2012 19:50:31 UTC-5, Yarin wrote: > > Is it possible to work with NULL values via the DB admin screens? > > I've got a bunch of string fields tha

[web2py] Re: Generating generic controllers and generic views, on the fly...

2012-10-15 Thread apinho
Thank you, I was missing the point completely. I was using links like */default/modelA_read*. ...then I had in controller */default.py* : def modelA_read(): return generic_read() ... and in */models/generic.py* def generic_read(): table= request.function.replace

[web2py] inserting/updating NULL values via db admin screens

2012-10-15 Thread Yarin
Is it possible to work with NULL values via the DB admin screens? I've got a bunch of string fields that should default to NULL, but everytime I try to insert a record through the admin screens they wind up as empty strings. Worse, existing records that have NULL values get those values replac

[web2py] Basic question about CSS / Web2py !

2012-10-15 Thread Don_X
Hello web2py users, This is a basic enquiry : but not insignificant ! Is it possible to wrap a label name - one example among many similar situations that I am encountering : within a table define, a label is set for a field as follows : .. label =T('Re-enter email') . when the T fu

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Massimo Di Pierro
This helped a lot. I was able to reproduce it and fix it. Can you please check it in trunk. I can post 2.1.2 later tonight. On Monday, 15 October 2012 19:18:09 UTC-5, Ricardo Pedroso wrote: > > Forget to mention that you must make two requests, the first one will save > the > session and the se

[web2py] Re: Generating generic controllers and generic views, on the fly...

2012-10-15 Thread Anthony
> > def generic_read(): ># Do all work here, get mydata, generate forms, pagination, > etc... > Well, that's the part we need to see. Is getting the data, generating the forms, pagination, etc. fairly generalized? Instead of having so many controllers and views, maybe you can g

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Ricardo Pedroso
Forget to mention that you must make two requests, the first one will save the session and the second one will read from session and will fail Ricardo On Tue, Oct 16, 2012 at 1:10 AM, Ricardo Pedroso wrote: > On Mon, Oct 15, 2012 at 9:37 PM, Massimo Di Pierro > wrote: >> This is not the behavio

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Ricardo Pedroso
On Mon, Oct 15, 2012 at 9:37 PM, Massimo Di Pierro wrote: > This is not the behavior. Quote the opposite. This should work better in > web2py 2.1 than before. Can you post a simple app so that I can reproduce it > and debug it? Below a simple app that expose the problem. I guess the problem is re

[web2py] Re: web2py memory leak

2012-10-15 Thread Massimo Di Pierro
These numbers are 100x larger than they should be. For me the memory is between 27MB and 90MB. Do you keep then entire DB in Ram? Are you caching some large objects in Ram? Or perhaps you are selecting lots of records and store them in session? Something is very wrong. On Monday, 15 October

[web2py] Re: Generating generic controllers and generic views, on the fly...

2012-10-15 Thread apinho
Ok, will try a more concrete example, and I'll start by showing what I used to have : In *MODELS/MODELS.PY *: db.define_table('modelA ', Field('modelA_field1','string), Field('modelA_field2','string), ) db.define

[web2py] Re: auth.wiki usage

2012-10-15 Thread Bill Thayer
After checking SQL developer and discovering the Triggers were not made for web2py_storage_tamoto table I recalled this post: https://groups.google.com/d/msg/web2py/r7qMRK2Eir0/D91Ine9NMzkJ from earlier today. That error occured at line 2865 in dal.py so the triggers never got created. So using

[web2py] Re: web2py memory leak

2012-10-15 Thread Bill Thayer
Generally I pay attention to the physical memory in the task manager. I generally use about 3.5 to 4.5 GB but if I leave the rocket server on for a very long time it will grow to 5.5 GB and give me problems. If I forget and leave it on all night I will have to hard boot my PC. The basic behavio

[web2py] Re: auth.wiki usage

2012-10-15 Thread Bill Thayer
Hi Massimo. Yes the problem is not with the sqlite. I just confirmed that it does work and the session table is in the databases folder. My Oracle db already has the auth tables and web2py_session table defined. I suspect there is a null value for the user field since no one would be logged in

[web2py] Re: auth.wiki usage

2012-10-15 Thread Bill Thayer
Hi villas, Yes I agree and did do that. My development is at point where my tables are defined. If I go much farther into development without deploying to the test server than it is too difficult to narrow down errors so i want to focus on the basic functionality up front. With all of the erro

[web2py] Re: auth.wiki usage

2012-10-15 Thread Massimo Di Pierro
I am using sqlite and I tried sessions in db (again) and I cannot reproduce this problem. On Monday, 15 October 2012 16:03:45 UTC-5, Bill Thayer wrote: > > Thought I'd start over with a brand new application & get the wiki working > but I am running into difficulty before I even get to the wiki

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Massimo Di Pierro
In trunk! Thank you. On Monday, 15 October 2012 16:22:30 UTC-5, dbdeveloper wrote: > > Done > > У пн, 2012-10-15 у 13:34 -0700, Massimo Di Pierro пише: > > OK. send me a patch. :-) > > On Monday, 15 October 2012 12:44:48 UTC-5, Fran wrote: > > On 15 October 2012 18:36, Vladyslav Kozlovskyy wrote

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Vladyslav Kozlovskyy
Done У пн, 2012-10-15 у 13:34 -0700, Massimo Di Pierro пише: > OK. send me a patch. :-) > > On Monday, 15 October 2012 12:44:48 UTC-5, Fran wrote: > > On 15 October 2012 18:36, Vladyslav Kozlovskyy > wrote: > > We have [is_gae] variable in [gluon/languages.py] to avoid

[web2py] Re: auth.wiki usage

2012-10-15 Thread villas
Hi Bill My experience is that it isn't a good idea to do experimental development on a tricky DB. It is too easy to bite off more than you can chew. You will save heaps of time by prototyping your app on Sqlite first. Only when your data schema becomes more stable should you move over to y

[web2py] Re: auth.wiki usage

2012-10-15 Thread Bill Thayer
Thought I'd start over with a brand new application & get the wiki working but I am running into difficulty before I even get to the wiki part. I created a brand new app and started by moving my 0.py file into models then edited db.py like so: if not request.env.web2py_runtime_gae: ## if NO

[web2py] Re: Reloading modules stops working after some time ...

2012-10-15 Thread Massimo Di Pierro
Can you do from gluon.custom_import import * track_changes(True) print is_tracking_changes() does it print True all time? It should. On Monday, 15 October 2012 15:43:49 UTC-5, David Marko wrote: > > Using the latest trunk ... Updated today --

[web2py] Re: web2py memory leak

2012-10-15 Thread Massimo Di Pierro
It would help if we could isolate the problem. How are you measuring it? make sure you are not running cron jobs in background (with <2.1 cron was always enabled) moreover web2py's memory usage may grows for the first 100 requests than some stuff is garbage collected and it stabilizes. massimo

[web2py] Re: web2py with riak

2012-10-15 Thread ajith c t
Thank you for your fast response. I am developing an application having its frontend written in web2py and the database using the riak since my project will be handling huge volumes of data. Hope my work will be made easier if at all an adapter and commands similar to the mysql or mongodb adapte

Re: [web2py] Re: cannot upgrade to 2.1.1 from GUI on Pythonanywhere

2012-10-15 Thread Nico Zanferrari
I've just tried to upgrade from the PythonAnywhere standard 1.99.7 : it updates only to 2.0.9, and it still shows 2.1.1 as available! So, it seems that it downloads 2.0.9 instead than the current last version 2.1.1 --

[web2py] Re: Reloading modules stops working after some time ...

2012-10-15 Thread David Marko
Using the latest trunk ... Updated today --

[web2py] Re: web2py memory leak

2012-10-15 Thread Bill Thayer
That's all I have right now. Haven't tried it with SQLLite. On Monday, October 15, 2012 3:35:25 PM UTC-5, Massimo Di Pierro wrote: > > I this only work Oracle? > > On Monday, 15 October 2012 14:56:44 UTC-5, Bill Thayer wrote: >> >> >> Perhaps someone can check session.connect with Oracle for a r

[web2py] Re: Reloading modules stops working after some time ...

2012-10-15 Thread Massimo Di Pierro
Which version? Make sure you are using 2.1.1 because we changes something in this respect. On Monday, 15 October 2012 15:15:42 UTC-5, David Marko wrote: > > I have a module in my app that i was working on extensively today. I > realised that web2py doesnt reload it correctly when change tracki

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Massimo Di Pierro
This is not the behavior. Quote the opposite. This should work better in web2py 2.1 than before. Can you post a simple app so that I can reproduce it and debug it? On Monday, 15 October 2012 15:05:23 UTC-5, Ricardo Pedroso wrote: > > On Mon, Oct 15, 2012 at 9:01 PM, Ricardo Pedroso > > > wrote

[web2py] Re: web2py memory leak

2012-10-15 Thread Massimo Di Pierro
I this only work Oracle? On Monday, 15 October 2012 14:56:44 UTC-5, Bill Thayer wrote: > > > Perhaps someone can check session.connect with Oracle for a rocket server > memory leak? > To reproduce on windows 7 using web2py 2.1.1 from source: > 1) Create a new simple application called simpleapp w

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Massimo Di Pierro
OK. send me a patch. :-) On Monday, 15 October 2012 12:44:48 UTC-5, Fran wrote: > > On 15 October 2012 18:36, Vladyslav Kozlovskyy > > > wrote: > > We have [is_gae] variable in [gluon/languages.py] to avoid writting > dicts in > > Google AppEngine. > > All we need is to make such replacement

[web2py] Reloading modules stops working after some time ...

2012-10-15 Thread David Marko
I have a module in my app that i was working on extensively today. I realised that web2py doesnt reload it correctly when change tracking enabled. I did some changes to module, after some 4 or 5 save/reload cycles wbe2py stopped reloading the module so old code runned. I could see old messages p

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Ricardo Pedroso
On Mon, Oct 15, 2012 at 9:01 PM, Ricardo Pedroso wrote: > On Mon, Oct 15, 2012 at 7:56 PM, Martin Weissenboeck > wrote: >> Upgraded to 2.1.1. >> I get: >> >> Traceback (most recent call last): > > (...) > >> File "D:\web2py\gluon\dal.py", line 7146, in __getattr__ >> >> >> if ogetattr(self

Re: [web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Ricardo Pedroso
On Mon, Oct 15, 2012 at 7:56 PM, Martin Weissenboeck wrote: > Upgraded to 2.1.1. > I get: > > Traceback (most recent call last): (...) > File "D:\web2py\gluon\dal.py", line 7146, in __getattr__ > > > if ogetattr(self,'_lazy_tables') and \ > > > AttributeError: 'DAL' object has no attribute

[web2py] Re: web2py memory leak

2012-10-15 Thread Bill Thayer
Perhaps someone can check session.connect with Oracle for a rocket server memory leak? To reproduce on windows 7 using web2py 2.1.1 from source: 1) Create a new simple application called simpleapp where simpleapp is the name of an application with an Oracle table for storing sessions 2) Create a

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Vladyslav Kozlovskyy
sure, it's a right decision :) У пн, 2012-10-15 у 18:44 +0100, Fran Boon пише: > On 15 October 2012 18:36, Vladyslav Kozlovskyy wrote: > > We have [is_gae] variable in [gluon/languages.py] to avoid writting dicts in > > Google AppEngine. > > All we need is to make such replacement in [gluon/lan

[web2py] Re: A suggestion on SQLFORM

2012-10-15 Thread VP
Thanks. On Monday, October 15, 2012 12:44:01 PM UTC-5, Massimo Di Pierro wrote: > > There is a way: > > 1) remove the dropdown while still doing validation serverside: > > db.order.product.requires = [IS_IN_DB(db,'product.id','%(name)s')] > > (By having the validator in a list, it will not cr

[web2py] 'DAL' object has no attribute '_lazy_tables'

2012-10-15 Thread Martin Weissenboeck
Upgraded to 2.1.1. I get: Traceback (most recent call last): File "D:\web2py\gluon\main.py", line 517, in wsgibase session.connect(request, response) File "D:\web2py\gluon\globals.py", line 611, in connect self.__hash = hashlib.md5(str(self)).digest() File "D:\web2py\gluon\stora

Re: [web2py] Re: cannot upgrade to 2.1.1 from GUI on Pythonanywhere

2012-10-15 Thread Nico Zanferrari
No, I'm sure about this - I've restarted it after the update and the version shown (and what I see from the bare files) is not changed from 2.0.9. I've also tried to update again, but it didn't work. --

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Fran Boon
On 15 October 2012 18:36, Vladyslav Kozlovskyy wrote: > We have [is_gae] variable in [gluon/languages.py] to avoid writting dicts in > Google AppEngine. > All we need is to make such replacement in [gluon/languages.py]: > replace > 38 is_gae = settings.global_settings.web2py_runtime_gae > with > 3

[web2py] Re: A suggestion on SQLFORM

2012-10-15 Thread Massimo Di Pierro
There is a way: 1) remove the dropdown while still doing validation serverside: db.order.product.requires = [IS_IN_DB(db,'product.id','%(name)s')] (By having the validator in a list, it will not create the dropdown) 2) add autocomplete: db.order.product.widget = SQLFORM.widgets.autocomplete(re

[web2py] Re: GAE: importing code into controllers

2012-10-15 Thread Massimo Di Pierro
Did you check with latest 2.1.1. We rewrote the import logic. On Monday, 15 October 2012 12:19:15 UTC-5, b00m_chef wrote: > > I have an app and need to split out some code. However, importing from > modules doesn't seem to work on GAE. How do you guys go about solving > this? Where do you keep

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Vladyslav Kozlovskyy
Hi all! We have [is_gae] variable in [gluon/languages.py] to avoid writting dicts in Google AppEngine. All we need is to make such replacement in [gluon/languages.py]: replace 38 is_gae = settings.global_settings.web2py_runtime_gae with 38 is_gae = settings.global_settings.web2py_runtime_gae or s

[web2py] Re: Performance overhead when making languages not writable

2012-10-15 Thread Massimo Di Pierro
write_dict() is only called if you have a new translation string that is not in the languages file. If you call [update all languages] before deployment, it should never be called in production unless you have: T("something %s" % variable) instead of T("something %s") % variable which means

Re: [web2py] Re: cannot upgrade to 2.1.1 from GUI on Pythonanywhere

2012-10-15 Thread Massimo Di Pierro
One issue is that upon download you must restart web2py. Could that be the problem? On Monday, 15 October 2012 11:49:36 UTC-5, Nico Zanferrari wrote: > > > > 2012/10/15 Massimo Di Pierro > > >> Is the problem specific of PythonAnywhere? Can you upgrade a local >> installation? >> > > > It upgrad

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread martzi
Many thanks Massimo web2py is here to stay ! On Monday, October 15, 2012 1:55:39 PM UTC+2, Massimo Di Pierro wrote: > > Changelog: > > - overall faster web2py > - when apps are deleted, a w2p copy left in deposit folder > - change in cron (it is now disabled by default). removed -N option and > i

[web2py] A suggestion on SQLFORM

2012-10-15 Thread VP
Let's say I have these 2 tables: product = db.define_table('product', Field('name')) order = db.define_table('order', Field('product', db.product)) Now, when you do something like this: form = SQLFORM(db.order) The product field will be a drop down list of products for you to choose. This is

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread VP
Great. I would really love to see list:double fields to be supported in the near future. Also, the current method of storing serialized objects in fields are kinda funky (both with json and pickle). You put in integers, doubles, etc. and you got back strings. --

[web2py] GAE: importing code into controllers

2012-10-15 Thread b00m_chef
I have an app and need to split out some code. However, importing from modules doesn't seem to work on GAE. How do you guys go about solving this? Where do you keep your non-controller code? --

Re: [web2py] Performance overhead when making languages not writable

2012-10-15 Thread Vinicius Assef
I'd like to have a global (app wide) option to not override my language files. On Mon, Oct 15, 2012 at 1:47 PM, Fran wrote: > On my Production servers I don't like the languages/* files to be writable - > I prefer to keep these files part of the application's version control & > translated outs

[web2py] Re: Problem with if loop

2012-10-15 Thread jw
What is k before the first line? {{=k}} What is the behaviour? Do you get a exception or only an unexpected behaviour of your code? On Sunday, October 14, 2012 7:47:36 PM UTC+2, k vamshi wrote: > > {{if k ==0:}} > {{for i in dic:}} >{{=k}} >

Re: [web2py] Re: cannot upgrade to 2.1.1 from GUI on Pythonanywhere

2012-10-15 Thread Nico Zanferrari
2012/10/15 Massimo Di Pierro > Is the problem specific of PythonAnywhere? Can you upgrade a local > installation? > It upgrades fine on my local Ubuntu 12.04 + Rocket, so it seems to be a specific PythonAnywhere problem. I don't have any particular customization there, so I think it's a genera

[web2py] Re: Problem with if loop

2012-10-15 Thread jw
Sorry, but there is no "if loop" only "if condition". If doesn't result in a repeating part of code. On Sunday, October 14, 2012 7:47:36 PM UTC+2, k vamshi wrote: > > {{if k ==0:}} > {{for i in dic:}} >{{=k}} >{{=i.Nam}} >

[web2py] Performance overhead when making languages not writable

2012-10-15 Thread Fran
On my Production servers I don't like the languages/* files to be writable - I prefer to keep these files part of the application's version control & translated outside the application. Currently this leads to a performance overhead as there are many times that write_dict() is called and so glu

[web2py] Pre-Selected field in form brings the wrong format after pressing submit

2012-10-15 Thread jw
Some time ago, I had this problem: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/pre-selected/web2py/gqB4Pfa-YbA/XpFjvNuHcykJ which turned out, as an Design-Problem which I solved (with a little bit of help by a friend). Now I have a different issue in the same form. In my dat

[web2py] Re: Another DAL question

2012-10-15 Thread lyn2py
Finally I found the solution to get the tags, but run into another issue with CONTAINS (vs BELONGS). The solution is to use alias with nested select: Bin = db.bins.with_alias('bin') tags = db(Bin.id==db.bins.id)._select(db.bins.tags_id) rows = db(db.bins.id>1).select( left=db.notes.on( (d

Re: [web2py] Re: Quickest way to learn web2py

2012-10-15 Thread Curiouslearn
Sponona, Did you try reading the whole book before trying out web2py to make an app? I would suggest read the overview and then try making a small application, such as an application to make grocery list, or a todo application. As you run into the problems, search for the specifics from the docum

[web2py] Re: cannot upgrade to 2.1.1 from GUI on Pythonanywhere

2012-10-15 Thread Massimo Di Pierro
Is the problem specific of PythonAnywhere? Can you upgrade a local installation? On Monday, 15 October 2012 09:14:26 UTC-5, Nico Zanferrari wrote: > > Hello, I currently have installed version 2.0.9 on Pythonanywhere. It was > upgraded without problem from their old standard version by slightly

[web2py] Re: Generating generic controllers and generic views, on the fly...

2012-10-15 Thread Anthony
Can you show a more concrete example? The benefit of the generic actions and views is not quite clear. If you want to re-use the same action/function to return slightly different data, can't you use URL args or vars to specify what is requested and return the appropriate data based on those val

Re: [web2py] Another DAL question

2012-10-15 Thread lyn2py
Yes, prior to that, I have tried using *db.bins.tags_id*, but it returns the db entry raw, which is:* |1|2|6|8|* I would like it to return a list instead. I have also looked up older posts on nested selects, but nothing is working so far. I have tried: tags = db()._select(db.bins.tags_id) rows

Re: [web2py] Re: IS_IN_DB vs IS_IN_SET

2012-10-15 Thread Manuele Pesenti
Il 15/10/2012 16:07, Alan Etkin ha scritto: If possible, I would separate the roman numbers and the town name in the model: db.define_table('town', Field('name', default='Portella Della Ginestra'), Field('roman', ...)) That would solve the line break problem and you could just refer to the

Re: [web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread Curiouslearn
Thanks, Massimo. On Mon, Oct 15, 2012 at 10:48 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > +1 > > :) > > R > > > On Mon, Oct 15, 2012 at 10:44 AM, Omi Chiba wrote: > >> Perfect timing for my upgrade work. Many thanks!! >> >> >> On Monday, October 15, 2012 6:55:39 AM UTC-5, Mass

Re: [web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread Richard Vézina
+1 :) R On Mon, Oct 15, 2012 at 10:44 AM, Omi Chiba wrote: > Perfect timing for my upgrade work. Many thanks!! > > > On Monday, October 15, 2012 6:55:39 AM UTC-5, Massimo Di Pierro wrote: >> >> Changelog: >> >> - overall faster web2py >> - when apps are deleted, a w2p copy left in deposit fol

Re: [web2py] Another DAL question

2012-10-15 Thread Manuele Pesenti
Il 15/10/2012 16:40, lyn2py ha scritto: > My code: > | > rows = db(db.bins.id >1).select( > left=db.notes.on( > (db.notes.tags_id.contains((*db.bins.tags_id*).split('|')) ) > ) > | > what about: | rows = db(db.bins.id>1).select( left=db.notes.on( (db.bins

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread Omi Chiba
Perfect timing for my upgrade work. Many thanks!! On Monday, October 15, 2012 6:55:39 AM UTC-5, Massimo Di Pierro wrote: > > Changelog: > > - overall faster web2py > - when apps are deleted, a w2p copy left in deposit folder > - change in cron (it is now disabled by default). removed -N option an

Re: [web2py] Another DAL question

2012-10-15 Thread lyn2py
Thanks Manuele, the chapter has some basics of how it works, which I have already incorporated into my example. Still need help on this. Thanks! On Monday, October 15, 2012 9:59:44 PM UTC+8, Manuele wrote: > > Il 15/10/2012 11:19, lyn2py ha scritto: > > The field (*db.bins.tags_id*) has conten

[web2py] Generating generic controllers and generic views, on the fly...

2012-10-15 Thread apinho
Hi, I started with web2py a few weeks ago, writing some very simple apps. I noticed that I was constantly repeating myself in the following steps : Write a controller to fetch the data Write a view to present data. So, I made generic controllers and views, which I later call using this sc

[web2py] cannot upgrade to 2.1.1 from GUI on Pythonanywhere

2012-10-15 Thread Nico Zanferrari
Hello, I currently have installed version 2.0.9 on Pythonanywhere. It was upgraded without problem from their old standard version by slightly modifying the GUI upgrade check as suggested in the past. Now, I'm trying to upgrade to 2.1.1 from within the web2py administrative GUI. Everything seems t

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Massimo Di Pierro
Where is my post? I will post an errata. Sorry about that. On Monday, 15 October 2012 09:03:24 UTC-5, Alec Taylor wrote: > > Thanks but it still isn't working, Traceback: > http://fiddle.jshell.net/fAGQt/show > > FYI: I had copy/pasted that example code from your post on the issue > > On Tue, O

[web2py] Re: web2py with riak

2012-10-15 Thread Massimo Di Pierro
We do not have a dal adapter but you can use the python-riak APIs: https://github.com/basho/riak-python-client If there is demand to it we could write an adapter. On Monday, 15 October 2012 04:15:00 UTC-5, ajith c t wrote: > > Hi I would like to know if there is any possible way to use riak data

[web2py] Re: IS_IN_DB vs IS_IN_SET

2012-10-15 Thread Alan Etkin
If possible, I would separate the roman numbers and the town name in the model: db.define_table('town', Field('name', default='Portella Della Ginestra'), Field('roman', ...)) That would solve the line break problem and you could just refer to the town by id El lunes, 15 de octubre de 2012 06:

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Alec Taylor
Thanks but it still isn't working, Traceback: http://fiddle.jshell.net/fAGQt/show FYI: I had copy/pasted that example code from your post on the issue On Tue, Oct 16, 2012 at 12:51 AM, Massimo Di Pierro wrote: > Should be > > db.define_table('person',Field('name')) > > and not > > db.define_tabl

Re: [web2py] Another DAL question

2012-10-15 Thread Manuele Pesenti
Il 15/10/2012 11:19, lyn2py ha scritto: The field (*db.bins.tags_id*) has contents of a list:reference type, i.e. *|1|2|6|8|* I need to get it into a list (i.e. *[1,2,6,8]*) to be used in a DAL .select(). How should I do this? My code: | rows = db(db.bins.id>1).select( left=db.notes.

Re: [web2py] Re: IS_STRONG and CRYPT

2012-10-15 Thread Richard Vézina
Try to create the app by your self in this case... It is not very difficult... For the auth definition (I mean auth_user, auth_group, etc.). Use the code available in the book. Also, you could maybe post the demo app you create with the wizard here and we can test it in our environnement. Richard

[web2py] web2py with riak

2012-10-15 Thread ajith c t
Hi I would like to know if there is any possible way to use riak database with the web2py framework. Should I write the riak commands in the files in the view folder or can I create a DAL query similar to the db= DAL(" ") --

[web2py] Re: Quickest way to learn web2py

2012-10-15 Thread Sponona
i tried it but stopped half-way through. Isn't much insightful. On Saturday, October 13, 2012 7:29:22 AM UTC+5:30, Massimo Di Pierro wrote: > > Most people like this: > http://killer-web-development.com/section/1/1 > > On Friday, 12 October 2012 11:43:25 UTC-5, Sponona wrote: >> >> Can any1 tell m

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Massimo Di Pierro
Should be db.define_table('person',Field ('name')) and not db.define_tables('person',Field ('name')) On Monday, 15 October 2012 08:08:37 UTC-5, Alec Taylor wrote: > > Thanks but the faki

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Massimo Di Pierro
Not yet but next in todo list. On Monday, 15 October 2012 08:47:27 UTC-5, Vasile Ermicioi wrote: > > what about signed cookies based sessions? --

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Vasile Ermicioi
what about signed cookies based sessions? --

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Alec Taylor
Thanks but the faking of connections doesn't work… Traceback: http://fiddle.jshell.net/J2Ch2/show/ On Mon, Oct 15, 2012 at 10:55 PM, Massimo Di Pierro wrote: > Changelog: > > - overall faster web2py > - when apps are deleted, a w2p copy left in deposit folder > - change in cron (it is now disabl

[web2py] Re: smartgrid with lazy_tables=True

2012-10-15 Thread Leonel Câmara
Hey again, Sorry it took so long. The ticket has been submitted here: http://code.google.com/p/web2py/issues/detail?id=1091 --

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread David Marko
very nice Massimo! Dne pondělí, 15. října 2012 13:55:39 UTC+2 Massimo Di Pierro napsal(a): > > Changelog: > > - overall faster web2py > - when apps are deleted, a w2p copy left in deposit folder > - change in cron (it is now disabled by default). removed -N option and > introdu\ > ced -Y. > - fas

[web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Massimo Di Pierro
Changelog: - overall faster web2py - when apps are deleted, a w2p copy left in deposit folder - change in cron (it is now disabled by default). removed -N option and introdu\ ced -Y. - faster web2py_uuid() and request initialization logic, thanks Michele - static asset management, thanks Niphlod

[web2py] Re: auth.wiki usage

2012-10-15 Thread Alan Etkin
> > the index displays the login page but after logging in returns the login > page without logging in the user (user is in db) > This is strange. Perhaps Massimo will have to revert the change until we find what is causing the error. Some observations: -I tested the changes with Ubuntu GNU/L

[web2py] Re: Web2Py on OpenShift

2012-10-15 Thread apps in tables
Hi, Trying to deploy to openshift (from local admin), error cannot import name dir_util Regards... Ashraf --

  1   2   >