[web2py:11766] Re: pyworks2008 talk slides

2008-11-12 Thread voltron
Nice read, thanks for making this available On Nov 13, 4:59 am, mdipierro <[EMAIL PROTECTED]> wrote: > http://mdp.cti.depaul.edu/examples/static/pyworks.pdf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:11879] Re: Proposal: MVC separation - son of custom views

2008-11-15 Thread voltron
ination of PUT( create resource) + file type is the ticket I think. Specifying a different function or URL would not be useful if you intend for it to be fully RESTful, for example: /employees # main resource /employees/voltron or /employees?user_name =voltron # GET shows the user voltron

[web2py:11880] Re: Proposal: MVC separation - son of custom views

2008-11-15 Thread voltron
Would it be possible to simplify the flow by just stating a resource takes a dictionary of values and attributes and the enumerations Collection, Record, List should conform somehow? My reasons: 1. Web2py hast its own database idioms for collection types for the DAL, that would mean we have to m

[web2py:12427] Updating unique fields -a discussion

2008-11-23 Thread voltron
Hi all, I allow users to edit their account settings in a web application. One of the fields is their email address. I put a constraint on the field stating that it should never be empty, null and unique. I came across the situation that a user might want to change her/his email address, the prob

[web2py:12433] Re: Updating unique fields -a discussion

2008-11-24 Thread voltron
Thanks Massimo! I knew there was a cleaner way --~--~-~--~~~---~--~~ 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:12453] Passing values to the flash helper

2008-11-24 Thread voltron
I have never had problems with the flash helper, even when I heavily customized it, but today I noticed something strange, this seemingly harmless code: session.flash = user[0].user_name # This is a string field in the db or session.flash = str(user[0].user_name) or session.flash = str(user[0].i

[web2py:12456] Re: Passing values to the flash helper

2008-11-24 Thread voltron
I am using: Version 1.51 (2008-11-19 14:48:02) Database drivers available: SQLite3, Postgre The only code that could be of use is this snippet, the rest are several lines of forms, strings, mail templates and such user = db(db.users.id == session.user_id).select() if form.accepts(request.vars

[web2py:12461] Re: Passing values to the flash helper

2008-11-25 Thread voltron
Massimo, insert is wrong since I am presenting the user a form to manage her/his existing user settings. I needed commit() as a result of a discussion we had a few months ago, I am sending the user a verification mail and doing some other stuff in the same controller, it is supposed to trigger a s

[web2py:12477] Re: Passing values to the flash helper

2008-11-25 Thread voltron
ahh, that was the problem, a typo of some sort! I was staring at it the whole time and did not see it, no reason for me to update the table definitions :-)) Thanks a lot guys --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[web2py:12699] Curiosity - the options function

2008-12-01 Thread voltron
Hi Massimo, I was unable to track down when the "options()" function is called/ used in the HTML SELECT helper. Can you enlighten me? I know what is for, I just would like to know when and at which poit it is called. Thanks --~--~-~--~~~---~--~~ You received this

[web2py:12709] Re: Curiosity - the options function

2008-12-01 Thread voltron
version are you using?  I don't have a a SELECT.options() method > > in my source?! > > > I just have options() methods in the IS_IN_SET and IS_IN_DB > > validators. > > > On Dec 1, 8:06 am, voltron <[EMAIL PROTECTED]> wrote: > > > > Hi Massimo,

[web2py:12710] Re: only capital letters in string fields

2008-12-01 Thread voltron
You can use the python string function myString.capitalize() http://www.python.org/doc/2.5.2/lib/string-methods.html I hope this is what you are after On Dec 1, 11:14 am, Marco Prosperi <[EMAIL PROTECTED]> wrote: > hello everybody, my web2py application will interchange data with an > ERP sys

[web2py:12792] Re: insert a default value into a text of a table form

2008-12-02 Thread voltron
This is the way I do things like that you can use Javascript or do it directly in the controller. #Javascript $("#my_textarea").text("Put some text here"); #In the controller: before form.accepts(), assign values, an example: form.components[0].components[1].components[1].components[0].

[web2py:12920] Sharing templates

2008-12-04 Thread voltron
Hi all, I have a slight problem with sharing templates between appliances. Given 2 appliances, "init" and "test" . Init has a view called "base_template.html", so I thought a way to call the view from "test" would be: # a controller in "test" response.view = "applications/init/views/base_templat

[web2py:12926] Ubuntu web2py startup scripts

2008-12-05 Thread voltron
Anybody here using the Ubuntu web2py startup scripts? I have a few questions, for example, line 30 DAEMON_ARGS="web2py.py --password= --pid_filename=$PIDFILE" Should that not be: DAEMON_ARGS=" nohup web2py.py --password= --pid_filename= $PIDFILE &" Thanks --~--~-~--~~--

[web2py:12927] Re: Sharing templates

2008-12-05 Thread voltron
Darn, so easy, embarrasing :-) Thanks On Dec 5, 8:27 am, mdipierro <[EMAIL PROTECTED]> wrote: > response.view = "../../init/views/base_template.html" > > On Dec 4, 11:42 pm, voltron <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a slight

[web2py:12958] Problems with CSV import

2008-12-05 Thread voltron
Does anyone else have problems with CSV import? I used SQL Maestro to export data from an old legacy PostgreSQL databases and tried to import the data without success in an application. I can migrate using other methods actually, but I was just curious to see how well the CSV import works. Thanks

[web2py:12995] Re: Sharing templates

2008-12-05 Thread voltron
Hmm, thats a typo Massimo, what really works is this: response.view = "../../../init/views/base_template.html" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send

[web2py:12998] Re: Sharing templates

2008-12-05 Thread voltron
I would have liked that too Yarko, but sadly, it does not work with that method --~--~-~--~~~---~--~~ 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.co

[web2py:13000] Re: Problems with CSV import

2008-12-05 Thread voltron
Thanks for the tips guys. Strangely, I have headers( table field names in the first row) but I still get errors. Must the number of fields have to correspond exactly to the number of fields in the database? I have several new fields in the database I would like to import the data into --~--~--

[web2py:13074] Re: Sharing templates

2008-12-06 Thread voltron
Strange DenesL, but like I said, it did not work with 1.51, I had to use: response.view = "../../../init/views/base_template.html" I also think its better than using: a='../../init' in URL() Thanks guys --~--~-~--~~~---~--~~ You received this message because y

[web2py:13075] Re: Apache Deployment issues on Ubuntu

2008-12-07 Thread voltron
Hello Johann, I think you have toi move the "servername" directiove out of the virualhost config block as in ServerName "www.yourdomain.com" NameVirtualHost *:80 # = # Apache server settings # Auth

[web2py:13076] Re: Apache Deployment issues on Ubuntu

2008-12-07 Thread voltron
Hmm, I re-read your post, your config is almost like the one I posted. Are you using Debian/Ubuntu? You can use one config file for all your Vhosts actually, if you intend to split files, the directives at the top: ServerName "www.yourdomain.com" NameVirtualHost *:80 should only exits in the d

[web2py:13189] Re: Cannot import from CSV file

2008-12-09 Thread voltron
I am still having problems with CSV import just like the poster of this thread. All the colum headers are ok, and the file imports well usíng SQLite manager, Sqliteman , MS Excel and other tools. Is there anyone that has had some success? Thanks --~--~-~--~~~---~--~--

[web2py:13191] Migration connection problems with an existing SQLite database

2008-12-09 Thread voltron
Are there things that I have to look out for when trying to connect to an existing SQLite database? I can see the databse in the appadmin, but no data is displayed, which is very starnge because I can use several tools to see and manipulate the data like SQLiteman, SQLite Manger(firfox) Thanks -

[web2py:13200] Re: Migration connection problems with an existing SQLite database

2008-12-09 Thread voltron
define_table in your models. You need to define_table > (...,migrate=False) for existing tables. > > On Dec 9, 10:39 am, voltron <[EMAIL PROTECTED]> wrote: > > > Are there things that I have to look out for when trying to connect to > > an existing SQLite database? I ca

[web2py:13277] Error with sessions?

2008-12-10 Thread voltron
I am getting this error from a new appliance that I am coding: Traceback (most recent call last): File "E:\projects\test\website\web2py\test\gluon\main.py", line 228, in wsgibase session._try_store_on_disk(request,response) File "E:\projects\test\website\web2py\test\gluon\globals.py", lin

[web2py:13286] FIXED : Error with sessions?

2008-12-10 Thread voltron
Got it, was a type in my code --~--~-~--~~~---~--~~ 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, send email to [E

[web2py:13288] Re: Ubuntu web2py startup scripts

2008-12-10 Thread voltron
Anybody? Phyo? On Dec 5, 9:01 am, voltron <[EMAIL PROTECTED]> wrote: > Anybody here using theUbuntuweb2py startup scripts? I have a few > questions, for example, line 30 > > DAEMON_ARGS="web2py.py --password= --pid_filename=$PIDFILE" > > Should that not be:

[web2py:13539] Server/ Systemmonitoring appliance?

2008-12-13 Thread voltron
Hi there! Someone mentioned a project that was to use Web2py to monitor services on a system,has there been any progress? I am greatly interested. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:13718] Re: Server/ Systemmonitoring appliance?

2008-12-17 Thread voltron
t; > > > Massimo > > > > On Dec 15, 6:07 am, achipa wrote: > > > > > There is an appliance, and I'm also working on something of my own, a > > > > little teaser: > > > > >http://picasaweb.google.com/attila.csipa/WebmonSshot >

[web2py:13953] Performance tips

2008-12-20 Thread voltron
I am having serious performance problems with an appliance. I have 2 instances of web2py being served by reverse proxy via Apache2. The live domain running on port 8000 runs very compared to the test domain running on port 8002. The only difference is that the live server is being accessed by ove

[web2py:14033] Performance revisited

2008-12-22 Thread voltron
Hi all, I am still having serious problems. Contrary to what I posted before, the site in question serves an average of 1, 500 users a day. I have used cacheing for several pages but to my dismay, I noticed that the cached pages display the default web2py template instead of the template which I

[web2py:14036] Re: Performance revisited

2008-12-22 Thread voltron
-t0 > print t0 > > can help you debug your problem > > On Dec 22, 11:51 pm, voltron wrote: > > > Hi all, > > > I am still having serious problems. Contrary to what I posted before, > > the site in question serves an average of 1, 500 users a day. I h

[web2py:14054] MERRY CHRISTMAS ALL!

2008-12-23 Thread voltron
I wish you all a merry christmas! --~--~-~--~~~---~--~~ 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, send email t

[web2py:14052] Re: Performance revisited

2008-12-23 Thread voltron
Thanks Yarko, I will study that On Dec 22, 12:58 pm, "Yarko Tymciurak" wrote: > might this be useful?http://mg.pov.lt/profilehooks/ > > On Mon, Dec 22, 2008 at 10:58 AM, voltron wrote: > > > Thanks Vince, do you have a better detailed timing solution? Sorry fo

[web2py:14613] Cacheing makes web2py "forget" tenmplates sporadically

2009-01-06 Thread voltron
I have a bad problem at the moment, all the views that use cacheing sometimes default to web2py generic template sporadically then are then correct after a refresh. I set the template in the views as such # Example response.view = "accounts/register.html" Is there some workaround for this? T

[web2py:14616] Re: Cacheing makes web2py "forget" tenmplates sporadically

2009-01-06 Thread voltron
ntent = """ On Jan 6, 3:07 pm, mdipierro wrote: > Can you provide an example of how you caching a page so that I can try > reproduce this? > > Massimo > > On Jan 6, 6:19 am, voltron wrote: > > > I have a bad problem at the moment, all the views that use cach

[web2py:14621] Re: Cacheing makes web2py "forget" tenmplates sporadically

2009-01-06 Thread voltron
ge? An error? Can > you add a print statement to check whether the controller is executed > when you see the error? > > Why are you using cache.disk over cache.ram? The former involved > picklying so the latter is much faster. > > massimo > > On Jan 6, 8:09 am, voltron

[web2py:14669] Re: Cacheing makes web2py "forget" tenmplates sporadically

2009-01-07 Thread voltron
Thanks Massimo, The web2PY generic template is not displayed anymore. BUT I have a more serious problem, forms rendered in the cached view function are not validated and do not work anymore. Any ideas? Thanks On Jan 6, 5:55 pm, mdipierro wrote: > @voltron, > > ignore my original

[web2py:14729] Problems with request.env.remote_addr

2009-01-08 Thread voltron
I think the value returned is wrong, it should return the IP address of the client accessing the running instance of web2py not the server address on which the instance is running. Could someone else check? --~--~-~--~~~---~--~~ You received this message because you

[web2py:14731] Re: Problems with request.env.remote_addr

2009-01-08 Thread voltron
gt; address of the proxy with is the server itself. > > web2py "tries" to figure out the actual client address in > request.client > > Massimo > > On Jan 8, 9:41 am, voltron wrote: > > > I think the value returned is wrong, it should return the IP address &

[web2py:15106] Web2py performance problems

2009-01-19 Thread voltron
I have been having serious performance problems. Some tracking down led to the observation that when using Apache as a reverse proxy, web2py runs up the CPU usage and shuts down after 100 requests. The strangest thing is that when this happens, the CPU is only at 60% usage. Is there some setting

[web2py:15113] Where is the CherryPY Server and its coonfiguration file?

2009-01-19 Thread voltron
Can someone tell me where to find the CherryPY server and its configuration file? I would like to set these settings: server.thread_pool: 40 server.socket_queue_size: 15 Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[web2py:15120] Re: Where is the CherryPY Server and its coonfiguration file?

2009-01-19 Thread voltron
Thanks Fran On Jan 19, 3:51 pm, Fran wrote: > On Jan 19, 2:28 pm, voltron wrote: > > > Can someone tell me where to find the CherryPY server and its > > configuration file? I would like to set these settings: > > gluon/wsgiserver.py > > > server.thread_pool: 40

[web2py:15125] FCGI Vs. Apache reverse proxy

2009-01-19 Thread voltron
Does anyone have any experince with deploying web2py using FCGI or via Apache revers proxy? Which uses up more memory? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to

[web2py:15137] Re: FCGI Vs. Apache reverse proxy

2009-01-19 Thread voltron
Thanks Phyo. I will try to make some more tests then. --~--~-~--~~~---~--~~ 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:15139] Re: Web2py performance problems

2009-01-19 Thread voltron
performance dips, the response could be fast, but sometimes they just grind to a halt for no reason, this is not dependent of database queries oor other processes, just dynamically rendered "static" pages. This is a headache On Jan 19, 11:46 am, mdipierro wrote: > Voltron, > >

[web2py:15145] URGENT! Apache FCGI config

2009-01-20 Thread voltron
Does anyone have an apache example FCGI config script for me? Thanks --~--~-~--~~~---~--~~ 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 unsub

[web2py:15175] Re: Web2py performance problems

2009-01-21 Thread voltron
Thanks Massimo, I will try that out On Jan 20, 8:05 pm, mdipierro wrote: > Voltron, > > if you have more than 100 cuncurrent users you should not use > wsgiserver. You need to use mod_wsgi. I would not swear on wsgiserver > on that heavy load. > > You also have 100 datab

[web2py:15177] Mod_WSGI deployment problem

2009-01-21 Thread voltron
I cannot get my site to work using WSGI, this is the error I see in the Apache configs: [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] mod_wsgi (pid=31101): Target WSGI script '/projects/test_site/wsgihandler.py' cannot be loaded as Python module. [Wed Jan 21 10:57:11 2009] [error] [cl

[web2py:15180] Re: Mod_WSGI deployment problem

2009-01-21 Thread voltron
27; > > where > > '/bla/bla/bla' should be the absolute path to your web2py folder '/.../ > web2py/' > > and make sure you have the folder gluon in there. > > Massimo > > On Jan 21, 4:09 am, voltron wrote: > > > I cannot get my site to work u

[web2py:15193] Re: Mod_WSGI deployment problem

2009-01-21 Thread voltron
httpd.conf? > Also, what is the location of your web2py installation? > Finally, what version of Apache? > > Cheers > > On Jan 21, 10:35 am, voltron wrote: > > > Hi Massimo! > > > thanks for your help. Sadly, that did not work either , another idea? > >

[web2py:15194] Re: URGENT! Apache FCGI config

2009-01-21 Thread voltron
Thanks Timothy for your help. I got it to work somewhat based on your files and tutorial. One thing though, I dad to modify the dispatch.fcgi file as in: #!/usr/bin/env python2.5 import os import sys WEB2PY_PATH = os.path.normpath('/path to web2py/') os.chdir(WEB2PY_PATH) if not WEB2PY_PATH i

[web2py:15208] FCGI questions

2009-01-21 Thread voltron
Hi all! I have a few questins concerning FCGI 1. I used to use mod_proxy, I had 2 web2py instances running on 2 ports, 8000 and 8002, what is the equivalent in FCGI? 2. I used putty to create tunnesl to my server so I can administer the servers remotely, how can I do this using FCGI 3. Using mp

[web2py:15212] Re: FCGI questions

2009-01-21 Thread voltron
es stuff to FCGI via the rewrite command.  Read up on how > to use it.  The setting that I showed you routes all paths to to > dispatch.fcgi.  You'll want to modify that so that it only writes...say > /web2py/.* to dispatch.fcgi. > > http://httpd.apache.org/docs/2.0/mod/mod_rewri

[web2py:15217] Re: FCGI questions

2009-01-21 Thread voltron
80 on your server to a local port (81 for > example.  Then connect to localhost:81/admin/default/site and it should > be your admin interface. > > Routes aren't the end of the world, but if you're already using Apache > and rewrite, use that instead of routes.  It's faster

[web2py:15239] Explanation and phases of double form submission

2009-01-21 Thread voltron
Hi Massimo, can you detail out how double form submission is prevented using web2py in details and phases? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this grou

[web2py:15240] Re: FCGI questions

2009-01-21 Thread voltron
think that will hold for a month On Jan 21, 11:38 pm, mdipierro wrote: > voltron is expecting hunderds of requests/second. I strongly suggest > getting at least two machines for the different virtual hosts. > > Massimo > > On Jan 21, 3:48 pm, Timothy Farrell wrote: > >

[web2py:15241] Re: Explanation and phases of double form submission prevention

2009-01-21 Thread voltron
That should have read "prevention" :-)) On Jan 22, 6:39 am, voltron wrote: > Hi Massimo, > > can you detail out how double form submission is prevented using > web2py in details and phases? > > Thanks --~--~-~--~~~---~--~~ You recei

[web2py:15251] Re: FCGI questions

2009-01-22 Thread voltron
yes, thats true, I could have just added the ports 80 to my SSH list, it was too early in the morning Fran, thanks :-) On Jan 22, 8:40 am, Fran wrote: > On Jan 21, 9:37 pm, voltron wrote: > > > 2. Sorry to be so bothersome, one last thing, I am using vhosts, I > > have 2 i

[web2py:15252] SSH to admin on FCGI intancen

2009-01-22 Thread voltron
Ok, I give up, can someone confirm that the admin does not work (404) when one uses an SSH tunnel? I canget get it to work, everything else is ok --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:15257] Re: SSH to admin on FCGI intancen

2009-01-22 Thread voltron
Can you show me how to to that with Squid Alexandre? Thanks On Jan 22, 1:59 pm, Alexandre Miguel de Andrade Souza wrote: > It works, but only with squid andhttps://mydomain.com/admin > > On Thu, Jan 22, 2009 at 10:50 AM, voltron wrote: > > > Ok, I give up, can someone conf

[web2py:15262] Re: network access to web2py

2009-01-22 Thread voltron
I think this might be the same problem I am having too. I posted something a few minutes ago in another thread On Jan 22, 3:13 pm, Joel Merrick wrote: > Presumably web2py is only listening on 127.0.0.1, hence it will only serve > pages requested from your localhost > > I'm certain there's an opt

[web2py:15274] Re: SSH to admin on FCGI intancen

2009-01-22 Thread voltron
r > ports too. > > Basically, you need to make a ssh tunnel using the port 3128, and configure > you browser to use the proxy localhost:3128 > > Just to know, squid is a proxy type http 1.1 > > > > On Thu, Jan 22, 2009 at 12:09 PM, voltron wrote: > > > Can you

[web2py:15275] Re: SSH to admin on FCGI intancen

2009-01-22 Thread voltron
Oh, before I forget, I have also been using SSL and with the sites, that has always worked well too --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to we

[web2py:15316] Re: SSH to admin using Web2py FCGI instance

2009-01-23 Thread voltron
Could this be the problem Massimo? try: _config={} port=int(request.env.server_port) restricted(open(apath('../parameters_%i.py'%port),'r').read (),_config) if not _config.has_key('password') or not _config['password']: raise HTTP(200,T('admin disabled because no admin pas

[web2py:15317] Re: BUG -SSH to admin using Web2py FCGI instance

2009-01-23 Thread voltron
This is the problem, temporary, hacky, patch try: _config={} if request.env.server_port: port=int(request.env.server_port) else: port = 8000 restricted(open(apath('../parameters_%i.py'%port),'r').read (),_config) if not _config.has_key('password') or not _c

[web2py:15454] SSL and session modification

2009-01-26 Thread voltron
Maybe a naive question; does requesting a page withh SSL, create or modify the existing session in some way? I am trying to track down a bug that has been evading me all morning. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[web2py:15458] Re: SSL and session modification

2009-01-26 Thread voltron
But not that it would overwrite or modify an existing variable/Key would it? On Jan 26, 3:19 pm, mdipierro wrote: > it depends. > > all forms change session, the presence of session.flash changes > session. > > Massimo > > On Jan 26, 6:34 am, voltron wrote: > >

[web2py:15496] SOLVED: SSL and session modification

2009-01-26 Thread voltron
Sorry for the post. I had 2 instances of web2 running, FCGI and Proxy Reverse accessing the same folders. This must have caused the strange deletion and modification of the session variable. On Jan 26, 5:12 pm, mdipierro wrote: > no > > On Jan 26, 8:24 am, voltron wrote: > > >

[web2py:15806] Re: bluetrip

2009-02-03 Thread voltron
Much lighter http://groups.google.com/group/css-boilerplate On Feb 3, 2:08 am, mickgardner wrote: > vote +1 for yuicss, i've used it in the past and its great. > > On Feb 3, 9:17 am, mdipierro wrote: > > > Should this or something like this be included in the web2py > > scaffolding app?http://

[web2py:15867] Offset for limitby?

2009-02-04 Thread voltron
Hi! how can one pass an offset to limitby? Thanks --~--~-~--~~~---~--~~ 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 g

[web2py:15876] Re: Offset for limitby?

2009-02-04 Thread voltron
great! Thanks On Feb 4, 6:27 pm, mdipierro wrote: > limitby=(10,30) means offset=10 and you want 30-10 records. > > On Feb 4, 8:57 am, voltron wrote: > > > Hi! > > > how can one pass an offset to limitby? > > > Thanks --~--~-~--~~---

[web2py:17060] Checkbox validation broken?

2009-02-27 Thread voltron
I use to use IS_EMPTY() to validate checkboxes a while back, is it broken? Nothing happesn and the form is accpted if the checkbox is checked or not --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewor

[web2py:17070] Re: Checkbox validation broken?

2009-02-27 Thread Voltron
Ok, how would I validate if a checkbox is checked in a form? Thanks --~--~-~--~~~---~--~~ 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 unsubs

[web2py:17071] Re: Checkbox validation broken?

2009-02-27 Thread Voltron
the checkbox is in a fairly large form, it suggests that users should accept the terms and coditions of a contract. IS_EMPTY() used to work On Feb 27, 4:42 pm, Voltron wrote: > Ok, how would I validate if a checkbox is checked in a form? > &g

[web2py:17094] Re: Checkbox validation broken?

2009-02-27 Thread Voltron
apologize, I meant IS_NOT_RMPTY() On Feb 27, 6:31 pm, mdipierro wrote: > db.table.checkbox_field.requires=IS_IN_SET(['on']) > > yes > > On Feb 27, 10:44 am, DenesL wrote: > > > On Feb 27, 10:42 am, Voltron wrote: > > > > Ok, how would I validate

[web2py:17140] Re: Checkbox validation broken?

2009-02-28 Thread Voltron
plies that a choice has been > made. > It is possible that revision 1.55 broke IS_NOT_EMPTY for checkboxes. > > Massimo > > On Feb 27, 2:42 pm, Voltron wrote: > > >  apologize, I meant IS_NOT_RMPTY() > > > On Feb 27, 6:31 pm, mdipierro wrote: > > > > d

[web2py:18775] DAL Insert error

2009-03-30 Thread voltron
Hi, does anyone have an idea what could cause this error? current transaction is aborted, commands ignored until end of transaction block I am trying to make over 2000 inserts at a go, could that be a problem? Thanks --~--~-~--~~~---~--~~ You received this mess

[web2py:21861] Importing modules from controller folder

2009-05-14 Thread voltron
I have several forms and accompanying functions, I would like to be able to import them from the controller folder as in: /controlllers /forms/__init__ /forms/ reg_form.py mycontroller.py #in mycontroller.py import forms.reg_form ### ERROR This is n

[web2py:21866] Re: Importing modules from controller folder

2009-05-14 Thread Voltron
g_form' % > request.application) > > On May 14, 11:47 am, voltron wrote: > > > I have several forms and accompanying functions, I would like to be > > able to import them from the controller folder as in: > > > /controlllers > >               /forms/_

[web2py:21868] Re: Importing modules from controller folder

2009-05-14 Thread Voltron
14, 2009 at 3:54 PM, Voltron wrote: > > > Done that, was a pain Massimo as I explained in my first post: > > > "This is not possible for some reason. I could have put them in the > > "modules" folder, but that involves import gluon.html.gluon.languages > &

[web2py:21888] Re: Importing modules from controller folder

2009-05-15 Thread Voltron
blems we had deploying the web2py applications (CherryPY server not scaling, FCGI). We are using a PHP framework for those domains( 3) instead On May 15, 8:11 am, mdipierro wrote: > Hi voltron. was this resolved? > > Glad to have you back from php. ;-) > > On May 14, 7:38 pm

[web2py:9924] Re: Ajax with multiple targets

2008-10-07 Thread voltron
You can use this. Jquery taconite plugin (http://www.malsup.com/jquery/ taconite/) On 7 Okt., 22:41, mdipierro <[EMAIL PROTECTED]> wrote: > Can't you call the ajax function twice? > > Massimo > > On Oct 7, 3:12 pm, morningovermidnight <[EMAIL PROTECTED]> > wrote: > > > Ok, here goes. I've been wo

[web2py:10023] Re: services

2008-10-09 Thread voltron
I dunno, why re-invent the wheel with services? XML-RPC, Remoting, Flash remoting works well with with Web2py or am I missing the point here? I think something in the direction of middleware is what we need --~--~-~--~~~---~--~~ You received this message because yo

[web2py:10080] Re: Dispatcher

2008-10-10 Thread voltron
It would be cool if the routes were configured as a WSGI plugin as in Pylons, but I am content, it was tough to get Massimo to allow routing :-D. In case it does get to be re-coded as a WSGI plugin, why place error handling in it? Would it not be better to have an error handling plugin that "gener

[web2py:10211] Re: nanites anybody?

2008-10-14 Thread voltron
looks iteresting, you are a clustering expert massimo, what do you think about it? Could the exchange mapper be a normal web2py appliance in our case? On Oct 14, 7:36 am, vihang <[EMAIL PROTECTED]> wrote: > Very interested... but never worked on ruby... > > On Oct 14, 7:41 am, mdipierro <[EMAIL P

[web2py:10409] Re: web2py cookbook anyone?

2008-10-18 Thread voltron
I understand both points of view. It is very beneficial to all of us if we can share and discuss information in form of Snippets, HowTos, Tutorials. I have great respect for those that actually take the time to write these, I have promised myself to write several, but have to date, only been able

[web2py:10474] Migration suggestion

2008-10-20 Thread voltron
Hi Massimo, I would like to suggest that the switch that toggles migration should be disambigous. My reason? I tried to migrate a live PostgreSQL database some days ago and I ran into problems that I could only solve manually. Right now, we have this "toggle", migrate, which can be either a bool

[web2py:10477] Re: Migration suggestion

2008-10-20 Thread voltron
Hi billf, I think you have misunderstood my problem. All 3 databases are unique in the data sense, but the schema stays the same, if you make changes to your model, it is sometimes a heade to propagate the changes to the other web2py installations. Besides, the problem of ambiguity of the Migrat

[web2py:10570] Re: How to implement RESTful requests? A proposal

2008-10-23 Thread voltron
I am not sure if your proposal would work with RESTful clients because you are not using the HTTP protocol to differentiate the actions taken. What about using decorators? http://pylonshq.com/docs/0.9/module-pylons.decorators.rest.html Or a workaround as Massimo suggested once http://groups.g

[web2py:10591] Re: Migration suggestion

2008-10-24 Thread voltron
Ping! ok, since the suggestion did not generate any comments, how can one avoid the migration problems in the case I presented above? Any workarounds? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Frame

[web2py:10620] Re: Migration suggestion

2008-10-26 Thread voltron
file to a identical remote appliance does not guarantee a successful migration? I am sorry, but I am still confused Thanks On 26 Okt., 10:52, mdipierro <[EMAIL PROTECTED]> wrote: > Hi Voltron, > > > Would it not be better to have a varibare that notifies web2py to > &

[web2py:10621] Re: google checkout level 1 and 2 on google app engine

2008-10-26 Thread voltron
Hi Billf it seems you might need to use some client side validation code to make up for the missing usability problems. The Jquery validation plugin might help On 26 Okt., 10:53, mdipierro <[EMAIL PROTECTED]> wrote: > You are right but the form is generated by Google so there is nothing > I can

[web2py:10623] Re: Migration suggestion

2008-10-26 Thread voltron
; >     $ python web2py.py -S atest >     >>> db=SQLDB(None) >     >>> db['_dbname']='mysql' >     >>> > db.define_table('person',SQLField('name'))._create(migrate='person.table') > > Massimo > >

[web2py:10625] Re: Migration suggestion

2008-10-26 Thread voltron
on a modified model, this headache would be gone, so web2opy can make ALTER actions on a live database too as the ones on the local and BETA (identical) applaices that passed tests was this clear? On 26 Okt., 13:24, billf <[EMAIL PROTECTED]> wrote: > Voltron > > I apologise

[web2py:10628] Re: Migration suggestion

2008-10-26 Thread voltron
I still insist, unless convinced otherwise, that the migrate switch at the moment logically wrong if it takes a string for the table files, there should be a separate variable that controls the creation of .table files because one would not want to migrate a database( migrate = False) but just mo

[web2py:10633] Re: Migration suggestion

2008-10-26 Thread voltron
ore on the forum. I will,as soon as possible try to test on your workaround. I would then not have any headaches when the PMs come over with their modifications :-) Thanks! On 26 Okt., 15:45, billf <[EMAIL PROTECTED]> wrote: > Voltron > > I am not agreeing/disagreeing re migrate

[web2py:10681] Re: web2rokee! web2py + Cherokee Howto!

2008-10-27 Thread voltron
This is great! I have always followed Cherokees progress,the only sad thing has been that the windows support is somewhat sketchy, I havent been able to get the admin to show up. Have you tried load balancing? --~--~-~--~~~---~--~~ You received this message becaus

  1   2   >