Re: [web2py] googling web2py

2010-03-27 Thread Wes James
Results 1 - 10 of about 712,000 - via Digis internet in Utah, USA. On Sat, Mar 27, 2010 at 7:23 PM, mdipierro wrote: > When you google "web2py" how may hits do you get? from which country? > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To p

Re: [web2py] Re: zengarden anybody?

2010-03-22 Thread Wes James
On Sat, Mar 20, 2010 at 7:27 PM, mdipierro wrote: > Just for fun: > >   http://web2py.com/zengarden > > then click on the [zengarden] link under the menu, under the "index" > link. You can change the skin per user, per session. > This is a bare bone welcome app with the layout > It says to click

Re: [web2py] Re: problema con mysql y apache

2010-03-19 Thread Wes James
lem is in the apache web > server, because web2py without apache work very good > > On 19 mar, 16:23, Wes James wrote: >> run web2py from command line and see that mysql shows as driver available >> >> mac osx translator: >> >> ejecute web2py de línea

Re: [web2py] Re: problema con mysql y apache

2010-03-19 Thread Wes James
run web2py from command line and see that mysql shows as driver available mac osx translator: ejecute web2py de línea de comando y vea que el mysql muestra como programa piloto disponible -wes -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Wes James
; -Thadeus > > > > > > On Fri, Mar 19, 2010 at 3:53 PM, Wes James wrote: >> You can't use "like" on gae. >> >> On Fri, Mar 19, 2010 at 2:33 PM, Thadeus Burgess >> wrote: >>> You must be thinking of another framewo

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Wes James
You can't use "like" on gae. On Fri, Mar 19, 2010 at 2:33 PM, Thadeus Burgess wrote: > You must be thinking of another framework and mixing the two? > > I read every post and have not seen that. > > Perhaps you mean db(db.table.string.like("%.com")).select() > > -Thadeus > > -- You received thi

Re: [web2py] problema con mysql y apache

2010-03-19 Thread Wes James
talvez no tienes un driver para mysql On Fri, Mar 19, 2010 at 2:31 PM, kike wrote: > tengo una aplicacion terminada pero cuando la monto en el apache me > lanza el siguiente tiket: Cual es el problema > > > > Traceback (most recent call last): >  File "/home/kike/sbdv/web2py/gluon/restricted.

Re: [web2py] web2py api search - edit_area plugin

2010-03-19 Thread Wes James
On Fri, Mar 19, 2010 at 11:34 AM, Thadeus Burgess wrote: > You could do a > > def install(): >   if db(db.table.id > 0).count() == 0: >      db.table.insert(record1) >      db.table.insert(record2) >   if db(db.table2.id > 0).count() == 0: >      db.table2.insert(record1) > > install() > > -Thadeu

Re: [web2py] Re: about syntax in web2py

2010-03-19 Thread Wes James
On Fri, Mar 19, 2010 at 7:51 AM, tandnk50 wrote: > ok, this is my action code. I want import data > > >    return dict(students=studens) > you have dict(students=studens) - mispelled second students.??? -wes -- You received this message because you are subscribed to the Google Groups "

[web2py] Re: edit_area 0.8.1.1 ctl+s works

2010-03-17 Thread Wes James
I just found 1.68.1 and it is not in the 0.8.1.1 edit_area. Someone along the line must have added the "save" and it just didn't make it over with the 0.8.2 update. -wes On Wed, Mar 17, 2010 at 2:25 PM, Wes James wrote: > Odd, I see: > >            case "s&

[web2py] Re: edit_area 0.8.1.1 ctl+s works

2010-03-17 Thread Wes James
Odd, I see: case "s": use = true; eA.execCommand("save"); break; in this older code - same as my patch. Why is it there and not in other versions? weeeiirrr On Wed, Mar 17, 2010 at 2:18 PM, Wes Jam

[web2py] Re: edit_area 0.8.1.1 ctl+s works

2010-03-17 Thread Wes James
This is interesting. If I take 0.8.1.1 from sourceforge, ctrl-s does not work. If I take 0.8.1.1 from web2py 1.74.9 then ctrl-s works. Is there some parameter that was set for ctrl-s to work and then was not set for 0.8.2 in latest web2py? -wes On Wed, Mar 17, 2010 at 1:11 PM, Wes James wrote

[web2py] edit_area 0.8.1.1 ctl+s works

2010-03-17 Thread Wes James
Massimo, I just went and copied edit_area from an older web2py I had. It is 0.8.1.1 and the ctrl+s works there. I tried the sourceforge version of edit_area, which you are probably are using too, 0.8.2 and ctrl+s is does not work. Oddly my patch for making it work is not in the same location as

Re: [web2py] Re: latest windows version

2010-03-17 Thread Wes James
I was just looking back at your email it is this one: http://web2py.com/examples/static/1.76.5.1.b/web2py_win.zip -wes On Wed, Mar 17, 2010 at 12:28 PM, mdipierro wrote: > which one is the "latest windows version" 1.76.5 or 1.76.5.1.b? > > On Mar 17, 12:07 pm, Wes James

[web2py] latest windows version

2010-03-17 Thread Wes James
Massimo, When I run web2py.exe -h I get nothing - it just goes back to the prompt. I tried web2py -M -a '' -p 443 I get an error: the system can't find the file specified. I have to just run web2py or web2py and get the gui to run it. -wes -- You received this message because you are subscrib

Re: [web2py] Re: web2py and windows binary need testers

2010-03-16 Thread Wes James
I just tried with: web2py -k server.key.insecure -c server.crt and then put in 443 in for the port and was able to go to: https://127.0.0.1/welcome/default/index and firefox gave me the insecure site stuff of course since it was a self signed cert self signed certs: https://help.ubuntu.co

Re: [web2py] web2py and windows binary need testers

2010-03-16 Thread Wes James
I got it to run fine on windows 7 on port 8000. I'll create a self-signed cert and see what happens running on :443. -wj On Tue, Mar 16, 2010 at 4:25 PM, mdipierro wrote: > I managed to build the web2py binary with rocket and ssl (keeping > 2.5.4) > > http://web2py.com/examples/static/1.76.5.1.

Re: [web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Wes James
Any idea why the editAreaLoader.iframe_script line in edit_area_full.js has funny chars in it. When I was playing around with this for the API search I had to pull it from the browser and put it in http://jsbeautifier.org/ to make it legible... On Tue, Mar 16, 2010 at 12:50 PM, mdipierro wrote:

Re: [web2py] Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Wes James
looking in the javascript there is a save entry in EA.prototype.execCommand but further down where execCommands are executed in the keyDown function, there is no Ctrl-s call. I just tried ctrl-y and ctrl-z and they work. I just added case "s" after case "y" like this: case "s":

Re: [web2py] Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Wes James
Are you on PC or mac. On mac, I noticed I had to press the command-key to get the save to work. -wj On Tue, Mar 16, 2010 at 10:28 AM, stephen wrote: > Hello, > > The admin file editor is not saving files when you press Ctrl-S. It > was working before revision > > http://code.google.com/p/web2py/

Re: [web2py] Re: db access from admin

2010-03-15 Thread Wes James
Nevermind - is working - there must have been an error somewhere else yesterday - I am now getting results from a sqlite db :) yhaaa! On Mon, Mar 15, 2010 at 1:17 PM, Wes James wrote: > On Mon, Mar 15, 2010 at 8:38 AM, mdipierro wrote: >> You wrote a patch to editarea but I am n

[web2py] Re: db access from admin

2010-03-15 Thread Wes James
edit_area Ajax to data search for API items. On Monday, March 15, 2010, mdipierro wrote: > admin does not have a db and, in my opinion, should not have one. > > I am still a bit lost about what you want to do. > > On Mar 15, 7:21 am, Wes James wrote: >> Massimo, >>

[web2py] Re: db access from admin

2010-03-15 Thread Wes James
ur tickets directly in the errors directory? > > > On Mar 13, 8:10 pm, Wes James wrote: >> In building the edit_area api helper I finally got the ajax to return >> data in to the box with the apis to click on.  I'm not trying to build >> a sqlite db with s

[web2py] db access from admin

2010-03-13 Thread Wes James
In building the edit_area api helper I finally got the ajax to return data in to the box with the apis to click on. I'm not trying to build a sqlite db with some test data. I put this in 0.py: db = DAL('sqlite://storage.sqlite') db.define_table( 'apis', Field('api'), Field('info')

Re: [web2py] Re: code builder - kinda

2010-03-12 Thread Wes James
it interferes with other right- > click functions (copy,paste,etc).  Maybe it should be attached to a > key combination instead? Anyway, very cool. > > On Mar 11, 10:21 pm, Wes James wrote: >> On Thu, Mar 11, 2010 at 9:13 PM, Wes James wrote: >> > I've been trying to

[web2py] Re: code builder - kinda

2010-03-11 Thread Wes James
On Thu, Mar 11, 2010 at 9:13 PM, Wes James wrote: > I've been trying to figure out an easier way to have all web2py API's > etc. at a coders finger tips.  I added some pieces to edit_area so > that you can right-click in the edit_area text box and get a popup > that you

[web2py] cron

2010-03-08 Thread Wes James
is this supposed to be logging on the console every 1-2 hours? Mon Mar 8 08:10:00 2010 hard CRON RUNNING ['/usr/bin/python', 'web2py.py', '-P', '-N', '', '-S', 'admin', '-a', '""', '-R', 'applications/admin/cron/expire_sessions.py'] -- You received this message because you are subscribed to the

Re: [web2py] Re: Relase of the first HL7 based on web2py framework

2010-03-08 Thread Wes James
On Mon, Mar 8, 2010 at 8:00 AM, DenesL wrote: > > A w2p file would make this easier to download and try but I did not > see one. > Otherwise you need an hg client, or am I missing something?. > > I just tried and got the error: ??? hg clone http://code.google.com/p/web2pyhl7/ web2pyhl7 abort: '

Re: [web2py] Re: announcement

2010-03-08 Thread Wes James
on another thread it looks like you need to register as a doctor to get full access. On Sun, Mar 7, 2010 at 10:13 PM, Jason Brower wrote: > What is the username and pass for the demo site? > BR, > Jason > -- You received this message because you are subscribed to the Google Groups "web2py-user

[web2py] key bindings when edit_area is used

2010-03-05 Thread Wes James
Looking back at previous posts it looks like there were some key bindings added for amy editor. I see key bindings at the bottom and I'm using edit_area - shouldn't that be removed if it isn't the amy editor? -wj -- You received this message because you are subscribed to the Google Groups "we

[web2py] copyright year

2010-03-05 Thread Wes James
in admin the copyright year is just 2007. should it be 2007 - "current year"? no biggy - just wondrin' -wj -- 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

Re: [web2py] Anyone interested in backing up / restoring their GAE database?

2010-03-04 Thread Wes James
It says it only works with django projects. On Thu, Mar 4, 2010 at 12:40 PM, waTR wrote: > http://web2py.uservoice.com/forums/42577-general/suggestions/525621-plugin-gaebar-on-web2py > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To p

Re: [web2py] Deploy web2py on Mac

2010-03-02 Thread Wes James
there is a pid file in the web2py folder httpdserver.pid - bingo!! -wes On Tue, Mar 2, 2010 at 11:02 PM, Wes James wrote: > I just ran web2py on os x leopard (10.5) and it was running web2py like this: > > kill -SIGTERM `cat pidfile` kill -SIGTERM `cat \path\to\web2py\httpd

Re: [web2py] Setting up Apache with SSL

2010-03-02 Thread Wes James
Are you trying to create a self signed cert? It should be the same with os x as with linux http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#selfcert -wes On Tue, Mar 2, 2010 at 11:01 PM, Al wrote: > Hi, > > Has anyone deploy apache with SSL for web2py successfully? All the > scripts available

Re: [web2py] Deploy web2py on Mac

2010-03-02 Thread Wes James
I just ran web2py on os x leopard (10.5) and it was running web2py like this: /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python ./web2py.py -M -a test -p 8080 when I had run from the command line like this: ./web2py.py -M -a test -p 8080 I also

Re: [web2py] Deploy web2py on Mac

2010-03-02 Thread Wes James
you can put something in /Library/StartupItems make web2py in this folder create StartupParameters.plist with something like: { Description = "web2py"; Provides = ("web2py"); Requires = ("Disks", "Resolver"); OrderPreference = "Last"; Messages = {

Re: [web2py] Re: cron weirdness

2010-03-02 Thread Wes James
install mercurial on your distro https://help.ubuntu.com/community/Mercurial then at the command line do this: hg clone https://web2py.googlecode.com/hg/ web2py when this is done you should have a copy of trunk in the folder web2py On Tue, Mar 2, 2010 at 10:25 PM, Rowdy wrote: > mdipierro wro

Re: [web2py] Re: gae and limitby

2010-02-23 Thread Wes James
Ooops. I realize now I have the limitby in the ajax (typing part) on on the initial call of the page (controller code) I forgot to put limitby. It is working fine. -wes On Fri, Feb 19, 2010 at 6:09 PM, mdipierro wrote: > It should but I'll take a second look. > > On Feb 19, 5:13

Re: [web2py] crud delete weird behavior (on GAE at least)

2010-02-23 Thread Wes James
Have you uploaded your app to gae and tested it there? -wes On Tue, Feb 23, 2010 at 10:57 AM, Miguel Goncalves wrote: > Anybody run into a similar issue? > I cannot seem to figure it out. :( > > Thanks > -Miguel > > On Mon, Feb 22, 2010 at 6:09 PM, Miguel wrote: >> >> Hi >> >> I implemented the

Re: [web2py] Re: class="python object" for gae StringListProperty

2010-02-20 Thread Wes James
Did you meant to take the class out? There is no class for that input field now. -wes On Fri, Feb 19, 2010 at 6:07 PM, mdipierro wrote: > gr.. this needs fixing. Tonight. > > On Feb 19, 3:31 pm, Wes James wrote: >> Massimo, >> >> I just looked at the of a Str

Re: [web2py] Re: class="python object" for gae StringListProperty

2010-02-20 Thread Wes James
what is the best way to test this? hg clone a copy then do I need to copy my yaml files and app over to the newer version? -wes On Fri, Feb 19, 2010 at 6:07 PM, mdipierro wrote: > gr.. this needs fixing. Tonight. > > On Feb 19, 3:31 pm, Wes James wrote: >> Massimo, >>

Re: [web2py] Re: class="python object" for gae StringListProperty

2010-02-19 Thread Wes James
nk I fixed it. Please check trunk. > > On Feb 19, 3:31 pm, Wes James wrote: >> Massimo, >> >> I just looked at the of a StringListProperty inpuot on a gae >> rendered page and it has >> >> >> >> -wes > > -- > You received this message b

[web2py] Re: gae lib

2010-02-19 Thread Wes James
Ah, yes - it's in GoogleAppEngineLauncher.app... on macs thx, -wes On Thu, Feb 18, 2010 at 4:46 PM, Wes James wrote: > Hmm.  I see: > > from google.appengine.ext import db as gae > > in gql.py > > but if I run python from the cli and do: > > from google.appengin

[web2py] gae and limitby

2010-02-19 Thread Wes James
I have limitby(0,10) in the controller and I have 12 items in the db right now, but all twelve are showing http://web2pyapi.appspot.com/ide/default/models It also is working with StringListProperty and searches can be done on partial words. Does web2py limitby work on gae? thx, -wes -- You r

[web2py] Re: gae data input - need to repeat several times

2010-02-19 Thread Wes James
I see now. If I use appadmin there are problems. If I use: http://web2pyapi.appspot.com/ide/default/data/create/ideModelAPI it works fine. -wes On Fri, Feb 19, 2010 at 2:51 PM, Wes James wrote: > The other day when I was inputtung data in to a gae app, the data was > going in fine.  T

[web2py] gae data input - need to repeat several times

2010-02-19 Thread Wes James
The other day when I was inputtung data in to a gae app, the data was going in fine. Today I have to keep submitting the same data again and again, because it never shows up, until it finally does Any idea why? thx, -wes -- You received this message because you are subscribed to the Googl

[web2py] class="python object" for gae StringListProperty

2010-02-19 Thread Wes James
Massimo, I just looked at the of a StringListProperty inpuot on a gae rendered page and it has -wes -- 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 group

[web2py] lengthen input field from DAL

2010-02-19 Thread Wes James
I don't see a way to control the field width (how it appears on the page) in the Field() option. Is the only way to do this is by iterating through and adding the info in the list for the input field? oh - wait, never mind - it just hit me to use css... thx, -wes -- You received this message

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
I think this fixes it: in a form this gets entered a="[u'a',u'b',u'aa',u'bbb',u'cc']" a validation rule with this in it does the trick :) a[3:-2].split("',u'") On Thu, Feb 18, 2010 at 5:42 PM, Wes James wrote

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
b'] now the IS_LIST doesn't work on gae when a value is updated :( -wes On Thu, Feb 18, 2010 at 5:07 PM, Wes James wrote: > Thank you Massimo. > > http://web2pyapi.appspot.com/ide/default/models > > is working now! > > It only has one record right

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
than 'value' > > db(db.table.slp>'value').select() checks that at least one element if > greater then 'value' > > slp is the name of your field of type StringListProperty. The selected > field will be a list. > > > On Feb 18, 5:23 pm, Wes J

[web2py] gae lib

2010-02-18 Thread Wes James
Hmm. I see: from google.appengine.ext import db as gae in gql.py but if I run python from the cli and do: from google.appengine.ext import db as gae I get Import Error. Where is web2py getting this from? I looked in web2py, /System/Library (mac) and /usr/local I'm not sure that would h

[web2py] gae.StringListProperty

2010-02-18 Thread Wes James
I was looking in gql.py too see how StringListProperty is used. I didn't see it there. Where is it in web2py code? -wes -- 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 unsubscrib

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
filter('ngrams <', word + > u'\ufffd') > > Check out Thadeus's code for a full example. > > There's also info how to do this in the docs: > http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Introducing_Indexes > > Rich

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
#x27;s code for a full example. > > There's also info how to do this in the docs: > http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Introducing_Indexes > > Richard > > > On Feb 14, 1:52 pm, Wes James wrote: >> Richard, >> >> Do you hav

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
On Wed, Feb 17, 2010 at 8:13 PM, mdipierro wrote: > n... > > class IS_LIST(): >     def __call__(self,value): >          return ([x.strip() for x in value.split(',')],None) >     def formatter(self,value): >          return ', '.join(value) > > Field('mylist',gae.StringListProperty(),requires=

Re: [web2py] Re: first gae app

2010-02-17 Thread Wes James
rro wrote: > because now > > db.table.insert(yourlistfield=.) > > has to be a list. You need to create a validator that takes the input > and filters it into a list. I cannot write that for you since it > depends on how you insert the data. > > On Feb 17, 12:57 pm

Re: [web2py] Re: first gae app

2010-02-17 Thread Wes James
line 934 in sqlhtml.py On Wed, Feb 17, 2010 at 2:10 PM, Wes James wrote: > I'm noticing now why this is a problem.  When I put [] in the field > and submit it, it gets processed and comes out '[]' instead of just > [].  If it is a StringListProperty, should

Re: [web2py] Re: first gae app

2010-02-17 Thread Wes James
dipierro wrote: > because now > > db.table.insert(yourlistfield=.) > > has to be a list. You need to create a validator that takes the input > and filters it into a list. I cannot write that for you since it > depends on how you insert the data. > > On Feb 17, 12:57 pm, Wes James wro

Re: [web2py] Re: first gae app

2010-02-17 Thread Wes James
) but when I go to /app/ /app/default/controller/create/table and submit the data, I still get: BadValueError: Property ideModelAPIkey must be a list This is even with a blank value, or [], or ['a'] for tests. Is there something wrong with gql.py? -wes On Wed, Feb 17, 2010 at

Re: [web2py] Re: first gae app

2010-02-17 Thread Wes James
k, or even [] or ['a','b'] that is not a list? and why is google interface not providing a field for adding a list value for that field? -wes On Wed, Feb 17, 2010 at 9:09 AM, mdipierro wrote: > As far as web2py is concerned you just change the type. > As far as GAE is conc

Re: [web2py] Re: first gae app

2010-02-17 Thread Wes James
le('mytable',Field('this_is_a_list',type=gae.StringListProperty())) > > queries must use dal syntax. > > On Feb 16, 5:46 pm, Wes James wrote: >> There does not seem to be an .all().   How should the line be written? >> >> thx, >> >> -wes >&

Re: [web2py] Re: first gae app

2010-02-16 Thread Wes James
There does not seem to be an .all(). How should the line be written? thx, -wes On Tue, Feb 16, 2010 at 4:25 PM, Wes James wrote: > so if I created a field > > Field('fieldKey', 'text') > > and put ['web2py', 'web2p', 'web2&#x

Re: [web2py] Re: first gae app

2010-02-16 Thread Wes James
ngrams >=', word).filter('ngrams <', word + > u'\ufffd') > > Check out Thadeus's code for a full example. > > There's also info how to do this in the docs: > http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Int

Re: [web2py] routes for subdomain

2010-02-16 Thread Wes James
forgot right bracket ] On Tue, Feb 16, 2010 at 2:59 PM, Wes James wrote: > On Tue, Feb 16, 2010 at 2:42 PM, Thadeus Burgess > wrote: >> I need to take the following with routes >> >> controller.website.com/action/args >> >> and convert it to >> >

Re: [web2py] routes for subdomain

2010-02-16 Thread Wes James
On Tue, Feb 16, 2010 at 2:42 PM, Thadeus Burgess wrote: > I need to take the following with routes > > controller.website.com/action/args > > and convert it to > > /init/controller/action/args > > How can I do this, I have attempted to copy the book example however > it is just giving syntax error

Re: [web2py] Re: first gae app

2010-02-13 Thread Wes James
Richard, Do you have a python example of this? I'll check on StringListProperty also and see how it works. (would this work on gae?) I was trying somthing else since like is not supported, but this might work. I would like this site to provide quick search on anything that would be helpful in bu

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Wes James
On Fri, Feb 12, 2010 at 9:12 PM, Jonathan Lundell wrote: > On Feb 12, 2010, at 8:02 PM, mdipierro wrote: > (What would it take to go from 1. to 2.? Presumably less than it would take > to go from web2py to web3py.) Maybe you already know, but the 2 in web2py refers to the python major version

[web2py] first gae app

2010-02-12 Thread Wes James
This is my first gae app. http://web2pyapi.appspot.com/ide/default/models It started out as a test to create a simple IDE for web2py with a model on the left and the options for the model on the right and you would drag the items on the right in to the model on the left using jquery drag and drop

[web2py] web2py and GQL in operator

2010-02-12 Thread Wes James
How is the gql "in"operator used in web2py? They say you can use a list. What is the format of the list? -wes -- 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 thi

Re: [web2py] Re: gae error

2010-02-12 Thread Wes James
AM, mdipierro wrote: > yes. No like on gae. > > On Feb 12, 11:32 am, Wes James wrote: >> What does this mean on gae: >> >> File >> "/base/data/home/apps/web2pyapi/1.339837915316861623/gluon/contrib/gql.py", >> line 592, in __init__ >>     self._ta

[web2py] gae error

2010-02-12 Thread Wes James
What does this mean on gae: File "/base/data/home/apps/web2pyapi/1.339837915316861623/gluon/contrib/gql.py", line 592, in __init__ self._tables = [filter.left._tablename for filter in where.filters] AttributeError: 'Query' object has no attribute 'filters' I'm using: rows=db(db.ideModelAPI.i

Re: [web2py] AutocompleteWidget: experimental, magic, RFC

2010-02-09 Thread Wes James
When text is typed that is not in the list and submitted there is this error: Traceback (most recent call last): File "/opt/00/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/opt/00/applications/0/controllers/default.py", line 60, in File "/opt/00/gluon/gl

Re: [web2py] postgres "there is already a transaction in progress"

2010-02-09 Thread Wes James
postgres gives that error, from other discussion here, because of the way web2py does a transaction on each db call, or something like that. If you look at that message on google, you'll see general info about that message also. There is not problem with it, I get it all the time too. -wes On Tu

Re: [web2py] Re: this thing runs web2py?

2010-02-08 Thread Wes James
the device they are showing can run web2py On Mon, Feb 8, 2010 at 8:16 PM, Richard wrote: > are you sure? The article mentions web2py but the site itself uses a > Wordpress layout. > > > On Feb 9, 1:18 pm, mdipierro wrote: >> The page says this thing runs web2py. I am impressed. >> >> http://bec

Re: [web2py] new dal

2010-02-05 Thread Wes James
On Fri, Feb 5, 2010 at 9:14 AM, mdipierro wrote: > I encourage eveybody running from source to try the new dal: > > cd gluon > cp sql.py sql.py.bak > cp dal.py sal.py do you mean cp dal.py sql.py ? > > and restart web2py. > Let me know what works or does not work. > > Massimo > -- You received

Re: [web2py] example of image manipulation

2010-02-05 Thread Wes James
Here is how I've made thumbnails in the past with PIL: from os.path import getsize import Image def thumb(form): try: filename=form.vars.image.filename zfile=form.vars.image_newfilename.split('.') thumbnail=zfile[0] + '.' + zfile[1] + '.' + zfile[2] + '.thumbnail.' +

Re: [web2py] Re: The state of the wiki and documentation in general

2010-02-04 Thread Wes James
+1 We don't need an online book. We need a location that has what each peaces does in web2py. What can goin db.py, what can go in views, what can go in controllers and an explanation of each piece and some examples of each piece. -wes On Thu, Feb 4, 2010 at 9:57 AM, tiago almeida wrote: > Wh

Re: [web2py] Re: trying to get email to work

2010-02-04 Thread Wes James
Have you used wingide or some debugger to see that the values are correct in the send email part? Have you tried 127.0.0.1 instead of localhost telnet localhost 25 or telnet 127.0.0.1 25 to see that you are reaching the smtp service you expect. -wes On Wed, Feb 3, 2010 at 11:40 PM, weheh wr

Re: [web2py] Re: making changes in web2py

2010-02-04 Thread Wes James
On Wed, Feb 3, 2010 at 6:07 PM, mdipierro wrote: > I am confused. appadmin does not requires any. appadmin, by default, > required admin (perhaps you refer to that). appadmin predates auth. If > your app needs a more complex appadmin authentication you should > connect to the auth of the app. oop

Re: [web2py] Re: how to support multiple web2py trees

2010-02-04 Thread Wes James
change the host:port to 127.0.0.1:port and apache will use this internally but rewrite the rule to be used with http://host/app. -wes On Wed, Feb 3, 2010 at 3:08 PM, Ted Baker wrote: > I can't use extra ports.  Our university firewall policy does not > allow traffic except on certain well known

Re: [web2py] disable remember me

2010-02-03 Thread Wes James
This is in tools.py self.settings.remember_me_form = True -wes On Wed, Feb 3, 2010 at 4:39 PM, Wes James wrote: > or have an option in db.py: > > auth.settings.remember_me=(True|False) > > On Wed, Feb 3, 2010 at 3:07 PM, Thadeus Burgess wrote: >> -Thadeus >> >>

Re: [web2py] disable remember me

2010-02-03 Thread Wes James
or have an option in db.py: auth.settings.remember_me=(True|False) On Wed, Feb 3, 2010 at 3:07 PM, Thadeus Burgess wrote: > -Thadeus > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegro

[web2py] hg and files created during testing

2010-02-03 Thread Wes James
If I make changes to web2py and run it now I get parameters_port.py and possibly ticket error files, session files, etc., created. How do you keep these from getting introduced in to the commits? -wes -- You received this message because you are subscribed to the Google Groups "web2py-users" g

Re: [web2py] Re: making changes in web2py

2010-02-03 Thread Wes James
On Wed, Feb 3, 2010 at 1:48 PM, mdipierro wrote: > >> >> By the way  Massimo, will you take a patch to add a username to >> appadmin?  If not, I'm learning a few things on the way, anyway. > > please explain more. > appadmin only uses a password to login. I'm putting in a username too so it r

Re: [web2py] how to support multiple web2py trees

2010-02-03 Thread Wes James
Have you tried mod_rewrite? I've tried mod_write with wsgi and I had some problems with it not working right, but if you can run each of your instances on a different port and then use rewrite rules it might work. Just a guess here: RewriteEngine On RewriteRule ^/site1(.*) http://host:8

Re: [web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Wes James
ently send all my login redirects to the same function? But > I want the redirect to change depending on the part of the site my > users try to access. Do I use a property on request for this? > > On Feb 3, 1:53 pm, Wes James wrote: >> db.py >> >> On Wed, Feb 3

Re: [web2py] Memory (thread?) problems. Is web2py suitable for large datasets?

2010-02-03 Thread Wes James
It might make a difference on the DB you are using. Which are you using sqlite, postgresql, mysql?? What OS? As a side note if you are using windows, win32 only uses a little over 3gig as it uses the other for system use. But I'm not sure what the python limits are either. On Wed, Feb 3, 2010

Re: [web2py] Re: Changing redirect for @auth.requires_login()

2010-02-03 Thread Wes James
db.py On Wed, Feb 3, 2010 at 11:12 AM, Dane wrote: > Thanks, and where would I set this to get a redirect to the function > being accessed? In the body of the controller function itself? I'm new > to python and decorators, but I assumed nothing in the decorated > function would run. > > > On Feb

Re: [web2py] Re: making changes in web2py

2010-02-03 Thread Wes James
l you take a patch to add a username to appadmin? If not, I'm learning a few things on the way, anyway. thx, -wes On Wed, Feb 3, 2010 at 10:07 AM, mdipierro wrote: > Out of curosity... What kind of changes are you making to web2py? > > On Feb 3, 11:02 am, Wes James wrote: >>

[web2py] making changes in web2py

2010-02-03 Thread Wes James
Say I do: hg clone web2py I make changes to the code, then later another update comes out for web2py and I want my changes added to the update. Can someone help me with this process? thx, -wes -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

Re: [web2py] Re: hg export tip on fresh hg clone

2010-02-02 Thread Wes James
t but will be soon. I plan to release 1.74.10 tomorrow. > > Massimo > > On Feb 2, 9:15 pm, Wes James wrote: >> I just download web2py: hg clone >> >> without doing anything if I do "hg export tip" it shows a diff : >> >> # HG changeset patch >&g

[web2py] hg export tip on fresh hg clone

2010-02-02 Thread Wes James
I just download web2py: hg clone without doing anything if I do "hg export tip" it shows a diff : # HG changeset patch # User mdipie...@massimo-di-pierros-macbook.local # Date 1265154799 21600 # Node ID a40f484a4627a4d4373ce305d381e97842830148 # Parent 4e6959c4eaddd53eb314032f741e961a53a50bb8 fi

Re: [web2py] feature request: appadmin login - add a username

2010-02-02 Thread Wes James
n. > > Then you can run > > hg export tip >> /path/to/a/file.diff > > That will create your diff file you can send to massimo. Then massimo > can import that file and it will assign you as the author of the patch > when he uses hg import. > > -Thadeus > > >

Re: [web2py] Re: DAL migration problem

2010-02-02 Thread Wes James
+1 ! On Tue, Feb 2, 2010 at 1:48 PM, Thadeus Burgess wrote: > You can view a proposed change, I have sent this to Massimo to look at. > > http://code.google.com/r/thadeusburgess-web2py/source/detail?r=e875496cc5978200fb6c0aa0f85a8df1a945df21 > > I'm not sure what keywords we really want to use or

Re: [web2py] feature request: appadmin login - add a username

2010-02-02 Thread Wes James
f > > That will create your diff file you can send to massimo. Then massimo > can import that file and it will assign you as the author of the patch > when he uses hg import. > > -Thadeus > > > > > > On Tue, Feb 2, 2010 at 2:13 PM, Wes James wrote: >> I wo

[web2py] feature request: appadmin login - add a username

2010-02-02 Thread Wes James
I would like to request that a username be added to the appadmin login. It would be nice to have one more layer of security. Since I'm guessing you will ask for a patch ;) Will someone provide some tips on how to do this? Do I keep a copy of the original py file, make my changes, then run d

Re: [web2py] admin access from remote machine

2010-02-02 Thread Wes James
If w2p is running on port 8000 and you need someone to get to that port you need to make an exception in the firewall. Click Start then run type in firewall.cpl press enter click on Exceptions tab click on add port button in name box put web2py 8000 in port number put in 8000 click on ok Someone

Re: [web2py] Re: compile app error

2010-02-02 Thread Wes James
> > Massimo > > On Feb 1, 5:09 pm, Wes James wrote: >> When I try to compile my app with 1.74.9 I get: >> >> Cannot compile: there are errors in your app. Debug it, correct errors >> and try again. >> >> I've been poking around my app, but hav

Re: [web2py] Re: compile app error

2010-02-01 Thread Wes James
I tried it just before I left work and it did not help. The permissions are set right too. I'll look more at it tomorrow. -wes On Mon, Feb 1, 2010 at 6:39 PM, mdipierro wrote: > was this solved? > > Massimo > > On Feb 1, 5:09 pm, Wes James wrote: >> When I try to co

  1   2   3   4   5   6   7   >