[web2py] ORM-like DAL

2010-05-06 Thread vihang
Vihang

[web2py] Re: ORM-like DAL

2010-05-10 Thread vihang
On Thu, May 6, 2010 at 9:53 AM, mdipierro wrote: > > I think you refer to this: > >http://web2py.com/AlterEgo/default/show/189 > > > On May 6, 9:50 am, vihang wrote: > >> Hello, > > >> A long time back, someone (mostly probably massimo) had written a few

[web2py] performance issue- multiple db connection

2010-05-11 Thread vihang
Hello, I am trying to understand the possible performance setback if I try to open multiple db connections. Is there some mechanism in web2py which would optimizes the number of open connections to the database? Vihang

[web2py] Re: ORM-like DAL

2010-05-11 Thread vihang
s mailing list last > > week: > >http://groups.google.com/group/web2py-developers/browse_thread/thread... > > Yes, started by me. > > > On May 7, 12:50 am, vihang wrote: > >> Hello, > > >> A long time back, someone (mostly probably massimo) had written a

[web2py] Django GenericForeignKey

2010-05-12 Thread vihang
Hello, would anyone know how would one implement GenericForeignKey using DAL?? Thanks Vihang

[web2py] Re: ORM-like DAL

2010-05-12 Thread vihang
Cannot inherit virtualfields On May 12, 8:08 pm, Thadeus Burgess wrote: > VirtualFields? > > -- > Thadeus > > On Tue, May 11, 2010 at 11:59 PM, vihang wrote: > > Some of the apps I am working currently are much more easy to build if > > the models can be defined as

[web2py] Re: ORM-like DAL

2010-05-12 Thread vihang
Maybe we could inherit in some way, but I need to inherit a bunch. Hence it does not help. On May 12, 8:08 pm, Thadeus Burgess wrote: > VirtualFields? > > -- > Thadeus > > On Tue, May 11, 2010 at 11:59 PM, vihang wrote: > > Some of the apps I am working currently are mu

[web2py] Cross reference error in DAL

2010-05-13 Thread vihang
Hi, Why am I getting an error here? model.py db=SQLDB("sqlite://db.db") db.define_table('test', Field('t', 'reference test2')) db.define_table('test2', Field('t1', 'reference test')) Error: Traceback (most recent call last): File "c:\web2py\gluon\restricted.py", line 178, in restr

[web2py] Re: web2py hosting in India

2010-06-23 Thread vihang
You can use service like linode / slicehost /webfaction to deploy. If you need managed deployment optimized for web2py with service in India, contact me Regards Vihang On Jun 24, 11:14 am, Narendran wrote: > Hi, > Do anyone know if any hosting solution in India supports web2py > de

[web2py] Re: web2py with alchemy

2010-02-13 Thread vihang
I tinkered around a bit, but DAL did the job well, plus the benefits of using crud & auth made me stick to DAL. I would use sqlalchemy only if I was porting a legacy app using it.. On Feb 13, 3:41 pm, elffikk wrote: > hi, > > is there somebody that used sqlalchemy with web2py, > how hard will be

[web2py] LOAD and response.view

2010-02-22 Thread vihang
orks fine, but does not use the template 'blank.html', but the generic one. If I create AP.html, then it works fine. Is it possible to use response.view somehow with LOAD ?? Thanks Vihang -- You received this message because you are subscribed to the Google Groups "web2py-users&quo

[web2py] Re: LOAD and response.view

2010-02-22 Thread vihang
tried that too, doesn't work... On Feb 22, 10:36 pm, DenesL wrote: > try > response.view = 'your_controller_name/blank.html' > > On Feb 22, 1:09 pm, vihang wrote: > > > Hi, > > > I tried the following code > > > def index(): > >

[web2py] Re: LOAD and response.view

2010-02-23 Thread vihang
LOAD(...,ajax=True) > > and or > > def AP(): >      response.view = 'blank.html' >      return response.render('default/ > blank.html',message=db(db.Purchase_Invoice.id>0).select(db.Purchase_Invoice.Due.sum())) > > On Feb 22, 12:09 pm, vihang wrote: &

[web2py] Re: LOAD and response.view

2010-02-24 Thread vihang
ileapp.py these two lines: > > >             page = run_controller_in(plugin, function, > >                                      other_environment) > >             other_response.view = '%s/%s.%s' % > > (plugin,function,other_request.extension) > > >

[web2py] IS_IN_DB with auth.accessible_query

2010-03-10 Thread vihang
Hello, I am trying to write a validator which I can use to populate select box using result from auth.accessible_query. I believe IS_IN_DB validator would be a good start. Could some give me a hint if there is an easy tweak I can apply, or will it be dirty hack? Thanks vihang -- You received

[web2py] Re: IS_IN_DB with auth.accessible_query

2010-03-10 Thread vihang
not need a new validator you can just use IS_IN_DB > but can you give us more details? > > On Mar 10, 9:18 am, vihang wrote: > > > Hello, > > > I am trying to write a validator which I can use to populate select > > box using result from auth.accessible_query. I bel

[web2py] Re: IS_IN_DB with auth.accessible_query

2010-03-10 Thread vihang
excellent hack... only one problem, it cannot work without logged on user, (need user.id) hence it throws an error right away. Any way out ? Traceback (most recent call last): File "c:\Users\vihang\Desktop\web2py\gluon\restricted.py", line 173, in restricted exec ccode in e

[web2py] Re: IS_IN_DB with auth.accessible_query

2010-03-11 Thread vihang
27;, db.client)) > > if auth.is_logged_in(): > > db.address.id_client.requires=IS_IN_DB(db(auth.accessible_query('read', > db.client)), >                                                   'client.id','% > (name)s') > > On Mar 10, 11:02 am, vihang wrote: > > > excel

[web2py:23456] Re: web2py perfomance

2009-06-06 Thread vihang
Very interesting mod. @Massimo, as mentioned about the requires statement, is there a way to address the following directly in the field definition? db.some_table.field1.requires = IS_NOT_IN_DB(db,db.some_table.field1) On Jun 6, 7:51 pm, mdipierro wrote: > I think it is a great idea. > , > Any

[web2py:23479] Re: web2py perfomance

2009-06-07 Thread vihang
n 6, 2009 at 9:17 PM, vihang wrote: > > > Very interesting mod. > > > @Massimo, as mentioned about the requires statement, is there a way to > > address the following directly in the field definition? > > > db.some_table.field1.requires = IS_NOT_IN_DB(db,db.some_ta

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

2009-06-27 Thread vihang
@weheh, Great job with the website ! looks good.. I had one question.. what did you use to compile the js and css scripts together? I have been looking for a solution whihc I can use with web2py/python but most of them are php based... Thanks for any direction Vihang On Jun 27, 9:51 am

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

2009-06-27 Thread vihang
any chance you would know what was used for compiling the js and css scripts together ? On Jun 27, 10:40 pm, weheh wrote: > I'm working on trying to get a link to web2py or a mention. But like I > said, I don't fully own the site. --~--~-~--~~~---~--~~ You receive

[web2py:26790] Issue with Mercurial

2009-07-18 Thread vihang
Hi, I just upgraded to the latest version of web2py (1.65.5) and trying the mercuial vc for the first time. I am facing the following error when I click on "versioning". Traceback (most recent call last): File "C:\Users\vihang\Desktop\VShare\web2py\gluon\restricted.py

[web2py:26816] Re: Issue with Mercurial

2009-07-18 Thread vihang
must be a different version of mercurial. > > On Jul 18, 3:40 am, vihang wrote: > > > Hi, > > > I just upgraded to the latest version of web2py (1.65.5) and trying > > the mercuial vc for the first time. I am facing the following error > > when I click on &qu

[web2py:27501] Major impairment - Web2py group searches limited

2009-07-28 Thread vihang
Hi, I have noticed something since the group name was changed... the search results are limited to posts of last month or so. Is anyone facing this problem or its an issue with google servers in my side of the planet? Vihang --~--~-~--~~~---~--~~ You received

[web2py:27513] Re: Major impairment - Web2py group searches limited

2009-07-28 Thread vihang
exactly... this group is my source of advance documentation On Jul 28, 8:25 pm, Fran wrote: > On Jul 28, 3:58 pm, vihang wrote: > > > I have noticed something since the group name was changed... the > > search results are limited to posts of last month or so. Is anyone >

[web2py:27925] Auth based on UUID

2009-08-04 Thread vihang
as a last resort. Vihang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email

[web2py:27937] Re: Auth based on UUID

2009-08-04 Thread vihang
d? > > Why not use email as uuid? > > On Aug 4, 2:30 am, vihang wrote: > > > Hello, > > > I am currently working on an app which is distributed between > > different nodes. The issue is that when it comes to app related dbs, I > > am managing (somehow) usi

[web2py:28100] Re: Auth based on UUID

2009-08-06 Thread vihang
gling with distributed auth. Too many security implications. If you are doing something in this line, we could have a chat, maybe through direct email, as it may not be relevant to this group. Cheers. Vihang On Aug 6, 11:28 pm, Alex Fanjul wrote: > Hello Vihang, > I'm very curious  and It would b

[web2py:28526] Re: logo

2009-08-13 Thread vihang
A On Aug 13, 8:31 pm, mdipierro wrote: > P.S. > > Logo A was designed by Peter Kirchner (Yound Designers) > Logo B was designed by Mateusz Banach > > Please vote only once but feel free to add comments. > > Massimo > > On Aug 13, 11:29 am, Massimo Di Pierro > wrote: > > > > > > > Two logos have

[web2py:36621] Unique with NULL values

2009-12-06 Thread vihang
Hello, How can one have unique constraint, but allow multiple NULL values. I know postgres supports it, but I get an error when using DAL. Thanks -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googl

[web2py:36624] Re: Unique with NULL values

2009-12-06 Thread vihang
I resolved the issue. The problem is that null variable assignment is not null/none but '' On Dec 6, 3:15 pm, vihang wrote: > Hello, > > How can one have unique constraint, but allow multiple NULL values. I > know postgres supports it, but I get an error when using DA

[web2py:36746] response.render behavior (bug?)

2009-12-07 Thread vihang
Hello, While trying to create a file out of the view, as well as display, I realized a slightly confusing nature of response.render sample code: def generate_and_display(): a = "1" b = "2" context = dict(a=a,b=b) message = response.render('display.html', context) return dict(a=a,

[web2py] Web2py + Titanium (appcelerator)

2010-01-07 Thread vihang
code as a more flexible license like bsd, apl etc as that is more appropriate for a framework (as most frameworks are) Vihang -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegrou

[web2py] Re: Web2py + Titanium (appcelerator)

2010-01-07 Thread vihang
der) than your work MUST be released > under GPL2 assuming this is compatible with the titanium license. > > On Jan 7, 7:45 am, vihang wrote: > > > Hello, > > > I am working on a test app which integrates web2py with titanium, but > > there seems to be a bottlenec

[web2py] Re: Web2py + Titanium (appcelerator)

2010-01-07 Thread vihang
Thanks for the clarification. If the end users cannot distribute compiled code out of a framework, it would defeat the purpose of creating a framework. But web2py did gel very well with a framework like Titanium, could see at ways to leverage it in future hopefully :-) Regards Vihang On Jan 7

[web2py] Re: Web2py + Titanium (appcelerator)

2010-01-07 Thread vihang
ous. > > On Jan 7, 8:26 am, vihang wrote: > > > Thanks for the clarification. > > > If the end users cannot distribute compiled code out of a framework, > > it would defeat the purpose of creating a framework. But web2py did > > gel very well with a framew

[web2py] Iterate through form (SQLFORM)

2010-01-20 Thread vihang
. Also in form.components, the form opening and closing is not part of it, (I guess). Thanks Vihang -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this g

[web2py] Re: Newbie Question: Intellisense for Web2Py?

2010-01-20 Thread vihang
Since web2py apps do not need to explicitly import any gluon packages, the intellisense in pydev does not work very well. There was a hack given somewhere on this forum, which did work to an extend. On Jan 20, 3:19 pm, tiago almeida wrote: > Hi. > You can try *pydev* which is an IDE based on ecl

[web2py] Re: CouchDB adapter - need any help?

2010-01-27 Thread vihang
Any news on new DAL or couchdb support? On Dec 29 2009, 4:32 am, mdipierro wrote: > It is easy but I would not want to do it twice. I think it belongs to > the new DAL, not the old DAL. We are getting close. > > Massimo > > On Dec 28, 5:06 pm, Jon Romero wrote: > > > I've read some threads about

[web2py] Re: CouchDB adapter - need any help?

2010-01-27 Thread vihang
r relational database. It needs a little bit more abstraction > before we can integrate nodb. > > On Jan 27, 10:04 pm, vihang wrote: > > > Any news on new DAL or couchdb support? > > > On Dec 29 2009, 4:32 am, mdipierro wrote: > > > > It is easy but I w

[web2py] input title attribute

2010-01-28 Thread vihang
Any idea how I can access or add 'title' attribute for input elements? Cannot see it anywhere in the html.py. 'title' is used for tooltips text. Thanks -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...

[web2py] Re: input title attribute

2010-01-28 Thread vihang
ave you tried using the optional parameter _title when building your INPUT > object? > > INPUT( ..., _title="my Title", ...) > > --- > > On Thu, Jan 28, 2010 at 8:33 AM, vihang wrote: > > Any idea how I can access or add 'title' attribute for input eleme

[web2py:11834] Re: web2py.net?

2008-11-14 Thread vihang
Massimo, I recently bought web2py.net. I see this framework going somewhere.. I don't have any immediate plans for it, but would like to setup a service for web2py related dev in future... let me know if you need anything from my end.. also, I would be happy to redirect it to web2py.com till then,

[web2py:11881] Re: web2py foundation

2008-11-15 Thread vihang
I think it would work ! On Nov 15, 1:10 am, "Daniel Contag" <[EMAIL PROTECTED]> wrote: > A truly interesting proposal, Massimo! > You, clearly, are thinking ahead. > > Daniel > > On Fri, Nov 14, 2008 at 22:01, mdipierro <[EMAIL PROTECTED]> wrote: > > > Actually I was thinking about something simi

[web2py:11882] Re: web2py.net?

2008-11-15 Thread vihang
Well, my initial considerations were similar to what bill mentioned above. Also, I had noticed someone else (not Massimo) had already taken web2py.org. Besides, the idea was also to take web2py further. Also It will be very difficult to keep all the tld for web2py unless we all (web2py aficionado)

[web2py:11917] Re: web2py.net?

2008-11-16 Thread vihang
Thank you everyone. I am sure the domain will be put to good use by the community, which was always the intention. Looking forward to collaborating further... On Nov 16, 12:44 am, pmate <[EMAIL PROTECTED]> wrote: > Well done Vihang! --~--~-~--~~~---~--~

[web2py:12459] DAL - Segregate connections & queries

2008-11-24 Thread vihang
Hi, I am working on a small project that requires me to direct certain queries to certain database connections. That is, simply put, all select queries to one database connection and update, insert queries to another. Can this be done in web2py without making mods to the DAL code? Cheers Vihang

[web2py:12462] Re: DAL - Segregate connections & queries

2008-11-25 Thread vihang
the following trick) > db1.define_table('mytable',) > db2.define_table('mytable',db1.mytable) > > then use db1 for select and db2 for update, insert, etc. > > Massimo > > On Nov 25, 1:52 am, vihang <[EMAIL PROTECTED]> wrote: > > > Hi, &

[web2py:13641] suggestion for web2py_ajax

2008-12-16 Thread vihang
eb2py_ajax comments? Cheers Vihang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group,

[web2py:13749] Hosting multiple domains (Apache Mod_Proxy) (no routes/mod_rewrite)

2008-12-17 Thread vihang
own app. Also, for some you may need to make changes in the proxy.conf to allow example1 or all websites (depending on your security needs). Happy web2py'ing Vihang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[web2py:13751] Re: t3 on launchpad, t2 will die

2008-12-17 Thread vihang
interesting... whats a python-friendly animal? On Dec 18, 12:34 am, pedro wrote: > Persoanlly I don't think I'll use T2. > If T2 comes with T3 which it necessarily has to, what's the problem of > whomever wants to use T2 getting it by downloading T3? My guess is > that you'll end up using T3 an

[web2py:14884] Lamba and T2

2009-01-13 Thread vihang
img_conv(form.vars.id))) but only the first three function in the lambda gets executed. I tried various permutations, but its always the first three functions only. Is it a bug or a feature or restriction? Thanks in advance Vihang --~--~-~--~~~---~--~~ You received this

[web2py:14886] Re: Lamba and T2

2009-01-13 Thread vihang
I ended doing the same, clubbing them into two functions. But I was just curious why it does not work as mentioned above. But Thanks. On Jan 13, 3:53 pm, notabene wrote > On Jan 13, 11:00 am, vihang wrote: > > > > > hi, > > > I am trying to execute this > >

[web2py:15859] Re: Google gears ?

2009-02-04 Thread vihang
I remember a similar discussion on this before here. My understanding is that the offline support for web application still has miles to go before it can mature like javascript libraries (jquery, dojo, etc). There are various issues involved primarily relating to data sync. It would have to be ad

[web2py:16181] Re: form pre-population fails if field is shown in 1.56.2

2009-02-11 Thread vihang
I agree with Denes that the "pre-populate" is kindof misleading. I was stuck with this for a while too. On the first go I would have expected the behavior as explained by Maurice, and preferred that. But backward compatibility is important. So the ball is in Massimo's court. On Feb 11, 9:15 pm, m

[web2py:16184] Re: form pre-population fails if field is shown in 1.56.2

2009-02-11 Thread vihang
Also, Denes could instead of form.vars.field='value' do db.database.field.default='value' before the form=SQLFROM, to "pre-populate" using controller values and see it in the form filled On Feb 11, 10:49 pm, vihang wrote: > I agree with Denes that the &q

[web2py:16526] Re: Few questions on license

2009-02-18 Thread vihang
As I understand currently web2py license hangs between GPL and LGPL (more on GPL though). I have seen some fantastic initiatives here like linking web2py to pyjamas-desktop. This way web2py can be used (possibly) for desktop apps too ! But here comes the issue. A lot of times, esp for desktop app

[web2py:16840] Re: Critical point in web2py

2009-02-24 Thread vihang
I think we need a bit more organized effort here. For instance someone can take a lead on docs. He could create a TOC of a manual/wiki, and then we can individually pick sections to fill in the doc/wiki, i.e. be a contributor. Point being there has to be someone constantly looking at it and adding

[web2py:16854] Re: Critical point in web2py

2009-02-24 Thread vihang
- I had seen the wiki at https://mdp.cti.depaul.edu/web2py_wiki/default/wiki/main earlier, but it seemed like a non-starter because it did not come out as a wiki we all are used to seeing typically... format-wise. Also, we should start by focusing just on Web2py and keep it simple (refering to T

[web2py:17149] Re: Critical point in web2py

2009-02-28 Thread vihang
Glad to see a whole lot of discussion on form, structure, etc... My 2 cents: (a summary of discussions above, since I was out of action last couple of days) 1) Yes, a popular wiki like moinmoin is easy to recognize and adopt, but given improvements massimo has made, the web2py wiki is worth cons

[web2py:19665] Issue: sqlite:memory:

2009-04-13 Thread vihang
= SQLDB('sqlite., ) and define table. The database admin does not insert any rows, nor can any statements from controller. Vihang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework&

[web2py:19682] Re: Issue: sqlite:memory:

2009-04-13 Thread vihang
ttp://groups.google.com/group/web2py/msg/df79e41f2298bef2 > > > > Hopefully Massimo will eventually find a way to implement a ram based > > > db. :-) > > > > On Apr13, 10:44pm, vihang wrote: > > > > > There maybe something wrong in my underst

[web2py:19683] Re: RFC auto fields

2009-04-13 Thread vihang
The syntax above is very straightforward and useful and those not look very ambiguous. dot notation can be introduced for what DenesL suggested... i,e, if we have db.define_table('person : Name, Birthday date, Telephone') db.define_table('dog: Name, Owner person.Name, Picture upload') Here with

[web2py:19754] Re: Issue: sqlite:memory:

2009-04-14 Thread vihang
The issue I raised coincides with what iceberg has described. I also agree with Yarko on the data persistence as a backend. But db in ram would be amazing as you can seamlessly use all DAL features ! Hopefully if we can get more traction on this feature. On Apr 14, 9:31 am, Yarko Tymciurak wrote

[web2py:19895] Re: Form / Subform paradigm

2009-04-16 Thread vihang
I have an alternate way, which I have used in my web2py application for the same purpose (order lines) using iframes. Works like charm. A abstract of it is .. hope it helps... On Apr 16, 8:01 pm, mdipierro wrote: > We do not have an example of that yet but nothing prevents you from

[web2py:19940] Note on new features

2009-04-17 Thread vihang
wiki link on the main page? Thanks Vihang P.S. If someone's already doing this effort, please let me know, I wouldn't want to make that work go redundant, and will try to aid his/ her efforts. --~--~-~--~~~---~--~~ You received this message because you are

[web2py:19944] Re: Note on new features

2009-04-17 Thread vihang
Correction, the address I mentioned for wiki was http://www.web2py.com/wiki (the https always gives certification error) On Apr 18, 12:41 am, vihang wrote: > Hi, > > Today, I went through the readme file after a while, and noticed > interesting features which can be a real timesaver

[web2py:20156] Re: Auth - disable registration

2009-04-21 Thread vihang
Even better would be to be able to use decorators on it, like @auth.requires_permission on register(). This may be asking too much, but just wanted to see how much the auth module can be stretched before one has to start tweaking the auth code... On Apr 21, 12:58 pm, vihang wrote: > I ha

[web2py:20155] Auth - disable registration

2009-04-21 Thread vihang
I had a look at the auth code, but could not find any flags to disable registration. Is there a way I can do it my have something like auth.settings.register flag in the model with other settings?? --~--~-~--~~~---~--~~ You received this message because you are subs

[web2py:20245] Re: Auth - disable registration

2009-04-22 Thread vihang
how can I decorate the register function in the tools.Auth from the application? Thanks On Apr 21, 3:08 pm, AchipA wrote: > You can call the decorator directly, or just wrap it in an internal > func. > > On Apr 21, 11:06 am, vihang wrote: > > > Even better would

[web2py:20351] Re: Auth - disable registration

2009-04-23 Thread vihang
()) > >   if 'register' in request.args: >     return myreg() > >   return dict(fom=auth()) > > On Apr 22, 2:51 pm, vihang wrote: > > > how can I decorate the register function in the tools.Auth from the > > application? > > > Thanks > > > On

[web2py:20673] Proposal (tiny addition to Auth module)

2009-04-27 Thread vihang
line 589 in tools.py : (7 occurance) elif next and not next[0] == '/' and next[:4] != 'http' and next[:10] != 'javascript': Add javascript: to the list of good urls Is it useful to others? --~--~-~--~~~---~--~~ You received this message because you are

[web2py:20739] Web2py and Python 2.6

2009-04-28 Thread vihang
Are there any issues anyone has come across? I need to deploy a web2py app on a production server running python 2.6. thanks Vihang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:20802] redirect referer url

2009-04-29 Thread vihang
Hi, Is there any way to know which the current page was redirected from? Esp, when one calls redirect(), I would like to know the previous page from the redirected page. I was hoping that info would be there in request.env.http_referer, but thats not case. Any thoughts? Thanks --~--~-~-

[web2py:20822] Re: redirect referer url

2009-04-29 Thread vihang
9 Apr, 09:24, Wes James wrote: > > > If Massimo doesn't indicate a straight forward way for this, you can > > stuff the value in to your own session variable. > > > -wj > > > On Wed, Apr 29, 2009 at 5:49 AM, vihang wrote: > > > > Hi, > > >

[web2py:20829] Re: redirect referer url

2009-04-29 Thread vihang
ate a straight forward way for this, you can > > stuff the value in to your own session variable. > > > -wj > > > On Wed, Apr 29, 2009 at 5:49 AM, vihang wrote: > > > > Hi, > > > > Is there any way to know which the current page was redirected from?

[web2py:22234] Re: Auth, Crud and Service in 1.62rc2

2009-05-20 Thread vihang
couldn't agree more with Annet On May 20, 11:32 am, annet.verm...@gmail.com wrote: > I buy the 80-20 rule. But that is a self-fulfilling prophecy. I think > you are all doing a great job developing web2py, however, in my > opinion Web2py tends to cater too much to users who develop web 2.0 >

[web2py:22760] Foreign key notnull constraint

2009-05-27 Thread vihang
Hi, The following does not make the foreign key field notnull (in postgres) db.define_table("Purchase_Invoice_Details", db.Field("id_Purchase_Invoice", db.Purchase_Invoice, notnull=True, ondelete='CASCADE'), db.Field("Part_Number&qu

[web2py:22769] Re: Foreign key notnull constraint

2009-05-27 Thread vihang
the particular column created in postgres does not have the NOT NULL set to true. On May 27, 10:10 pm, mdipierro wrote: > What do you mean it does not make it nonull? > > On May 27, 11:55 am, vihang wrote: > > > Hi, > > > The following does not make the fo

[web2py:22807] Re: Foreign key notnull constraint

2009-05-28 Thread vihang
afresh with a new database, but that too did not work. I was wondering whether a default is essential with a notnull, since the databases do not really need the default. Thanks On May 28, 10:33 am, annet.verm...@gmail.com wrote: > Massimo, > > Vihang is right. In my model I defined the

[web2py:22879] Re: Foreign key notnull constraint

2009-05-29 Thread vihang
Thanks again. I will be revising my models to include the default for the foreign key. On May 28, 6:26 pm, annet.verm...@gmail.com wrote: > Vihang, > > > I would prefer an error is raised if the value is not provided... > > Defining a validator IS_NOT_EMPTY() or IS_IN_D

[web2py] Re: Development Partnership

2010-11-23 Thread vihang
Steve, Can you email me the project details. I have a team of web2py developers at my end. Vihang On Nov 24, 6:16 am, Steve Shepherd wrote: > Thanks Massimo... by the way I haven't been back to web2py for a while as I > had a role that didn't require development. > You and

[web2py] Re: It is done GPL2 -> LGPL3

2010-12-22 Thread vihang
+3 LGPL ! Will make web2py more acceptable... ! On Dec 22, 7:38 am, Luis Díaz wrote: > +1 > > 2010/12/22 R. Strusberg > > > Another reason to switch from *webframework to web2py!. > > > +1 :-) Merry Christmas +1 > > > 2010/12/21 mdipierro : > > > For now trunk only. This will propagate to stable

[web2py:/] web2py groups sections?

2008-10-07 Thread vihang
Just a suggestion, for easy readability, is it possible to have sections in this group, like General, Bugs, Dev, etc like a forum? This will make it easy to browse through. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:/] Peculiar T2 (or web2py?) Behaviour - relating to Login

2008-10-07 Thread vihang
I am currently using download() for showing some images in my layout.html. Interestingly, if I decorate download() with requires_login(), then the forms on the pages, when not logged-in, do not work. (also, the images don't show up, but that is the expected behavior) @t2.requires_login(to='login

[web2py:9894] Interesting link on building accessible forms - using css instead of tables

2008-10-07 Thread vihang
http://www.websiteoptimization.com/speed/tweak/forms/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this

[web2py:9953] Re: T2: search (unresolved)

2008-10-08 Thread vihang
n.id==db.listing_owner.Accomodation_id) Vihang On Oct 6, 2:35 am, mdipierro <[EMAIL PROTECTED]> wrote: > I will run some tests later tonight. Thanks for letting me know. > > Massimo > > On Oct 5, 12:24 pm, vihang <[EMAIL PROTECTED]> wrote: > > > Thesearchfunction

[web2py:10108] Re: web2py book finally online in PDF

2008-10-11 Thread vihang
Hi Massimo, If we buy from vitalsource right now, can we also get the pdf version if/when its released later or do we have to pay for that again? Thanks Vihang On Oct 10, 11:11 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > Yeah i know :D > I am waiting to buy PDF version

[web2py:10113] Re: T2: search (unresolved)

2008-10-12 Thread vihang
gt; <__main__.A instance at 0xa8c60>>>> a & b > > and > > the operator __and__ overloaded in the DAL is '&', not 'and'. > > This means there is an error in theT2example. > > Massimo > > On Oct 8, 3:58 am, vih

[web2py:10198] Re: web2py book finally online in PDF

2008-10-13 Thread vihang
D]> wrote: > > > I think u will have to pay for that ,. Massimo have no control over that i > > think. > > > On Sun, Oct 12, 2008 at 6:21 AM, vihang <[EMAIL PROTECTED]> wrote: > > > > Hi Massimo, > > > > If we buy from vitalsource right now,

[web2py:10199] Re: nanites anybody?

2008-10-13 Thread vihang
Very interested... but never worked on ruby... On Oct 14, 7:41 am, mdipierro <[EMAIL PROTECTED]> wrote: > http://www.rubyinside.com/nanite-self-assembling-cluster-of-ruby-daem... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[web2py:10255] Re: Testing-the-water re change to update/delete

2008-10-15 Thread vihang
my understanding is that when a record is being modified/deleted, the transaction mechanism 'locks' the table. hence any other modification would fail or not get commited... only thing is that I do not know what kind of response is sent back.. On Oct 15, 5:39 pm, billf <[EMAIL PROTECTED]> wrote:

[web2py:10345] Re: Help needed on SMPP

2008-10-16 Thread vihang
Pystar - My experiance has been that generally, if you want free txt, you need to go regional. For instance the free/cheap SMS provider in south asia, does not service at the same rate outside south asia. On Oct 17, 7:21 am, mdipierro <[EMAIL PROTECTED]> wrote: > sorry, no. If you find out let me

[web2py:10884] Re: web2py book finally online in PDF

2008-10-31 Thread vihang
I exchanged a few mails with vitalsource guys to know more on their format since the pdf version was taking a while, and I am kind of disappointed with its portability. One problem is that I can view the book only on 2 computers. That means I cannot store it on my backup database or view it from m

[web2py] Rocket with urllib2 behavior [BUG?]

2011-02-05 Thread vihang
thread to request (active_queue.get() does not return a new thread required to complete the response), as the current session is already using one. This is not a problem with other web servers. Is this a bug or just the way Rocket server was made to behave? Vihang

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread vihang
As Tim rightly put it, the issue was only when called from the same controller. The chances of that happening are very bleak and in our case a mere coincidence. Nevertheless we wanted it cleared just to understand the server better. We have remodeled our code.