[web2py] Re: Say hello to i-Track

2011-12-01 Thread Vidul Petrov
Nice project, thank you. Do you intend to create plugin system for it (like Trac plugins)? On Dec 1, 8:38 am, Julio Schwarzbeck wrote: > Folks, > > I've just released i-Trac > > i-Track is a simple issue/bug tracking system developed in web2py, it > is Open Source Software released under the Sim

[web2py] Re: update=request.now not working

2011-08-24 Thread Vidul Petrov
Yes, unfortunately this is broken in stable. On Aug 24, 11:14 pm, Massimo Di Pierro wrote: > Is this broken in stable? > > On Aug 24, 1:17 pm, JimK wrote: > > > > > > > > > Aha!  This was driving me crazy yesterday! > > > Thanks for looking into the issue. > > > Jim > > > On Aug 23, 8:21 pm, Mas

[web2py] question about DAL and many objects for the same database

2011-08-11 Thread Vidul Petrov
Could it be an issue if there are many DAL objects for the same database (the RDBMS in usage is Postgres)?

[web2py] Re: infoworld put web2py in the top of python frameworks

2011-08-11 Thread Vidul Petrov
Congratulations! It was high time for such recognition :-) On Aug 10, 2:28 pm, Martín Mulone wrote: > http://www.infoworld.com/d/application-development/pillars-python-six... > > -- >  http://martin.tecnodoc.com.ar

[web2py] Re: DAL new syntax RFC

2011-03-05 Thread Vidul Petrov
I agree with Stefaan. However the ':' before a variable name notation looks like the Ruby symbols whose only purpose was improved performance (lightweight strings) but lead inevitably to confusion (IMHO). On Mar 4, 5:55 pm, Massimo Di Pierro wrote: > There are some new features in trunk: > > 1)

[web2py] Re: Oh, Reddit :(

2011-02-07 Thread Vidul Petrov
It's a nice evidence, that Web2py does matter. Otherwise the idiots won't care to bark against this splendid technology. On Feb 8, 12:15 am, Anthony wrote: > http://www.reddit.com/r/Python/comments/fh4by/special_cases_arent_spe...

[web2py] Re: powerTable plugin - video demonstration

2011-01-05 Thread Vidul Petrov
Brilliant plugin! Thank you. On Jan 5, 6:20 am, Bruno Rocha wrote: > Video about powerTable on Vimeo (no audio)http://vimeo.com/18447603 > > -- > Bruno Rochahttp://about.me/rochacbruno/bio

[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] 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: 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] 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: 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] 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] 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] 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] 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: "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] 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] 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: 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] 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: 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] 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: 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] 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] 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: 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] 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: 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] 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: 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] 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] 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: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: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: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: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: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: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: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: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: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: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: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: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:31570] Re: Web2py prosperity

2009-09-23 Thread Vidul Petrov
uture. > Do you think this jobs site could include something like > djangopeople.net where web2py developers can create a profile? I put > my own profile on djangopeople.net and receive an email every few > months, usually from a company in my city. > > Richard > > On Sep 22, 6:1

[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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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:26712] Re: The 80/20 rule

2009-07-16 Thread Vidul Petrov
Hi Massimo, I fully agree, everything is very well said IMHO. Only one small addition - most of the MVC users have never even heard about most of the features (not to mention the rich set that WEB2PY offers). Do you think that a website for WEB2PY like jobs.perl.org and jobs.rubynow.com would h

[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: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: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: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: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: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: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: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: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: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: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 site, i.e. a company > that does we

[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 simpler than yours, here is my first WEB2PY application > > (runs on GAE

[web2py:22071] Re: web2py 1.62.0 posted

2009-05-18 Thread Vidul Petrov
Although the modules are imported (from gluon.tools import *) I get this error: NameError: name 'Recaptcha' is not defined On May 18, 9:56 am, mdipierro wrote: > Please give it a try and let me know. > > Massimo --~--~-~--~~~---~--~~ You received this message be

[web2py:21165] Re: Translation and Validators

2009-05-04 Thread Vidul Petrov
fic action only. > > On May 4, 10:38 am, Vidul Petrov wrote: > > > > > Thank you, it makes sense. > > > There is one small obstacle - the validators in customized actions > > (for example retrieve_password) should be commented in tools.py > > (otherwise the

[web2py:21160] Re: Translation and Validators

2009-05-04 Thread Vidul Petrov
, 6:10 pm, Yarko Tymciurak wrote: > On Mon, May 4, 2009 at 9:54 AM, Vidul Petrov wrote: > > > The issue is that different validators are required for different > > actions: > > That's ok - since a thread lives only for the time of a request, this is > somewhat

[web2py:21153] Re: Translation and Validators

2009-05-04 Thread Vidul Petrov
pierro wrote: > Not sure I understand the issue. > > You can override tools validators in your models. > > auth=Auth() > auth.define_table() > auth.table_user.fiest_name.requires=IS_NOT_EMPTY(error_message=T('fill > it up!')) > > On May 4, 9:14 am, Vidul Pet

[web2py:21137] Re: Translation and Validators

2009-05-04 Thread Vidul Petrov
to every validator you have. > (I didn't write the full syntax, but I'm quite sure you understand it. > Oh, and I'm not home, so it's not really tested, but I recall this is > the syntax). > > On May 4, 4:28 pm, Vidul Petrov wrote: > > > > > Is transl

[web2py:21135] Translation and Validators

2009-05-04 Thread Vidul Petrov
Is translation of error_message attribute in validators.py possible? The reason for this is that not all "error_message"s (imho) can be customized, for example in methods like retrieve_password and login. Thank you for the help. --~--~-~--~~~---~--~~ You received

[web2py:20964] Re: explain this to me

2009-05-01 Thread Vidul Petrov
Probably a comparison with http://alexa.com/siteinfo/mdp.cti.depaul.edu stats (I am not sure that they take in mind subdomains)? On May 1, 8:58 pm, mdipierro wrote: > According to Google > >    http://www.google.com/trends?q=web2py > > 2x more people from China search for us than from USA? > > b

[web2py:20947] Re: global name 'T' is not defined

2009-05-01 Thread Vidul Petrov
Thanks a lot! On May 1, 5:44 pm, mdipierro wrote: > after > > auth.define_table() > > do > > auth.settings.table_user.password.label=T('password') > > On 1 Mag, 09:19, Vidul Petrov wrote: > > > > > Is the translation possible in gluon modules

[web2py:20923] global name 'T' is not defined

2009-05-01 Thread Vidul Petrov
Is the translation possible in gluon modules? For example translation of SQLFORM labels in retrieve_password method in tools.py: form = SQLFORM( user, fields=['email'], labels={'email':T('Email:')}, Thank you for the help. --~--~-~--~~--

[web2py:20690] Re: Translation in model

2009-04-27 Thread Vidul Petrov
The "problem" was fixed like this: T.current_languages=['en','en-en'] T.force(session.language or 'en-en') were put before the translated strings (at the very beginning of the model). Thank you for the help. On Apr 28, 1:32 am, Vidul Petrov wrot

[web2py:20689] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Would you tell me how and where you implemented the T object and its force method? Thank you. On Apr 28, 1:16 am, Álvaro Justen [Turicas] wrote: > On Mon, Apr 27, 2009 at 7:06 PM, Vidul Petrov wrote: > > Thank you, Álvaro. The problem is still there, I tried with the latest > >

[web2py:20684] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Thank you, Álvaro. The problem is still there, I tried with the latest (revision 854) version ... Could it be wrong usage of T operator in the model? On Apr 28, 12:57 am, Álvaro Justen [Turicas] wrote: > On Mon, Apr 27, 2009 at 3:40 PM, Vidul Petrov wrote: > > > Just tried rev

[web2py:20683] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Even when I am trying my app with version 1.61.4 the problem stays. On Apr 27, 11:08 pm, Vidul Petrov wrote: > Am I the only one with this problem? > > On Apr 27, 9:40 pm, Vidul Petrov wrote: > > > > > Just tried revision 854 of languages.py, probably a wro

[web2py:20669] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Am I the only one with this problem? On Apr 27, 9:40 pm, Vidul Petrov wrote: > Just tried revision 854 of languages.py, probably a wrong usage in my > model: > > T.current_languages=['en', 'en-en'] > > try: >     T.force(session.language or 'en-en&

[web2py:20663] Re: Translation in model

2009-04-27 Thread Vidul Petrov
the proper usage here return redirect(URL(r=request,c=request.controller,f=function)) ? Thank you. On Apr 27, 9:25 pm, mdipierro wrote: > We changed things in languages.py since. Can you try the trunk? > > Massimo > > On Apr 27, 1:23 pm, Vidul Petrov wrote: > > > >

[web2py:20661] Re: Translation in model

2009-04-27 Thread Vidul Petrov
The strings are in the language file, but they are not being translated if they come from models. On Apr 27, 9:20 pm, Vidul Petrov wrote: > Version 1.59 (2009-03-16 13:10:16) with slight modifications in > "tools.py". > > On Apr 27, 9:16 pm, mdipierro wrote: > &g

[web2py:20659] Re: Translation in model

2009-04-27 Thread Vidul Petrov
Version 1.59 (2009-03-16 13:10:16) with slight modifications in "tools.py". On Apr 27, 9:16 pm, mdipierro wrote: > which version (date)? > > On Apr 27, 11:57 am, Vidul Petrov wrote: > > > > > Hi, > > > The translation seems not to work in mo

[web2py:/] Translation in model

2009-04-27 Thread Vidul Petrov
Hi, The translation seems not to work in models: db.contact.sender_name.requires = [IS_LENGTH(1,error_message=T('the name is too long'))] Anybody had a similar problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:20500] Re: Documentation

2009-04-25 Thread Vidul Petrov
Yes the book is wonderful, the only problem I met is the format - pdf, it would be very useful if the book is in chm format, so that search and index tabs are available. I tried with different psd2chm converters, but they didn't work as expected. On Apr 24, 11:11 pm, JohnMc wrote: > I note that

[web2py:19270] Re: GAE problem "Unable to send email"

2009-04-06 Thread Vidul Petrov
_password' > > should be > > mail.settings.login='my_usern...@gmail.com:my_password' > > On Apr 6, 8:09 am, Vidul Petrov wrote: > > > > > Hi Chrism, > > > Thank you for the help. > > > The problem is not on dev_server, but on ap

[web2py:19249] Re: GAE problem "Unable to send email"

2009-04-06 Thread Vidul Petrov
e: > Vidul, > I spent some time looking into this problem, here is my post and > Massimo's solution. > > http://groups.google.com/group/web2py/browse_thread/thread/da75fe0570... > > regards > Chrism > > On Apr 6, 9:35 am, Vidul Petrov wrote: > > > > >

[web2py:19238] GAE problem "Unable to send email"

2009-04-06 Thread Vidul Petrov
The mail object works great except on GAE, the configuration is: mail.settings.server='smtp.gmail.com:587' mail.settings.sender='my_usern...@gmail.com' mail.settings.login='my_username:my_password' Anybody with the same problem? Could it be some GAE issue? --~--~-~--~~~--

[web2py:19232] Re: Coooooool!

2009-04-06 Thread Vidul Petrov
This is splendid! I am wondering - is jDiv able to show/hide some text/image, indicating the processing activity? On Apr 6, 9:31 am, "Zoom.Quiet" wrote: > On Mon, Apr 6, 2009 at 14:09, mdipierro wrote: > > > I just changed the layout > > >http://www.web2py.com/events/default/index > >http

  1   2   >