[web2py] Re: Cherokee server locking while upload

2011-03-26 Thread Marin
I hope this helps. http://groups.google.com/group/web2py/browse_thread/thread/62bece6a8c3b7524/e3289b402455758d On Mar 26, 7:52 pm, LightOfMooN wrote: > I have web2py + uWSGI + Cherokee > > When I upload file, server is locking for all users. > Does somebody khow how to fix it?

[web2py] crud - delete with update permissions?

2011-05-07 Thread Marin
Hi web2py, here's my controller: def index(): #create forms = [] ### forms = [crud.create(db.category)] #update parentId = request.vars.cat or "0" categories = db(db.category.parent_id == parentId).select() for cat in categories: forms.append(crud.update(db.cat

[web2py] SQLFORM update problem

2011-05-21 Thread Marin
Hi, I have an id field which is not named 'id'. Here's a part of definition: Category = db.define_table('category', Field('myid', 'id'), Field('id', 'integer'), Field('parent_id', 'integer') ... I want to make SQ

[web2py] appadmin - insert new auth_permission

2011-07-26 Thread Marin
in welcome app suggests defining tables at the end of file, so no custom tables are visible that way. Should this be treated as a bug? Regards, Marin

[web2py] Forcing table name in row object?

2011-08-08 Thread Marin
Hi, If query has table JOINs, fields are accessed with: row.tablename.fieldname. Without JOIN, it is row.fieldname. This is described here: http://web2py.com/book/default/chapter/06#Inner-Joins I need it join-independent. With or without join: row.tablename.fieldname (yes, even if SELECT has only

[web2py] auth.accessible_query(...)

2011-08-16 Thread Marin
Hi, there is a bug in documentation, http://web2py.com/book/default/chapter/08#Authorization rows = db(accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) should be: rows = db(auth.accessible_query('read', db.mytable, user_id))\ .select(db.mytable.ALL) Also, I noti

[web2py] Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
Hi there, I need to make few apps that will share sessions. For testing purposes, i have applications "shared", "app1" and "app2". In application "shared", i have: db = DAL('sqlite://storage.sqlite') session.connect(request, response, db = db) (...) in applications "app1" and "app2" i have:

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
ng in the sessions/ folder of the three apps. > > If you still have the problem I will try reproduce the problem and fix > it. > > Massimo > > On Dec 22, 5:40 pm, Marin Pranjic wrote: > > Hi there, > > I need to make few apps that will share sessions. > > For

Re: [web2py] Re: Sharing sessions and authentication

2010-12-22 Thread Marin Pranjic
No prob. I deleted all Recent history in browser, and tried again with the same result. Pretty sure it's not about cookies :) On Thu, Dec 23, 2010 at 1:20 AM, mdipierro wrote: > I cannot today but I will tomorrow. ;-) > > On Dec 22, 6:18 pm, Marin Pranjic wrote: > > Hi Ma

Re: [web2py] Re: Sharing sessions and authentication

2010-12-23 Thread Marin Pranjic
Key was the same in "app1", "app2" ,and "app3", but not in "shared" (don't know why). I've set the same key in all apps and it seems to be working now. Thanks! On Thu, Dec 23, 2010 at 7:57 AM, mdipierro wrote: > Yes if they are providing registration/login/change password. If only > one app pro

Re: [web2py] Re: question about ajax(...); return false;

2010-12-24 Thread Marin Pranjic
try this: function remove() { var a = document.getElementById('id'); var b = (a.parentNode).removeChild(a); } function add(x,y){ alert(x+y); return x+y; } text 2+3? now try removing "return false" after add function. the thing

Re: [web2py] Re: question about ajax(...); return false;

2010-12-24 Thread Marin Pranjic
t;#" and that will have the same effect as return false. but i prefer return false On Fri, Dec 24, 2010 at 10:26 PM, Marin Pranjic wrote: > try this: > > > >function remove() > { > var a = document.getElementById('id

Re: [web2py] How to change the layout?

2010-12-25 Thread Marin Pranjic
Download and install as a Plugin. On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck wrote: > Hi, > > I have downloaded a new layout from web2py.com/layout and I want to active > it. > There should be a link, but I cannot find it. > > Any ideas? > Thx, Martin >

Re: [web2py] How to change the layout?

2010-12-25 Thread Marin Pranjic
t? > > > 2010/12/25 Marin Pranjic > > Download and install as a Plugin. >> >> >> On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck >> wrote: >> >>> Hi, >>> >>> I have downloaded a new layout from web2py.com/layout and I wa

Re: [web2py] Renaming fields of auth tables

2010-12-29 Thread Marin Pranjic
Hi, you can use *label* like described here: http://www.mail-archive.com/web2py@googlegroups.com/msg28123.html but you can still reference it only by its name ['first_name', 'last_name']. On Wed, Dec 29, 2010 at 2:44 PM, Lisandro wrote: > Hi everyone. > I'm customizing my authentication and acce

[web2py] How to change form.vars before validation?

2010-12-29 Thread Marin Pranjic
Hi, I need to customize Auth: 1. use username instead of e-mail for login 2. remove first_name and last_name fields 3. make username case_insensitive I decided to use first_name field to store the "real" username, and username field to store lowercase username (for case-insensitive login). Used

Re: [web2py] Re: Renaming fields of auth tables

2010-12-29 Thread Marin Pranjic
default/chapter/08#Customizing-Auth hope this one helps Marin On Wed, Dec 29, 2010 at 9:02 PM, Lisandro wrote: > Thanks for the quickly answer. Though, I really need to rename the > field, this is for keep backward compatibility and standards with an > existing system. > > >

Re: [web2py] Re: Renaming fields of auth tables

2010-12-30 Thread Marin Pranjic
nually :P ). You can use: def sync_fields(form): form.vars['first_name'] = form.vars['my_custom_first_name'] form.vars['last_name'] = form.vars['my_custom_last_name'] auth.settings.register_onvalidation.append(sync_fields) auth.settings.profile_onvalidation

Re: [web2py] Re: Renaming fields of auth tables

2010-12-30 Thread Marin Pranjic
database level, so it > will work when I try to insert or update via web2py or via a desktop > application. > > I hope I be clear :P > > > On 30 dic, 16:46, Marin Pranjic wrote: > > It's all in the book :) > > Not sure what do you want to set by trigger. >

Re: [web2py] Problems with ssh tunnel to run cherokee-admin and configure web2py

2011-01-10 Thread Marin Pranjic
Slice is ok and your problem is not web2py related. Try restarting ssh demon (i googled, not sure if it'll work). On Mon, Jan 10, 2011 at 7:13 PM, Offray Vladimir Luna Cárdenas < off...@riseup.net> wrote: > Hi all, > > > I have being testing cherokee + uWSGI for serving web2py. Locally they > wor

[web2py] Re: good news...

2011-01-11 Thread Marin Pranjic
I think it's number of users in this group. On Jan 11, 9:15 pm, Anthony wrote: > Very cool. For some reason, the attached graph doesn't show up in the new > Google Groups interface for me -- had to go to the old version. > > Do you keep any stats on number of downloads or web2py.com visits or > a

Re: [web2py] [OT](urvey) web2py web browser

2011-01-13 Thread Marin Pranjic
No permission for graphic. On Thu, Jan 13, 2011 at 1:54 PM, Luis Díaz wrote: > Results for 13/01/2011 > > Chrome > 1648% Firefox > 1339%Explorer > 1 3%Safari > 13%Otros > 13%opera > 13%- > total 33100% > > > graphic: > > https://spreadsheets.google.com/g

[web2py] encoding problem

2011-01-26 Thread Marin Pranjic
It's not web2py related, but I hope someone can help me. I'm sending data via ajax, which is urlencoded JSON object (I used jquery-json). Then, I use json.loads(variable) to load the object. Everything works good for normal ASCII characters, but if I send non- ascii chars, i get the following: U

Re: [web2py] Re: encoding problem

2011-01-26 Thread Marin Pranjic
th unicode maybe it's jquery- > json and browser implementation that screws something up. > > On 26 Gen, 20:51, Marin Pranjic wrote: > > It's not web2py related, but I hope someone can help me. > > > > I'm sending data via ajax, which is urlencode

Re: [web2py] Re: encoding problem

2011-01-26 Thread Marin Pranjic
Problem solved! Browser issue. On Wed, Jan 26, 2011 at 10:26 PM, Marin Pranjic wrote: > I think urlencoding is the problem. > > If I run > http://example.com/cont/func?var=š<http://example.com/cont/func?var=%C5%A1> > > it encodes into > > http://example.com/con

Re: [web2py] Re: Is there an alternative to Django's Pinax in the world of Web2py? Options

2011-01-29 Thread Marin Pranjic
attachment On Sat, Jan 29, 2011 at 6:51 AM, Anthony wrote: > Where is it?

Re: [web2py] web2py windows build broken in nightly

2012-07-26 Thread Marin Pranjić
When did you download nightly build? Can you please try again, it was fixed 6 hours ago. Marin On Jul 26, 2012 7:14 PM, "Nomad" wrote: error on start up C:\web2py\web2py>web2py.exe Traceback (most recent call last): File "web2py.py", line 16, in zipimport.ZipImportE

Re: [web2py] Re: Scheduler and trying to insert task with args

2012-07-27 Thread Marin Pranjić
Hi, shouldn't you remove the 'quotes'? Marin On Fri, Jul 27, 2012 at 2:54 PM, MJo wrote: > Oh I'm using trunk something like one week old to that matter. > > > On Friday, July 27, 2012 3:52:03 PM UTC+3, MJo wrote: >> >> If I pro

[web2py] Re: issue with mysql (or pymysql only?)

2012-08-07 Thread Marin Pranjić
d. Postgres & MSSQL have 'Read Committed' by default. Not sure about sqlite but if it works then it works :) Marin Dana ponedjeljak, 6. kolovoza 2012. 22:08:37 UTC+2, korisnik Niphlod napisao je: > > I'm somewhat baffled by an issue that came up when testing the schedul

Re: [web2py] MySQL Error

2012-08-07 Thread Marin Pranjić
'Like' is an sql keyword. On Tue, Aug 7, 2012 at 1:13 PM, Hassan Alnatour wrote: > Dear ALL , > > I am trying to connect to mysql database and i keep getting this error : > > > * (1064, u"You have > an error in your SQL syntax; check the manual that corresponds to your > MySQL server version for

Re: [web2py] MySQL Error

2012-08-07 Thread Marin Pranjić
Hi, order is sql keyword too. This might be helpful to you: http://web2py.com/books/default/chapter/29/6?search=check#Reserved-keywords Regards, Marin On Tue, Aug 7, 2012 at 3:05 PM, Hassan Alnatour wrote: > Dear Marin, > > I change Like To Likes but i still get errors , the tra

Re: [web2py] web2py 2.0 almost done

2012-08-09 Thread Marin Pranjić
What about issues with rocket, is that fixed? (if I remember correctly it was about corruption of big-sized downloads) On Tue, Aug 7, 2012 at 6:33 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Web2py 2.0 is almost done. > Please try the nightly build. > Let us know if it breaks an

Re: [web2py] 500 Error at http://www.web2py.org/

2012-08-12 Thread Marin Pranjić
You can use http://web2py.com/ Marin On Sun, Aug 12, 2012 at 1:50 PM, Terrence Brannon wrote: > this needs to be fixed pronto. > > -- > > > > --

Re: [web2py] 500 Error at http://www.web2py.org/

2012-08-12 Thread Marin Pranjić
According to web.archive.org: http://web.archive.org/web/20100829120211/http://www.web2py.org/ It just redirects to web2py.com Marin On Sun, Aug 12, 2012 at 2:24 PM, Bruno Rocha wrote: > I never knew about web2py.org (what is that? is it a web2py foundation > web site?) > > -- > > > > --

Re: [web2py] web2py 2.0 almost done

2012-08-13 Thread Marin Pranjić
Installing new app in admin via URL is not working for me (trunk) On Tue, Aug 7, 2012 at 6:33 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Web2py 2.0 is almost done. > Please try the nightly build. > Let us know if it breaks anything. > > massimo > > -- > > > > --

Re: [web2py] web2py 2.0 almost done

2012-08-13 Thread Marin Pranjić
plication is retreived with urllib.urlopen but is not installed (if-elif-else logic is wrong). Marin On Mon, Aug 13, 2012 at 4:31 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you help looking into it? > > > On Monday, 13 August 2012 05:32:20 UTC-5, Marin Pranjić wro

Re: [web2py] redirect results in invalid request.

2012-08-14 Thread Marin Pranjić
t(URL('addressbook','router',request.args(0))) > elif not session[request.args(0)].accountid==ADVANCEDACCOUNTID: > redirect(URL('addressbook','router',request.args(0))) > else: > > > Try this instead: URL('adresbook', 'router', args=request.args(0) Marin --

Re: [web2py] redirect results in invalid request.

2012-08-14 Thread Marin Pranjić
edit: URL('addressbook', 'router', args=request.args(0)) On Tue, Aug 14, 2012 at 10:34 AM, Marin Pranjić wrote: > > > On Tue, Aug 14, 2012 at 10:14 AM, Annet wrote: >> >> In a controller I start the index function with the following code: >> >&

Re: [web2py] web2py 2.0 almost done

2012-08-14 Thread Marin Pranjić
Patch is in attachment. Marin On Mon, Aug 13, 2012 at 4:52 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > ouch! sorry about that. > > > On Monday, 13 August 2012 09:46:51 UTC-5, Marin Pranjić wrote: > >> Sure. >> There is no upload logic for URLs.

Re: [web2py] NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread Marin Pranjić
You can run web2py in wingide if you set web2py.py as main debug file. On Aug 18, 2012 9:08 PM, "thinkwell" wrote: Hello everyone, I'm working on emailing a message and I'm having some unexpected issues. Here is my code based on the web2py book: from gluon.tools import Mail from report_vars im

Re: [web2py] NameError one way. 404 NOT FOUND the other...

2012-08-18 Thread Marin Pranjić
ing, so after a time there's this proliferation of server windows. :-| I've just included the lines below in each file, which helps autocompletion. if 0: import db Any other WingIDE tips, let me know. On Saturday, August 18, 2012 3:32:49 PM UTC-4, Marin Pranjić wrote: > > You can run web2py in wing... -- --

Re: [web2py] Re: Major speed improvement need testers

2012-08-22 Thread Marin Pranjić
+1 for C implementation Year ago I tried compiling storage with cython and I was very surprised with the result but I do not remember the tests. On Aug 22, 2012 7:15 PM, "Massimo Di Pierro" wrote: Some more info the issue page claims this issue is fixed in pyhton 2.7.3 but my tests and Mich

Re: [web2py] Re: Google group again

2012-08-24 Thread Marin Pranjić
I can see it too (web2py-users and web2py-developers). Marin On Fri, Aug 24, 2012 at 2:40 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Who are you? You can see things that only managers of the group should be > able see. And Anthony is a member. > > > O

Re: [web2py] Re: Field.Lazy attaching unbound Class method

2012-08-25 Thread Marin Pranjić
You don't have to call .get() It will be called internally with a row as an argument. And you should be using row.tablename.fieldname (instead just row.fieldname) Marin On Sat, Aug 25, 2012 at 6:20 PM, Marek Mollin wrote: > Still not working. > When I add static I can do: >

Re: [web2py] Re: Field.Lazy attaching unbound Class method

2012-08-25 Thread Marin Pranjić
Ignore my comment... This is Field.Lazy not .Virtual. Sorry On Sat, Aug 25, 2012 at 6:29 PM, Marin Pranjić wrote: > You don't have to call .get() > It will be called internally with a row as an argument. > > And you should be using row.tablename.fieldname (instead just > row.

Re: [web2py] Re: Field.Lazy attaching unbound Class method

2012-08-25 Thread Marin Pranjić
Found it... You should not use 'get' as a fieldname. if you change 'db.test.get' to 'db.test._get' or something else, it will work. or you can use: db.test[1]['get']() instead of db.test[1].get() Marin On Sat, Aug 25, 2012 at 6:35 PM, Marek Mollin w

[web2py] Login after password reset

2012-08-26 Thread Marin Pranjić
I would like to automatically login user after he submits the reset_password form. What is the best way to do it? I see that Auth.reset_password has onvalidation and onaccepts args that are not used for anything, so I'm out of (good) ideas. --

Re: [web2py] Re: Login after password reset

2012-08-26 Thread Marin Pranjić
I think we should. But we can add a flag in auth.settings so it can be optional. On Aug 26, 2012 9:37 PM, "Massimo Di Pierro" wrote: Should we make this the default behavior? Is there any reason not to auto login after reset password? On Sunday, 26 August 2012 14:35:33 UTC-5, Mar

Re: [web2py] post deleted

2012-08-29 Thread Marin Pranjić
I am receiving every post on email, and I didn't get yours. No one deleted it because I would still get it. So it wasn't even posted. Not sure why. It must be some error with google groups. It could happen... On Wed, Aug 29, 2012 at 1:20 PM, peter wrote: > I added a post called > > routes.py an

Re: [web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Marin Pranjić
Admin app silently raises tickets in 1.99.7 On Aug 30, 2012 11:39 PM, "Massimo Di Pierro" wrote: Are you saying upgrade works now or does not work? If it does not work, what version are you upgrading from? and can you check form chrome console what error you get? On Thursday, 30 August 2012 1

Re: [web2py] Is 2.0.2 or 2.0.3 really a stable version?

2012-08-31 Thread Marin Pranjić
t and better >> scaffolding app, increased security. >> - Lots of experimental features including GIS support, mongodb >> support, built-in auth.wiki(), and more. >> >> Should be 100% backward compatible. If you run into any issue let us >>

Re: [web2py] Is 2.0.2 or 2.0.3 really a stable version?

2012-08-31 Thread Marin Pranjić
> > Web2py has so much features and it is impossible to test everything. >> > > Sorry, but I cannot agree with this statement. Is it the official position? > > Of course not. These are my thoughts only. It is better when I don't talk much Marin --

Re: [web2py] help with apache

2012-08-31 Thread Marin Pranjić
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 didn't notice yet). I change ~5 ports in one day. And this wasn't happening before. On Sep 1, 2012 12:02 AM, "Massimo Di Pierro" wrote: My w

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:

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. > > > > O

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Marin Pranjić
2.0.1 was never labeled as stable. So you were using trunk when you created an app? Can you try fake_migrate, maybe table definitions are somehow corrupt. Marin On Sun, Sep 2, 2012 at 7:04 PM, Annet wrote: > >> It does for me. Are you using an old app? > > > An app creat

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-02 Thread Marin Pranjić
More likely it is an appadmin issue. You should update appadmin.py and see if problem goes away On Sun, Sep 2, 2012 at 7:23 PM, Marin Pranjić wrote: > 2.0.1 was never labeled as stable. > So you were using trunk when you created an app? > Can you try fake_migrate, maybe table defini

Re: [web2py] Re: Global formstyle configuration

2012-09-02 Thread Marin Pranjić
Current.response.formstyle maybe? Marin On Sep 2, 2012 9:11 PM, "Massimo Di Pierro" wrote: That would affect all the apps at once. On Sunday, 2 September 2012 10:34:29 UTC-5, Anthony wrote: > > Are there other examples of potenti... --

Re: [web2py] Can't Import library

2012-09-04 Thread Marin Pranjić
Do you use web2py source code or windows binary? On Tue, Sep 4, 2012 at 4:33 PM, BlueShadow wrote: > Hi, > I like to import the PIL library in My web2py application. I did install > it under my windows mashine. when I open the Python(idle) guy i can write > import PIL withot an error. > but usi

Re: [web2py] Filtering on NULL values in DAL query

2012-09-05 Thread Marin Pranjić
it is db.table.field != None operator ~ is used for ORDER BY and it maps to DESC. On Wed, Sep 5, 2012 at 7:59 PM, Bruno Rocha wrote: > > db(~db.table.field == None).select() > > --

Re: [web2py] Re: Accessing id in SQLFORM.process()

2012-09-05 Thread Marin Pranjić
Should be accepted instead of validate: form = SQLFORM(...).process() if form.accepted: ... redirect(URL(..., args=form.vars.id)) On Wed, Sep 5, 2012 at 8:56 PM, Niphlod wrote: > in any case it should be at least form.vars.id. Don't know if it's > available inside the process() environment. > E

Re: [web2py] Filtering on NULL values in DAL query

2012-09-05 Thread Marin Pranjić
Thanks, good to know :) On Wed, Sep 5, 2012 at 8:37 PM, Bruno Rocha wrote: > On Wed, Sep 5, 2012 at 3:12 PM, Marin Pranjić wrote: > >> it is db.table.field != None >> >> operator ~ is used for ORDER BY and it maps to DESC. > > > Yes, my bad, you are right, but

Re: [web2py] how to set js variable from session variable?

2012-09-05 Thread Marin Pranjić
jQuery.get('CALLBACK_URL', function(data){ alert(data); }); source: http://api.jquery.com/jQuery.get/ On Wed, Sep 5, 2012 at 8:15 AM, weheh wrote: > > I tried an ajax call to a controller callback, that in turn returns > "$('#myjsvar').val('%d');" % session.myvar, based loosely on a thread I >

Re: [web2py] how to set js variable from session variable?

2012-09-05 Thread Marin Pranjić
On Wed, Sep 5, 2012 at 10:00 PM, Marin Pranjić wrote: > jQuery.get('CALLBACK_URL', function(data){ > alert(data); > }); > > > source: http://api.jquery.com/jQuery.get/ > > On Wed, Sep 5, 2012 at 8:15 AM, weheh wrote: > >> >> I tried an ajax ca

Re: [web2py] required option in Field

2012-09-05 Thread Marin Pranjić
This should work for other field types as you expect, but empty string is still valid string value. You can set: requires=IS_LENGTH(minsize=1) to disallow empty strings. On Tue, Sep 4, 2012 at 7:24 PM, Denis Rykov wrote: > I use the following Field definition: > > Field('admin_unit', required=Tr

Re: [web2py] Filtering on NULL values in DAL query

2012-09-05 Thread Marin Pranjić
Db.table.field == None On Sep 5, 2012 6:42 PM, "Yarin" wrote: Is this documented anywhere? -- --

Re: [web2py] 2.0.6 bug? "required=True" not enforced

2012-09-05 Thread Marin Pranjić
I would expect that both constraints are accepted (empty string is not Null). Is the behavior different from older versions? On Wed, Sep 5, 2012 at 7:39 PM, mjm wrote: > I have defined a simple table: > > db.define_table('hoortoestel', > # algemeen > Field('merk', type='string', required=True,

Re: [web2py] required option in Field

2012-09-05 Thread Marin Pranjić
I don't know why this happens - I always reply from email and it is always in the same thread. Sorry about that. Dana srijeda, 5. rujna 2012. 22:14:09 UTC+2, korisnik Niphlod napisao je: > > IS_NOT_EMPTY() is more "remembereable" . > > @Marin: when you reply from yo

Re: [web2py] Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread Marin Pranjić
You should use helpers (DIV & others) inside controllers. In views, it's better to use raw html. Only exception is URL helper which should be always used. One advantage of using helpers in controllers is serverside DOM: http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing On

[web2py] What is the proper way to use external cron with web2py?

2012-09-07 Thread Marin Pranjić
I want to run a script once a day. I need to execute models. I tried with: 0 0 * * * python /path/to/web2py.py -S app -M -N -R applications/app/private /cron_test.py >> cron.txt 2>&1 And this *works*. But I see web2py has some flags and I am not sure should I use them or not. Does it matter?

Re: [web2py] redirect with method POST

2012-09-07 Thread Marin Pranjić
You cannot send POST vars. You can send GET vars. You can store vars in session and then access them from another page (if they are in the same app). You can return a page with form and then submit that form with javascript (document.form.submit()) Marin On Fri, Sep 7, 2012 at 12:56 PM

Re: [web2py] Re: Object Row. Error in 2.0.8 not in 2.0.0

2012-09-08 Thread Marin Pranjić
I don't understand (ckickin?) It should be optional and it shouldn't default to current behavior as it breaks old apps. On Sat, Sep 8, 2012 at 7:22 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > What do other people think? We can make the new behavior optional and only > ckickin wh

[web2py] Re: help test codemirrorw

2012-09-09 Thread Marin Pranjić
Is there anything that actually works on IE? codemirror works for me (ubuntu, Firefox15). But ace has nicer look. Dana nedjelja, 9. rujna 2012. 20:52:34 UTC+2, korisnik Massimo Di Pierro napisao je: > > If we move to codemirror (and we should) what do we get rid of (editarea, > amy, ace)? We c

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck wrote: > Dear all, > I have tried to use web2py together with Apache. The book says how to > write the configuration file: > > > ServerName web2py.example.com > *WSGIDaemonProcess web2py user=www-data group=www-d

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
And put everything in one line. Or just make sure that there's nothing after backslash. On Sun, Sep 9, 2012 at 9:01 PM, Marin Pranjić wrote: > Try removing the backslashs > > > On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck wrote: > >> Dear all, >> I have t

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
uation > > 2012/9/9 Marin Pranjić > > >> Try removing the backslashs >> >> On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck >> >> > wrote: >> >>> Dear all, >>> I have tried to use web2py together with Apache. The bo

[web2py] Re: help test codemirrorw

2012-09-09 Thread Marin Pranjić
the web2py codemirror style. We can still work on it > > On Sunday, 9 September 2012 14:16:17 UTC-5, Massimo Di Pierro wrote: >> >> Which theme di you like better? >> http://codemirror.net/demo/theme.html >> >> On Sunday, 9 September 2012 14:00:01 UTC-5, Mari

Re: [web2py] You don't have permission to access /admin/default/index on this server.

2012-09-10 Thread Marin Pranjić
You have to use *https://* Marin On Mon, Sep 10, 2012 at 11:17 AM, Vladimir wrote: > Hello! > I'd like to try web2py, but I can not open administrative pages. I'm > getting this error: > > Forbidden > > You don't have permission to access

Re: [web2py] [ANN] Started development on web2admin

2012-09-10 Thread Marin Pranjić
Github is having some database problem right now. But thanks for sharing this - I will try it later. On Mon, Sep 10, 2012 at 3:49 PM, rif wrote: > I started the development of a new django-like admin interface. > > You can find it here: https://github.com/rif/web2admin > > It is very basic but s

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-10 Thread Marin Pranjić
Update: It started working as soon as I installed psycopg2. This is pg8000 issue. I am using psql 8.4.11 --

Re: [web2py] Somewhere between 1.97 and 2.0.8 I lost translations.

2012-09-12 Thread Marin Pranjić
Hi Jason, I just tried few things... It is working in nightly build but not in 2.0.8. Marin On Wed, Sep 12, 2012 at 7:54 AM, Jason Brower wrote: > It seems that our production system stoped serving translated versions of > our website. Even when our browsers are on the correct setti

Re: [web2py] virtual fields book example

2012-09-12 Thread Marin Pranjić
Should be: Row.item.unit_price Row.item.quantity On Sep 12, 2012 6:21 PM, "KMax" wrote: Hello, I was looking the book http://www.web2py.com/books/default/chapter/29/06 And intrested with: New style virtual fields (experimental) Create model.db with: db.define_table('item', Field('unit_

Re: [web2py] fake_migrate options works, but then problem when taken out

2012-09-13 Thread Marin Pranjić
Can you try Migrate = true Fake_migrate = true On Sep 13, 2012 6:37 PM, "MichaelF" wrote: I have a field ('Is_home_team') that was defined as 'boolean', and I changed it to 'integer'. The migrate failed (I'm using MySQL). I then invoked the following on the table def that defines Is_home_team:

Re: [web2py] fake_migrate options works, but then problem when taken out

2012-09-13 Thread Marin Pranjić
What about the case Is_home_team / is_home_team? On Sep 13, 2012 6:37 PM, "MichaelF" wrote: I have a field ('Is_home_team') that was defined as 'boolean', and I changed it to 'integer'. The migrate failed (I'm using MySQL). I then invoked the following on the table def that defines Is_home_team

Re: [web2py] fake_migrate options works, but then problem when taken out

2012-09-13 Thread Marin Pranjić
t; The 'migrate = true, fake_migrate = true' yields the same error. > > > On Thursday, September 13, 2012 11:14:32 AM UTC-6, Marin Pranjić wrote: > >> What about the case >> Is_home_team / is_home_team? >> >> On Sep 13, 2012 6:37 PM, "MichaelF&qu

[web2py] Re: short term roadmap

2012-09-15 Thread Marin Pranjić
g/git support! I can help with testing. Marin --

Re: [web2py] Re: Using the template system to generate messages

2012-09-23 Thread Marin Pranjić
Your email should begin with tag and end with . If you have anything before/after, it will not render. Marin On Sun, Sep 23, 2012 at 9:05 PM, Pystar wrote: > Using this method, the mail is sent successfully,but shows raw html code > in the email client, i.e. its not rendering > >

Re: [web2py] varchar size in database

2012-09-25 Thread Marin Pranjić
Field(..., length=255, ...) Marin On Tue, Sep 25, 2012 at 1:28 PM, yashar wrote: > my database is postgres and i'm using this: > > Field('name',required=IS_LENGTH(255)); > > but it creates a varchar(512) in database, > > , how could i fix it? > > -- > > > > --

[web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-09-25 Thread Marin Pranjić
https://bitbucket.org/akorn/helloworld/src Dana utorak, 25. rujna 2012. 16:02:40 UTC+2, korisnik Massimo Di Pierro napisao je: > > I agree we should try reproduce those benchmarks becomes something is > clearly very wrong. > I cannot find the code used for those benchmarks, so I added a comment

[web2py] Re: framework benchmarks - web2py surprisingly slow?

2012-09-26 Thread Marin Pranjić
This benchmark is useless. Why don't we make a benchmark with more complex app? Marin --

Re: [web2py] Re: Forms removing data on errors...

2012-09-27 Thread Marin Pranjić
I do not see the nested textarea. > > Can you point a particular version that broke this? > The strange thing is that widget= SQLFORM.widgets.text.widget should be > the default. > > > On Thursday, 27 September 2012 08:29:27 UTC-5, Marin Pranjić wrote: > >> This happens

Re: [web2py] Re: Two LEFT JOINs and left=

2012-05-16 Thread Marin Pranjić
Can you post entire query generated using _select method? On Wed, May 16, 2012 at 10:51 AM, Annet wrote: > I tried: > > row=db().select(db.Organization.name,db.Hub.name,\ > left=[db.Node.on(db.Node.id==db.Organization.nodeID),db.Node.on(db.Node.id > ==db.Hub.nodeID)]).first() > > but that result

Re: [web2py] Re: Two LEFT JOINs and left=

2012-05-16 Thread Marin Pranjić
Also, can you try: row=db().select(db.Organization.name <http://db.organization.name/>, db.Hub.name <http://db.hub.name/>,\ left=[db.Organization.on(db.Node.id <http://db.node.id/>== db.Organization.nodeID),db.Hub.on(db.Node.id <http://db.node.id/>==db.Hub. nodeID)]).fir

Re: [web2py] 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Marin Pranjić
I am not sure if I understand your model. Can you explain "tag_link" ? Marin On Thu, May 17, 2012 at 6:28 PM, Jason Brower wrote: > I have the event management tool I have been working on for 2 years now > and I have made some changes to the code that require my most compli

Re: [web2py] 75€ BOUNTY - Massively Complicated Query Required

2012-05-17 Thread Marin Pranjić
each one, I > combined them. Aslo comes in handy in other ways too. Like if I want to > create tag relations on other parts of my database. I could even create > tag relations on tags or other tag relations. Very powerful. > br, > Jason > > On 05/17/2012 08:32 PM, Marin Pran

Re: [web2py] Fluxflex will be shut down and no longer available on June 30, 2012

2012-06-07 Thread Marin Pranjić
I was thinking about this. +1 On Thu, Jun 7, 2012 at 3:27 PM, Ismael Serratos wrote: > Why don't we make our own web2py cloud environment? > > > On Wed, Jun 6, 2012 at 4:34 PM, Bruno Rocha wrote: > >> pythonanywhere has easy deployment for web2py >> >> http://zerp.ly/rochacbruno >> Em 06/06/2012

Re: [web2py] publiching both apache and web2py sites

2012-06-16 Thread Marin Pranjić
You need two VirtualHost configs http://httpd.apache.org/docs/2.0/vhosts/examples.html You can find examples in web2py book: http://web2py.com/books/default/chapter/29/13 Marin On Sat, Jun 16, 2012 at 6:07 PM, Fernando J wrote: > Hello, I need some help: > How is possible to serve bo

Re: [web2py] Users Poll: To keep the button look for the welcome app's auth options, or not ?

2012-06-17 Thread Marin Pranjić
B1++ On Sun, Jun 17, 2012 at 5:30 AM, Andrew wrote: > A week or two ago a change was made to the nav bar to give the auth > buttons for Login, Register, etc a button look. This was part of the > fix to the dropdown menus to get them to work with bootstrap. Another > change was made to reve

Re: [web2py] count current visitors

2012-06-19 Thread Marin Pranjić
you can search the group for more solutions, this is not the first time someone asked this question

Re: [web2py] How does keepvalues work?

2012-07-01 Thread Marin Pranjić
Form values are stored in session Marin On Sun, Jul 1, 2012 at 12:47 PM, Keith Edmunds wrote: > What is the mechanism that 'keepvalues=True' uses? > > I have a form that uses keepvalues=True, and it includes combo box. > Occasionally the values in the combo change, and

  1   2   3   4   >