[web2py] Confusion: Web2py scheduler spawning a new child process for every task?

2014-05-21 Thread Apoorve Mohan
Hello All I am running my web2py app over apache. At backend I start a a web2py scheduler using *python "web2py.py -K "*. When I do a "*ps -ef*" on my console, before adding any task to the queue, I see a single process being created for the scheduler. When I add task to the queue and as soon

[web2py] Database showing wrong default value

2013-08-01 Thread Apoorve Mohan
Hello I am storing datetime.datetime.now() as default value of an attribute. But the time stored in the db is changing automatically. Why is this happening. Why the default value is not persistent??? -- Apoorve -- --- You received this message because you are subscribed to the Google Group

[web2py] Auto-Updation of auth object after login callback updates database

2013-07-23 Thread Apoorve Mohan
Hello My App triggers a login callback that updates the user tables in the database. My app fetches user info from a remote db and updates my local db. How can I update my "auth object automatically". One way out is that after inserting info in the db I manually update auth. But I want to kno

[web2py] Re: Composite Unique Key

2013-07-22 Thread Apoorve Mohan
, 2013 8:58:22 PM UTC+5:30, Massimo Di Pierro wrote: > > What problem are you trying to solve? > > On Thursday, 18 July 2013 08:32:07 UTC-5, Apoorve Mohan wrote: >> >> Hello All >> >> Please guide me on how to create a "composite unique key"

[web2py] Composite Unique Key

2013-07-18 Thread Apoorve Mohan
Hello All Please guide me on how to create a "composite unique key". -- Thanks and Regards Apoorve -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2p

[web2py] Re: How to give web2py commandline options when using apache, mod_wsgi

2013-06-23 Thread Apoorve Mohan
>>> # make 5 worker nodes >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python web2py.py -K app1,app2,app3 & >>> nohup python w

[web2py] How to give web2py commandline options when using apache, mod_wsgi

2013-06-21 Thread Apoorve Mohan
Hello All I am using apache using mod_wsgi to run my web2py app. I need to specify -K command line option so that i can use schedulers. Please suggest that how can these command line options be passed when running the app on apache. -- Regards Apoorve -- --- You received this message beca

[web2py] scheduling task on inserts in database table

2013-06-21 Thread Apoorve Mohan
Hello All In my application I have a cron that runs every 5 minutes and performs a task. Basically it checks for a entry in a database table and then performs the task. Now I want that whenever there is an entry made in a particular database table a task should be fired automatically (something

[web2py] Re: Importing files present in models in db.py

2013-06-17 Thread Apoorve Mohan
Hi The problem with modules is solved. I was missing __init__.py file. But how to import files present in models in db.py. This is still unclear. -- Thanks Apoorve On Monday, June 17, 2013 1:23:57 PM UTC+5:30, Apoorve Mohan wrote: > > Hello All > > In my applications i have s

[web2py] Importing files present in models in db.py

2013-06-17 Thread Apoorve Mohan
Hello All In my applications i have several files present in models. I need to import this helper.py file in my db.py. So in db.py i have written "from helper import get_config_file" But when I do so it always gives an import error: * No module named modules.helper* Now the question is why is

[web2py] Web2py Layout Pluggin

2013-06-10 Thread Apoorve Mohan
Hello All I am using the layout pluggin's provided by web2py and I observed that browser independence and screen resolution independence has not been handled properly in them. Can anyone suggest me how to resolve these problem??? -- Thanks Apoorve -- --- You received this message because

[web2py] Database Triggers

2013-05-21 Thread Apoorve Mohan
Hi I want to know whether there is a support for database triggers in web2py. I can't find any documentation on-line. Please suggest me some links. -- Thanks and Regards Apoorve -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsub

[web2py] Re: PAM + Kerberos + LDAP Problem

2013-04-09 Thread Apoorve Mohan
ls for some users. There are many > configuration options in ldap therefore it probably is a settings issue. > > Can you try authenticate them from python-ldap from python shell? > > Can you try identify what is in common among those who cannot login? > > Massimo > > On

[web2py] PAM + Kerberos + LDAP Problem

2013-04-07 Thread Apoorve Mohan
Hi All I am using PAM to login into my website. I have configured my system PAM with LDAP and KERBEROS. Now the problem I am facing is that not all my users are able to login using that service. I also checked my KERBEROS setting using KINIT command and I was able to successfully authenticat

[web2py] How to share data between web requests(static variables)

2013-03-13 Thread Apoorve Mohan
Hi All I am sending ajax requests to the server every 100 milli secs. And I want to share a variable between every request that need to be updated on every request. I tried using global variable but it din't worked. Neither could I find anything like static variables. Please suggest something

[web2py] Re: Web2py Ajax Problem

2013-02-04 Thread Apoorve Mohan
Thanks Anthonyit worked On Sunday, February 3, 2013 7:46:18 PM UTC+5:30, Anthony wrote: > > See answer to similar issue here: > https://groups.google.com/d/msg/web2py/a8Ovzh__x9o/_d7rckBpg9QJ > > Anthony > > On Sunday, February 3, 2013 5:54:00 AM UTC-5, Apoorve Mohan wr

[web2py] Web2py Ajax Problem

2013-02-03 Thread Apoorve Mohan
Hi I am firing Ajax calls from a webpage. If any AJAX call hangs in between then the others also hangs until the hanged AJAX returns. Is this a Web2py Bug or my applications bug Below is my code: {{extend 'layout.html'}} setInterval(test1,1000); function test1() { ajax('{{=URL(