[web2py:25039] Re: Announcing my first web2py app

2009-06-26 Thread Vidul
Congratulations! Though a lot simpler than yours, here is my first WEB2PY application (runs on GAE) https://loadinfo-net.appspot.com On Jun 26, 5:51 pm, weheh wrote: > Oh, I forgot, sorry. The website ishttp://www.spinyc.com. I guess I > didn't include the URL because it would seem like a tease

[web2py:25040] A small note about the default CSS

2009-06-26 Thread Vidul
"base.css" does not take into account, that if the layout TABLE has no z-index eventually the Flash DIV will not be shown properly. A quick fix: .layout { ... z-index: 1; } .flash { ... z-index: 2; } --~--~-~--~~~---~--~~ You received this message

[web2py:26191] Re: task forces

2009-07-10 Thread Vidul
I've always been on the opinion that MVC like WEB2PY (i.e. a normal MVC) is a MVC and a CMS in one (probably I am missing some end-users' points of view). But eStore - that makes a lot of sense to me, so I am for it. On Jul 10, 11:49 pm, Yarko Tymciurak wrote: > Those are bigger, more ambitious

[web2py:26242] Best Practices - Exception Handling for CRUD

2009-07-11 Thread Vidul
Hi, Auth and CRUD are amazing, no doubt, but is there a best practice for the exception handler / ing of read / create / update / delete actions? Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py We

[web2py:26250] Re: Best Practices - Exception Handling for CRUD

2009-07-11 Thread Vidul
For example: def update_comment(): form=crud.update(db.comment, request.args(0)) retur dict(form=form) where args(0) does not exist in the database. On Jul 11, 5:51 pm, mdipierro wrote: > What kind of exceptions? > > On Jul 11, 7:04 am, Vidul wrote: > > > > >

[web2py:26255] Re: Best Practices - Exception Handling for CRUD

2009-07-11 Thread Vidul
Probably RecordNotFound exception or just an attribute like crud.setting.record_not_found? On Jul 11, 7:01 pm, mdipierro wrote: > You are right. we need to deal with that exception somehow. What do > you propose? > > massimo > > On Jul 11, 10:13 am, Vidul wrote: >

[web2py:26256] Re: New book. Chapters 6,7,8 again

2009-07-11 Thread Vidul
I expected to see the HTML form, but all I see is "form : ACCESS DENIED", i.e. a redirection to not_authorized method. I guess something's wrong in my code... On Jul 11, 7:06 pm, mdipierro wrote: > Can you explain what does not work exactly? > > Massimo > > On

[web2py:26252] Re: New book. Chapters 6,7,8 again

2009-07-11 Thread Vidul
Thank you! A note - the following example do not work as expected (not_authorized action called): # in the controller: def give_asset_create_permission(form): group_id=auth.id_group('user_%s' % auth.user.id) auth.add_permission('read',db.asset,0,group_id) auth.add_permission('create',

[web2py:26264] Re: Best Practices - Exception Handling for CRUD

2009-07-11 Thread Vidul
alue validation, ) > > Maybe someone can show how (or how not to) apply IS_IN_DB() here? > > > > On Sat, Jul 11, 2009 at 11:06 AM, Vidul wrote: > > > Probably RecordNotFound exception or just an attribute like > > crud.setting.record_not_found? > > >

[web2py:26277] Re: Best Practices - Exception Handling for CRUD

2009-07-11 Thread Vidul
S_IN_DB() > > The general case, it seems to me,  is handling exceptions (errors) from > validations. > > > > On Sat, Jul 11, 2009 at 11:54 AM, Vidul wrote: > > > Sorry, Yarko, > > > I cannot understand what does a validator have to do with the > > except

[web2py:26335] Re: New book. Chapters 6,7,8 again

2009-07-12 Thread Vidul
My apologies for raising my voice again - did anyone manage to replay the example about: "how to allow a visitor to post comments, but only update their own comments (assuming crud, auth and db.comment are defined)" (that's on page 84)? If so - please let me know, this will save me a lot of time f

[web2py:26336] Re: Best Practices - Exception Handling for CRUD

2009-07-12 Thread Vidul
l this so > > > that the logic to deal with it is inline with the algorithm of the > > > function. If a record exists but the read fails that might always be > > > an exception case, but trying to read a record and not knowing first > > > whether it exists

[web2py:26360] Re: New book. Chapters 6,7,8 again

2009-07-12 Thread Vidul
t=give_update_permission) >    comments = db(db.comment.id>0).select() >    return dict(form=form, comments=comments) > > def update_comment(): >    form = crud.update(db.comment, request.args(0)) >    retur dict(form=form) > > On Jul 12, 9:28 am, mdipierro wrote: > > >

[web2py] Re: couchdb anybody?

2010-12-07 Thread Vidul
I am getting the following error on localhost after the latest update (changeset: 1322:a4378725f3cb): db.tester.insert(name='name') sql.pyc in insert(self, **fields) 3619 elif field.required: 3620 raise SyntaxError,'Table: missing required field: %s'%field -> 362

[web2py] Re: new dal

2010-12-07 Thread Vidul
(changeset: 1322:a4378725f3cb): db.tester.insert(name='name') sql.pyc in insert(self, **fields) 3619 elif field.required: 3620 raise SyntaxError,'Table: missing required field: %s'%field -> 3621 return self._db._adapter.insert(self, new_fields) 3622

[web2py] creation of testing database

2010-12-08 Thread Vidul
I'd like to create a testing database which contains the same tables as the production one. This is the code I came up with: for i in db_test.tables: db_test[i].drop() db_test.commit() for i in db.tables: db_test.define_table(i, db[i]) db_test.commit() Is there a better way? Thank you f

[web2py] Re: creation of testing database

2010-12-08 Thread Vidul
False, it will recreate the missing > tables in test.sqlite. > > On Dec 8, 8:10 am, Vidul wrote: > > > > > I'd like to create a testing database which contains the same tables > > as the production one. > > This is the code I came up with: > > >

[web2py] auth.settings.register_onaccept issue

2010-07-21 Thread Vidul Petrov
Hi all, I am trying to insert default value in "some_table" for new users: # init/controllers/default.py def __insert_default_val(form): db.some_table.insert(val1=1, val2=2, created_by=form.vars.id) auth.settings.register_onaccept = __insert_default_val but I get the following exception:

[web2py] Re: auth.settings.register_onaccept issue

2010-07-21 Thread Vidul Petrov
ot in the above code. Can you post the exact model and > action? > > On Jul 21, 8:09 am, Vidul Petrov wrote: > > > > > Hi all, > > > I am trying to insert default value in "some_table" for new users: > > > # init/controllers/

[web2py] Re: auth.settings.register_onaccept issue

2010-07-21 Thread Vidul Petrov
is: auth_table.age.requires = IS_IN_SET(('',) + tuple(range(16,99))) Thanks again! On Jul 21, 4:48 pm, mdipierro wrote: > I just tried this and I cannot reproduce the problem with this model. > > On Jul 21, 8:26 am, Vidul Petrov wrote: > > > > > # the act

[web2py] Re: web2py performance issue or rather my fault?

2010-07-21 Thread Vidul Petrov
I am in doubt that web2py is the bottleneck. My recent tests on a modest cloud server (2GHz CPU, 1G RAM): 1_000, 5_000, and 10_000 requests in total, 100 concurrent requests - 16 milliseconds per request with no HTTP server errors. The RDBMS and the HTTP server in question were Postgres and Cheroke

[web2py] invoke controllers' actions from template

2010-07-23 Thread Vidul Petrov
Hi all, Does web2py support (imho a bad practice still I need this feature) invocation of controllers' actions from templates? My aim is to include into a given template the results from different controllers' actions conditionally. Or just functions in the models files which are invoked directly

[web2py] Re: Create detail record

2010-07-23 Thread Vidul Petrov
You may want to read this part of the book: http://web2py.com/book/default/section/6/6?search=joins On Jul 23, 4:41 pm, Massimiliano wrote: > Hi, > > I'm sorry if it is a basic question but I don't find a clean way to do that. > > Imagine I'm showing an Invoice with related rows. > > How can I cr

[web2py] Re: invoke controllers' actions from template

2010-07-23 Thread Vidul Petrov
Great! Thank you, Massimo! On Jul 23, 5:47 pm, mdipierro wrote: > Yes but I reccoment you do it via ajax > > {{=LOAD('controller','action',vars={},args=[],ajax=True)}} > > On Jul 23, 9:32 am, Vidul Petrov wrote: > > > > > Hi all, > > >

[web2py] issue with some queries and GAE

2010-07-24 Thread Vidul Petrov
Everything works fine on non-GAE env but the following exceptions occur otherwise: TypeError: __or__() takes exactly 1 argument (2 given) # because of: user_to_query = (db.auth_user.username==form.vars.username_email) | \ (db.auth_user.email==form.vars.username_email) TypeError: long() argument

[web2py] Re: issue with some queries and GAE

2010-07-24 Thread Vidul Petrov
Thank you, Massimo. On Jul 24, 5:11 pm, mdipierro wrote: > GAE does not allow OR (|) involving two different fields. > > On Jul 24, 9:04 am, Vidul Petrov wrote: > > > > > Everything works fine on non-GAE env but the following exceptions > > occur otherwise: &

[web2py] auth.navbar modifications

2010-07-25 Thread Vidul Petrov
Is there a best practice for auth.navbar changes? For example I'd like to remove "password" link and add "retrieve username" link. Probably an oversight from my side but "gluon.tools.Auth.navbar" method does not say a lot about such changes.

[web2py] Re: auth.navbar modifications

2010-07-25 Thread Vidul Petrov
PI for this. > > On Jul 25, 5:43 pm, Vidul Petrov wrote: > > > > > Is there a best practice for auth.navbar changes? > > > For example I'd like to remove "password" link and add "retrieve > > username" link. > > > Probably an o

[web2py] GAE and Auth over SSL

2010-07-28 Thread Vidul Petrov
Is there a way the Auth methods to run over GAE SLL (https://my- domain.appspot.com) and return to the hosted domain the same session? If, for example, users are logged in on https://my-domain.appspot.com they are still not logged on http://www.my-domain.com. Does web2py support such cross-domain

[web2py] Re: GAE and Auth over SSL

2010-07-28 Thread Vidul Petrov
Does this mean that GAE SSL support is practically useless for now? Because one should either stick to subdomain.appspot.com or use no SSL. On Jul 28, 6:23 pm, mdipierro wrote: > This is a security hazard > > On Jul 28, 10:15 am, Vidul Petrov wrote: > > > > > Is there a

[web2py] Re: "Why I hate Django" by Cal Henderson

2010-07-29 Thread Vidul Petrov
Django (the opposite of RoR) sucks likes RoR (the Denmark salesman vs the desparate Kanzas Python programmers ambitions to create everything out of nothing). Probably you know what's the definition of the Nobel winners for intellect - adequacy. And in order to achieve adequacy we need compromises

[web2py] recaptcha settings RCS update

2010-08-04 Thread Vidul Petrov
Hi Massimo, I sent you an email with a Mercurial diff about retrieve_(username/ password) settings and captcha: diff -r 3e0d95c0a0d5 gluon/tools.py --- a/gluon/tools.pySun Aug 01 04:53:46 2010 -0500 +++ b/gluon/tools.pySun Aug 01 18:38:00 2010 +0300 @@ -804,6 +804,8 @@ self.setti

[web2py] Re: recaptcha settings RCS update

2010-08-04 Thread Vidul Petrov
Thank you, Massimo! On Aug 5, 12:39 am, mdipierro wrote: > Sorry I forgot. It is in trunk now. Please check it. Now I have to > revise the book once more. :-( > > On Aug 4, 3:55 pm, Vidul Petrov wrote: > > > > > Hi Massimo, > > > I sent you an email w

[web2py] translation of the online book

2010-02-27 Thread Vidul Petrov
Hi all, Some days ago I was happy to found out the online book, thank you Massimo! My intention is to translate it in Bulgarian. Which is the best way to do this (probably there is a read / write repository for the website, but I didn't find a link for it)? -- You received this message because

[web2py] Re: translation of the online book

2010-02-28 Thread Vidul Petrov
; > I am thinking about adding miltilingual support directly into the book > > > app. The problem is that adding pages is easy, keeping track of what > > > has been translated and what no may be a mess. Any advice? > > > > On Feb 27, 7:50 pm, Vidul Petrov wrote:

[web2py] Re: googling web2py

2010-03-28 Thread Vidul Petrov
109,000 from Bulgaria On Mar 28, 3:23 am, mdipierro wrote: > When you google "web2py" how may hits do you get? from which country? > > When I do it from the US I get ~106,000. The number has been steady > for one year. Before that is was much higher ~600,000. > > When I did it from India the num

[web2py] RFC: validator IS_NOT_IN_SET

2010-08-23 Thread Vidul Petrov
Hi all, I needed IS_NOT_IN_SET validator and added it in my custom "validators.py", do you think it is useful? class IS_NOT_IN_SET(IS_IN_SET): """ example:: INPUT(_type='text', _name='name', requires=IS_NOT_IN_SET(['max', 'john'],zero='')) the argument of IS_N

[web2py] bg-bg.py (Bulgarian translation)

2010-08-24 Thread Vidul Petrov
# coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"обнови" е незадължителен израз от вида "field1=\'нова стойност\'". Резултатите от JOIN не могат да се обновяват или изтриват.', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H

[web2py] Re: bg-bg.py (Bulgarian translation)

2010-08-24 Thread Vidul Petrov
I've missed the closing curly bracket. On Aug 24, 4:21 pm, Vidul Petrov wrote: > # coding: utf8 > { > '"update" is an optional expression like "field1=\'newvalue\'". You > cannot update or delete the results of a JOIN': '&qu

[web2py] Re: Pagination manual bug?

2010-08-24 Thread Vidul Petrov
Not sure if this help, but you may want to take a look at this Pagination class: http://packages.python.org/web2py_utils/paginate.html On Aug 24, 6:37 pm, dlin wrote: > ref:http://web2py.com/book/default/chapter/12#Pagination > > In following code, there is two problem: > 1. The 'next' button alw

[web2py] Re: icon in menu

2010-09-05 Thread Vidul Petrov
It's a Python homework, not web2py issue. On Sep 4, 5:48 pm, Frank wrote: > hi, > > I have code, >         response.menu_index = [ > > [TAG[''](IMG(_src=URL(request.application,'static','home.png'),'title'), > False, > URL(request.application,'default','facepda'), >              [ >            

[web2py] SQLFORM submission issue

2010-11-04 Thread Vidul Petrov
Hi all, I am trying to use a form which does not redirect after its acceptance. However after the submit the new form does not pass through: if form.accepts(request.vars, session): ... elsif form.errors: ... unless the page is reloaded. Is this the expected behavior?

[web2py] Re: SQLFORM submission issue

2010-11-04 Thread Vidul Petrov
It was my error, which have nothing to do with Web2py. There is no such issue. On Nov 5, 12:36 am, Vidul Petrov wrote: > Hi all, > > I am trying to use a form which does not redirect after its > acceptance. > However after the submit the new form does not pass through: >

[web2py:25196] Re: Announcing my first web2py app

2009-06-28 Thread Vidul Petrov
Thank you, samwyse! On Jun 27, 4:47 am, samwyse wrote: > On your fist page:  "We firmly beleive" => "We firmly believe" > I'd fix it ASAP. > > On Jun 26, 10:11 am, Vidul wrote: > > > > > Congratulations! > > > Though a lot simp

[web2py:25199] Re: Announcing my first web2py app

2009-06-28 Thread Vidul Petrov
Hi Massimo, Thank you very much! The images in the "about" page are fixed. Regards, Vidul On Jun 26, 7:20 pm, mdipierro wrote: > Hi Vidul, > > since this is a consulting company, let me know if you want to be > listed as an "affiliated company" on the web2py

[web2py:25489] DAL Validators and Widgets confusion

2009-07-02 Thread Vidul Petrov
Hi, While testing some of the exmaples from the latest manual, the IS_IN_SET() validator confused me: db.define_table("person", SQLField("gender", notnull=True), SQLField("desserts", notnull=True)) db.person.gender.requires = IS_IN_SET(("Male","Female")) db.person.gender.widge

[web2py:25503] Re: DAL Validators and Widgets confusion

2009-07-02 Thread Vidul Petrov
Thank you, Fran, The same result - it does not matter if the argument is a list or a tuple. The problem is that I cannot make the validation work when no element is chosen. On Jul 2, 6:53 pm, Fran wrote: > On Jul 2, 3:29 pm, Vidul Petrov wrote: > > > db.person.gender.requires  

[web2py:25505] Re: DAL Validators and Widgets confusion

2009-07-02 Thread Vidul Petrov
My point is that the widgets bypass the validators. On Jul 2, 6:53 pm, Fran wrote: > On Jul 2, 3:29 pm, Vidul Petrov wrote: > > > db.person.gender.requires   = IS_IN_SET(("Male","Female")) > > IS_IN_SET(['Male', 'Female']) >

[web2py:25514] Re: DAL Validators and Widgets confusion

2009-07-02 Thread Vidul Petrov
Thank you, Massimo! Is the problem in sqlhtml.py (class OptionsWidget) ? On Jul 2, 8:55 pm, mdipierro wrote: > Yes there is a problem. This will probably not be fixed today but > within the week. > > Massimo > > On Jul 2, 11:21 am, Vidul Petrov wrote: > > > >

[web2py:25540] Menu and "active" CSS class

2009-07-03 Thread Vidul Petrov
Hi, Given that I have a menu like: response.menu = [ ['Home', request.function=='index', URL(request.application,'default','index'), []], ['New Post', request.function=='create', URL(request.application,'default','create'), []], ] the "active" link does not work unless

[web2py:25616] GAE error

2009-07-04 Thread Vidul Petrov
Hi, Anybody any idea about the following error (it appears only in one method)? E 07-04 12:21AM 09.771 Traceback (most recent call last): File "/base/data/home/apps/loadinfo-net/2.334535432559265741/gluon/ restricted.py", line 98, in restricted exec ccode in environment File "/base/data/

[web2py:25617] Re: GAE error

2009-07-04 Thread Vidul Petrov
Actually this happens only in the translation, when I removed some duplicated records the problem was fixed. Strange. On Jul 4, 10:32 am, Vidul Petrov wrote: > Hi, > > Anybody any idea about the following error (it appears only in one > method)? > > E 07-04 12:21AM 09.771

[web2py:25626] Re: No ticket issues ?

2009-07-04 Thread Vidul Petrov
Hi, I saw no similar issues on NT 5.0 and above. Are you sure that it's an WEB2PY issue? On Jul 4, 5:46 pm, Fauché JM wrote: > Hello, > Since I install 1.65.0 (for windows) I can't read tickets issues ! > The link for ticket appear ,but when clicking on it, it call another > link for another t

[web2py:25660] Re: GAE error

2009-07-05 Thread Vidul Petrov
That's true - it's web2py 1.59. Thank you. On Jul 4, 7:12 pm, mdipierro wrote: > On a second look. I think you may be using an old web2py or perhaps an > old gaehandler.py > > On Jul 4, 2:32 am, Vidul Petrov wrote: > > > > > Hi, > > > Anybody any i

[web2py:25999] Re: new chapters for the book CRUD and AUTH

2009-07-08 Thread Vidul Petrov
That's splendid, Massimo! Thank you! On Jul 7, 3:09 am, Massimo Di Pierro wrote: > Here are two very very draft chapters for the second edition of the   > book. > Chapter 7 has been amended to include CRUD > Chapter 8 has been added and discusses AUTH > > This is very draft because I just wrote,

[web2py:26712] Re: The 80/20 rule

2009-07-16 Thread Vidul Petrov
help (probably some sample works should be shown there also)? Regards, Vidul On Jul 17, 5:49 am, mdipierro wrote: > Pareto (http://en.wikipedia.org/wiki/Pareto_principle) once said that > 80% of effects come from 20% of causes. For software we can re-phrase > as 80% of users use on

[web2py:26718] Re: The 80/20 rule

2009-07-16 Thread Vidul Petrov
work with WEB2PY - there are no projects, no search and demand announced, at least not officially? On Jul 17, 6:24 am, mdipierro wrote: > I am not familiar with those web sites. What do you suggest? > > On Jul 16, 10:18 pm, Vidul Petrov wrote: > > > > > Hi Massimo, > &g

[web2py:27019] Does CRON work on GAE?

2009-07-20 Thread Vidul Petrov
Probably this topic has been discussed in the past, but I wasn't able to find anything. The cron script works fine (it's implemented as a controller method) unless running in the GAE testing environment. The username in app.yml is web2py, the same goes for the username in "crontab" file. Thank yo

[web2py:27215] Re: Does CRON work on GAE?

2009-07-22 Thread Vidul Petrov
t; > withGAE. The current implementation uses file operations as they are > > > universal on all platforms (i.e. move file is atomic - that's what the > > > infamouscron.master is for). Now, AFAIK this would not work onGAE, > > > but if you give/write an example that would replace t

[web2py:27216] Re: temporary table

2009-07-22 Thread Vidul Petrov
The implementation of temporary tables is not MVC, but RDBMS specific. On Jul 23, 12:36 am, Fran wrote: > On Jul 22, 9:41 pm, rb wrote: > > > If you are using SQLite then you could create a db in memory and keep > > your temp table there. You can create the table outside of web2py and > > then

[web2py:27223] Re: temporary table

2009-07-22 Thread Vidul Petrov
what do you need to do exactly? > Perhaps a more elegant solution can be used. > > > > On Thu, Jul 23, 2009 at 03:10, Vidul Petrov wrote: > > > The implementation of temporary tables is not MVC, but RDBMS specific. > > > On Jul 23, 12:36 am, Fran wrote: > >> On Ju

[web2py:27371] Re: session.flash not working on auth password recovery

2009-07-25 Thread Vidul Petrov
A temporary fix can be: session._flash (that's what I usually use). On Jun 12, 1:52 pm, "mr.freeze" wrote: > For some reason the session.flash doesn't work on an auth password > recovery (which should really be called a password reset I think).  I > tried it with setting auth.messages.email_sent

[web2py:27372] username login and edit profile logic error?

2009-07-25 Thread Vidul Petrov
Hi all, Just noticed that when username is used for login one can edit the profile and change the username to an existing one. Thus the account becomes unusable, because the system recognize only the original username. Any fix? Thank you for the help. --~--~-~--~~~---

[web2py:27374] Re: username login and edit profile logic error?

2009-07-25 Thread Vidul Petrov
My error - I forgot to add the proper validators for the "username" field, i.e.: t.username.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(db, db.auth_user.username)] Apologies for the senseless post. On Jul 25, 3:07 pm, Vidul Petrov wrote: > Hi all, > > Just noticed that when u

[web2py:27601] Yet another WEB2PY application

2009-07-30 Thread Vidul Petrov
http://my-sticky-note.appspot.com/init/default/welcome (still missing the demo) Yes it's very small app, never-the-less the time went like this: - views / controllers / model: 5% (or less) - javascript / css: 95% I encountered only one small problem - some of the aith.messages do not appear in

[web2py:27640] Re: Yet another WEB2PY application

2009-07-30 Thread Vidul Petrov
Jul 30, 8:05 am, Tito Garrido wrote: > > > > > Very cool! I liked it! :) > > > On Thu, Jul 30, 2009 at 7:23 AM, Vidul Petrov wrote: > > > >http://my-sticky-note.appspot.com/init/default/welcome(stillmissing > > > the demo) > > > > Yes it's v

[web2py:30388] Re: init app

2009-09-08 Thread Vidul Petrov
Hi, Just create the file "routes.py" (there is an example file called "routes.example.py" that can be copied). Then edit the routes_in like this: routes_in = ( ('/', '/records/default/index'), ) That's it. On Sep 8, 12:52 pm, Carlos Aboim wrote: > Hi everyone, > I know if I call my app i

[web2py:30389] Lighttpd setup

2009-09-08 Thread Vidul Petrov
Hi all, I didn't manage to configure Web2py with this web server (each step was followed and the only result was directory listing, of course when enabled). Here is the configuration file: server.modules = ( "mod_fastcgi", "mod_rewrite" ) ... server.document

[web2py:30804] app.yaml default configuration

2009-09-12 Thread Vidul Petrov
Hi, I noticed that app.yaml could be improved to include by default the following files in the "skip_files" section: skip_files: | ... (applications/init/errors/.*)| (applications/admin/errors/.*)| (applications/init/sessions/.*)| (applications/admin/sessions/.*)| ... )$ Does this make

[web2py:31103] onvalidation problem

2009-09-16 Thread Vidul Petrov
Hi all, There is a problem with "onvalidation" - it works only after redirect unless the form object is explicitly given: onvalidation = assign_some_value_to_a_var(form) Is this a bug or the new behavior of "onvalidation"? --~--~-~--~~~---~--~~ You received this

[web2py:31104] Re: app.yaml default configuration

2009-09-16 Thread Vidul Petrov
Thank you, Massimo. I forgot to mention the "uploads" directory, GAE does not use the filesystem, which makes it useless. On Sep 12, 5:20 pm, mdipierro wrote: > true. uploading to trunk > > On Sep 12, 4:22 am, Vidul Petrov wrote: > > > > > Hi, > > >

[web2py:31126] Re: onvalidation problem

2009-09-16 Thread Vidul Petrov
the case with relational databases, but I am using GAE for this application. On Sep 16, 4:05 pm, mdipierro wrote: > Can you show an example of what you mean? I do not think what you say > is the case. > > On Sep 16, 5:22 am, Vidul Petrov wrote: > > > > > Hi all,

[web2py:31131] Re: onvalidation problem

2009-09-16 Thread Vidul Petrov
='create_image')) return dict(form=form, image=records[0]) On Sep 16, 9:51 pm, mdipierro wrote: > I need to see the assign_estate_id source and the full body of > controller actions. > I do not think this is a bug, I think this a workflow issue. > > Or are you sayin

[web2py:31422] Web2py prosperity

2009-09-21 Thread Vidul Petrov
Hi all, Does it make any sense if I start a website like http://jobs.rubynow.com/ or http://jobs.perl.org/ (the original one actually)? Web2py allows cheap web-hosting like GAE, so we should leave the competition in the dust. Or I am wrong? Plus that Web2py is stable and full-featured MVC (unli

[web2py:31570] Re: Web2py prosperity

2009-09-23 Thread Vidul Petrov
step - total automation (again - I am speaking about the building blocks, not about the terminators). There are (IMHO) only two niches, that will stay alive - the system administration and the graphic/industrial design. I'll do my best to create the website about Web2py jobs ASAP. Regards, Vi

[web2py:32179] change password bug on GAE

2009-10-04 Thread Vidul Petrov
Hi all, I am getting the following error on GAE while trying to change the password (all other methods work): In FILE: /base/data/home/apps/spain-estates/1.336749493957536875/ applications/init/controllers/default.py Traceback (most recent call last): File "/base/data/home/apps/spain-estates/

[web2py:32195] Re: change password bug on GAE

2009-10-04 Thread Vidul Petrov
ve this in your model? > > if request.env.web2py_runtime_gae: >     db = DAL('gae') >     session.connect(request, response, db=db) > else: >     db = DAL('sqlite://storage.sqlite') > > On Oct 4, 2:33 am, Vidul Petrov wrote: > > > > > Hi all, > > > I

[web2py:32203] Re: change password bug on GAE

2009-10-04 Thread Vidul Petrov
edit the app.yaml file to prevent upload? If not > than there is a bug in the default app.yaml file. > > Massimo > > On Oct 4, 8:27 am, Vidul Petrov wrote: > > > > > Yes, my model is untouched: > > > if request.env.web2py_runtime_gae:            # if runnin

[web2py:33057] Re: The first page on App Engine

2009-10-17 Thread Vidul Petrov
I didn't manage to reproduce this issue, everything works fine. Here is my ENV - User-agent: appcfg_py/1.2.3 Linux/2.6.28-15-generic Python/2.5.4.final.0 Please paste the content of index.html. On Oct 17, 12:48 am, BearXu wrote: > I modified the init/default/index as > redirect(URL(a='myapp',c='

[web2py:34972] Re: Join web2py wave

2009-11-09 Thread Vidul Petrov
I got "Internal Error" while trying http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2521w%252BDPsJaggYA On Nov 4, 8:54 am, hcvst wrote: > http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2... > > A public wave to discuss wave development on web2py. > > HC -

[web2py:35909] Re: Howto to make your own layouts

2009-11-24 Thread Vidul Petrov
This is great! Are there any manuals about the new plugin system? On Nov 9, 8:11 pm, mdipierro wrote: > I would love to see some layouts using it. > Could you send me some exmaples? > > On Nov 9, 12:07 pm, Vasile Ermicioi wrote: > > > > > Since web2py already have jquery included why not using

[web2py:36902] SQLDB objects in session

2009-12-09 Thread Vidul Petrov
Is SQLDB object creation in session possible? The following code did not work for me (I didn't manage to use session before SQLDB): from gluon.tools import * if not session.db: session.db = DAL() My intention is to store multiple SQLDB objects in one application, one per user. -- You re

[web2py:36906] Re: SQLDB objects in session

2009-12-09 Thread Vidul Petrov
cycled) when the reponse is completed > and the transaction is committed. > > On Dec 9, 11:52 am, Vidul Petrov wrote: > > > > > Is SQLDB object creation in session possible? > > > The following code did not work for me (I didn't manage to use session >

[web2py:36908] Re: SQLDB objects in session

2009-12-09 Thread Vidul Petrov
On Dec 9, 8:22 pm, mdipierro wrote: > You can connect to multiple db > > dba=DAL(...) > dbb=DAL(...) > dbc=DAL(...) > > I am not sure what you mean what "names are not known in advance". > > On Dec 9, 12:17 pm, Vidul Petrov wrote: > > > > >

[web2py:37262] Re: GAE mkdir error

2009-12-15 Thread Vidul Petrov
GAE does not allow write access to the file system. On Dec 15, 2:59 am, Richard wrote: > I uploaded an app to GAE and it triggered an error from trying to > create a missing directory: > > File "/gluon/main.py", line 432, in wsgibase >     os.mkdir(path) > AttributeError: 'module' object has no a

[web2py:37694] Re: How to limit access to items in static?

2009-12-22 Thread Vidul Petrov
Hi Johann, Take a look for examples in "routes.example.py". The file is in the root directory. On Dec 22, 10:26 am, Johann Spies wrote: > I use static inter alia for a few static html-pages linked to items in > a wiki. Access to the wiki is limited to logged in users but if the > url to the fil

[web2py:37840] Re: Happy Holidays

2009-12-25 Thread Vidul Petrov
Happy Holidays from Bulgaria! On Dec 24, 6:25 am, mdipierro wrote: > I wish everybody Happy Holidays. I will probably be on the list as any > other day. > > Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send em

[web2py:11639] Re: web2py 1.48 is OUT

2008-11-11 Thread Vidul Petrov
sappeared when I downgraded to version 1.44 (I haven't tried 1.47). I guess it is some configuration issue? Thank you, Vidul On Nov 10, 8:31 pm, mdipierro <[EMAIL PROTECTED]> wrote: > I posted web2py 1.48. Many many many small changes. faster and better > than ever. > Please

[web2py:11965] Re: web2py foundation

2008-11-17 Thread Vidul Petrov
Hi Massimo, Splendid idea! I am in. This project will encourage more and more newcomers (I have no doubt). Vidul On Nov 14, 11:01 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Actually I was thinking about something similar but also different. > > I want to create an association

[web2py:11966] Re: SQLFORM, visible data in fields but without update form

2008-11-17 Thread Vidul Petrov
I guess Jędrzej means "readony fields". On Nov 17, 3:00 pm, billf <[EMAIL PROTECTED]> wrote: > I'm sorry I don't understand your requirements. > > When you say: "I would like to create SQLFORM with inserts data to db, > but I would > like to see values from database there",  which "values from da

[web2py:13465] Email problem with T3 on GAE

2008-12-12 Thread Vidul Petrov
I am trying to use T3 email sending on GAE with no luck (T3 keeps on saying "unable to send email"). Did anyone try this setup? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group.

[web2py:13477] Re: Email problem with T3 on GAE

2008-12-12 Thread Vidul Petrov
You are supposed to configure your smtp > server. If you use gmail you need to setup auth params. > > massimo > > On Dec 12, 10:10 am, Vidul Petrov wrote: > > > > > I am trying to use T3 email sending on GAE with no luck (T3 keeps on > > saying "unabl

[web2py:13480] Re: print function

2008-12-12 Thread Vidul Petrov
redirect(URL(r=request,c='myPrint',f='myPrint',args=[myDict])) # and not f='lprProvv' On Dec 12, 8:03 pm, pmate wrote: > Hi, > using pyrtf i created a new controller called printings.py. > In it i have a function: > def myPrint(): >     myDict = request.args[0] >     ... >     ... >     return q

[web2py:18325] Re: How to use raise HTTP(404, 'message') ?

2009-03-18 Thread Vidul Petrov
I guess you're trying to "inspect" the input data: def raise404(): print request.args print request.vars ### raise an HTTP exceptpion in the same way: #raise HTTP(404, BEAUTIFY(request.args)) ### or # raise HTTP(404, BEAUTIFY(request.vars)) But nothing stop you to raise H

[web2py:18331] Re: Grab the full URL on error?

2009-03-18 Thread Vidul Petrov
Hi, I guess you mean "request.env.http_referer"? On Mar 19, 12:20 am, ceej wrote: > Hey, > > I'm using the custom error routes and it get's the error code and the > ticket number, but is there a way to get the full URL of the page that > errored out? This would be really useful. > > Many thank

[web2py:18359] Re: Possible bug: cron doesn't work when deploy in a directory name with space inside

2009-03-19 Thread Vidul Petrov
Hi Iceberg, Could it be an unescaped space in Popen class? If so, does this rough solution work (gluon/contrib/cron.py)? $diff cron.py cron_new.py 202c202 < proc = Popen([self.cmd], stdin=PIPE, stdout=PIPE, --- > proc = Popen([r'%s' % self.cmd], stdin=PIPE, stdo

[web2py:18616] Re: Database in web2py

2009-03-25 Thread Vidul Petrov
You should use SQLDB to create a database connection. In your model (models/db.py most probably): SQLDB('mysql://username:passw...@localhost:3306/the_name_of_the_db') On Mar 25, 8:53 pm, dave_mcgee wrote: > Hi there. > > I have a MySQL database in my web2py environment. > > I wish for an exter

[web2py:18629] Re: web2py daemon script for archlinux

2009-03-25 Thread Vidul Petrov
Hello Matt, I allowed myself some changes, mostly related to portability (the script is supposed to be "/usr/bin/web2py.py" or somewhere else in $PATH): #!/bin/bash prog=`basename $0` cd `pwd` chmod +x $prog function web2py_start { nohup ./$prog -a "" 2>/dev/null & if [ ! -z "`pgrep $pr

[web2py:18639] Re: cache.ram Questions

2009-03-25 Thread Vidul Petrov
Hi Iceberg, >From what I saw, the cache object is not unique, it's that the samle has "time_expire=5" and most probably you've loaded the page on the 2nd browser for more than 5 seconds. In addition a test made on two boxes with something like: def mycache(): import time t=cache.ram(

[web2py:18650] Python auth decorator examples

2009-03-26 Thread Vidul Petrov
Hi, All online examples about the auth object decorator usage seem like this (note ":" at the end): @auth.requires_login(): and this does not work, unless it's changed to: @auth.requires_login() --~--~-~--~~~---~--~~ You received this message because you ar

  1   2   >