[web2py:32146] Re: form[0][0][0].insert()

2009-10-03 Thread annet
Hi Denes, In a controller I have the following function: def application_init(): response.functionname='Aanmeldingsformulier' response.image=URL(r=request,c='static',f='init/media/ utilities_1.jpg') response.function_menu=[] form=SQLFORM.factory(SQLField('bedrijfsnaam',label='Bed

[web2py:32147] Re: GAE Tutorial to Web2py

2009-10-03 Thread murray3
Aha! I've just noticed the messsage from server on google talk so the init app code is sending xmpp messages. well done Robin. Now when I go and send one back to testhogg from google talk I was expecting to see my message either in the logs in GAE dashboard or in the printed args on the http://te

[web2py:32148] Re: request.args

2009-10-03 Thread annet
Hi Denes, > you could use the string replace function (if month IS a string): > {{=month.replace('_',' ')}} month is a string, so problem solved, thanks! Kind regards, Annet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[web2py:32149] Re: Proposal for plugin system in web2py - RFC

2009-10-03 Thread Álvaro Justen [Turicas]
On Sat, Oct 3, 2009 at 02:47, mdipierro wrote: > > On a second thought, Alvaro is right. > I have implemented a rating component. It works but one may have a lot > of them in one page. > It should be possible for components work both via ajax a non. > > Moreover if {{load ... }} were to be implem

[web2py:32150] Re: new cron

2009-10-03 Thread Iceberg
I've tested latest trunk as well as web2py_1.67.2 binary on Windows platform. Both can call the cron job. In source code version it can print an error traceback on the console, while in binary version it can only print WARNING:root:WEB2PY CRON Call returned code 255: but not a big deal. So, it

[web2py:32151] Re: itemize or paging navigation

2009-10-03 Thread mr.freeze
Have you seen the pagination example on page 327 of the manual? It may be what you're looking for. On Oct 2, 10:33 pm, Wes James wrote: > t2 had itemize.  Does this exist in current w2p?  I'm looking for the > itemize and page navigation routines for after a search is entered. > > thx, > > -wes

[web2py:32152] Re: Sorting by a field in a foreign key

2009-10-03 Thread mdipierro
db(db.person.name=='Bob')(db.person.position==db.position.id).select (orderby=db.position.sort_order) On Oct 2, 9:39 pm, BioNip wrote: > Consider this code: > > > db.define_table('position', > >     Field('name'), > >     Field('sort_order', 'integer'), > >     ) > > > db.define_table('person',

[web2py:32153] Re: congratulations to our friends in Brazil!

2009-10-03 Thread mdipierro
I am hoping to be to brazil before the olimpics. On Oct 2, 10:05 pm, Álvaro Justen [Turicas] wrote: > On Fri, Oct 2, 2009 at 14:34, mdipierro wrote: > > >http://www.google.com/hostednews/ap/article/ALeqM5izzuJeYaNdQE3RQW3n5... > > You are all invited! ;-) > > On Fri, Oct 2, 2009 at 21:28, Renat

[web2py:32154] Re: Input validation

2009-10-03 Thread mdipierro
something like this? def MYVALIDATOR: def __init__(self,error_message): self.error_message=error_message def __call__(self,value): if not re.compile('^([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*)+ $').match(value): return (value,self.error_message) else

[web2py:32155] Re: Input validation

2009-10-03 Thread Jonathan Lundell
On Oct 3, 2009, at 7:50 AM, mdipierro wrote: > something like this? > > def MYVALIDATOR: >def __init__(self,error_message): > self.error_message=error_message >def __call__(self,value): > if not re.compile('^([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*)+ Why not: > if n

[web2py:32156] Re: Proposal for plugin system in web2py - RFC

2009-10-03 Thread mdipierro
On Oct 3, 4:58 am, Álvaro Justen [Turicas] wrote: > On Sat, Oct 3, 2009 at 02:47, mdipierro wrote: > > > On a second thought, Alvaro is right. > > I have implemented a rating component. It works but one may have a lot > > of them in one page. > > It should be possible for components work both

[web2py:32157] Re: passing arguments from view to controller

2009-10-03 Thread znafets
Getting crazed about not being able to retrieve the values from the database. query= db.user.name==uname records=db(query).select() I get at least something that looks somehow that I am getting closer. Looking in WingIDE on what I get, records comes with a __dict__ which contains _db and colname

[web2py:32158] Can Web2py use a SQLite database on another machine on the LAN?

2009-10-03 Thread BluePoint
I currently have a suite of 3 applications (not using Web2py) which run on different machines on a LAN and all access a single SQLite database on one of those machines. I am considering porting the applications to Web2py but I wonder if it will be possible to share the database in this way. --~--

[web2py:32159] Re: Can Web2py use a SQLite database on another machine on the LAN?

2009-10-03 Thread mdipierro
sqlite is not a client server database so the only option is for you to share the folder (smb or nfs). On Oct 3, 10:49 am, BluePoint wrote: > I currently have a suite of 3 applications (not using Web2py) which > run on different machines on a LAN and all access a single SQLite > database on one

[web2py:32161] Re: passing arguments from view to controller

2009-10-03 Thread znafets
Okay, never mind, I just removed the big piece of wood from my forehead. I see clearer now.. thanks a lot for your patience, sorry for being a doofus ciao Stefan On Oct 3, 5:46 pm, znafets wrote: > Getting crazed about not being able to retrieve the values from the > database. > > query= db.us

[web2py:32162] Re: passing arguments from view to controller

2009-10-03 Thread Yarko Tymciurak
:-) Sometimes there's nothing like just going through that yourself. I know all the structures exposed aren't completely transparent, don't immediately seem to correlate to the written code, the expression. On Sat, Oct 3, 2009 at 1:14 PM, znafets wrote: > > Okay, never mind, I just removed the

[web2py:32163] Re: Sorting by a field in a foreign key

2009-10-03 Thread Yarko Tymciurak
On Sat, Oct 3, 2009 at 9:42 AM, mdipierro wrote: > > db(db.person.name=='Bob')(db.person.position==db.position.id).select > (orderby=db.position.sort_order) > To annotate this a little more - Checking P. 16 of the manual (*Inner Joins*) you'll see that web2py DAL performs these transparently wh

[web2py:32164] Re: Sorting by a field in a foreign key

2009-10-03 Thread Yarko Tymciurak
On Sat, Oct 3, 2009 at 1:43 PM, Yarko Tymciurak wrote: > On Sat, Oct 3, 2009 at 9:42 AM, mdipierro wrote: > >> >> db(db.person.name=='Bob')(db.person.position==db.position.id).select >> (orderby=db.position.sort_order) >> > > To annotate this a little more - > > Checking P. 16 of the manual (*In

[web2py:32165] Re: Proposal for plugin system in web2py - RFC

2009-10-03 Thread mdipierro
It seems to me that as long as a plugin can contain modules and views, if speed is a concern, one could define components like def component(request,reponse,session,*a): ... return reponse.render('view_for_component.html',dict(.) and in view {{=component(request,response,session,

[web2py:32166] Re: Proposal for plugin system in web2py - RFC

2009-10-03 Thread mdipierro
Check the new admin in trunk. The edit page has a "plugins" section. You create a plugin by creating a model or controller called plugin_ [name].py or a view called plugin_[name]/whatever.html This is another experiment, not sure this is the way to go. If anybody want to help we need the design

[web2py:32167] Re: Default application with virtualhost

2009-10-03 Thread Jose
On 14 sep, 15:22, mdipierro wrote: > inroutes.py > > routes_in=('/myapplication/(?P.*)','/\g'),) > routes_out=('/(?P.*)','/myapplication/\g'),) > This is my virtual host: NameVirtualHost 127.0.0.1:port ServerName mydomain.com DocumentRoot /home/myaccount/webapps/apachew2p/web2py/applicat

[web2py:32168] anybody seen this?

2009-10-03 Thread mdipierro
http://desktop.sonspring.com/ --~--~-~--~~~---~--~~ 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 to web2py+un

[web2py:32169] Re: Sorting by a field in a foreign key

2009-10-03 Thread BioNip
Sorry I didn't get a chance to look at this last night. Thanks to everyone's help I've got it working smooth like butter. :) I'm by no means an SQL expert, so I didn't even realize what I was looking for what an INNER join. For for anyone googling this, this is what I did to get it working: > for

[web2py:32170] Re: Sorting by a field in a foreign key

2009-10-03 Thread BioNip
Thanks for this. BTW, what did you use to make those screenshots? That's kind of cool. On Oct 3, 12:32 pm, Yarko Tymciurak wrote: > On Sat, Oct 3, 2009 at 9:42 AM, mdipierro wrote: > > > db(db.person.name=='Bob')(db.person.position==db.position.id).select > > (orderby=db.position.sort_order) >

[web2py:32171] Re: Client tools for web2py

2009-10-03 Thread mr.freeze
Thanks! I submitted a link to Massimo a while back but I may need to bug him again :) On Oct 2, 9:41 pm, Iceberg wrote: > On Oct2, 12:42pm, "mr.freeze" wrote: > > > New version.  Another round of bug fixes and feature additions. There > > is now a demo appliance that includes all of the example

[web2py:32172] Re: GAE Tutorial to Web2py

2009-10-03 Thread Robin B
After you send a chat message to your app, check your admin logs online. AppEngine will POST messages to ' /_ah/xmpp/message/chat/ ', if you do not see any log entries for '/_ah/xmpp/message/chat/ ', then it means you forgot to: Add this to app.yaml: inbound_services: - xmpp_message Robin On

[web2py:32173] Re: Almost working on the dreamhost server... $50 to the person that can make this a script!

2009-10-03 Thread Alexei Vinidiktov
Thadeus, I've set up my domain to use Passenger, set the web directory to /home/username/phonetizer.com/public, then I uploaded web2py and extracted it to the 'public' directory, then I simlinked wsgihandler.py to wsgi_passenger.py via ln -s wsgihandler.py wsgi_passenger.py but all I see when I g

[web2py:32174] Re: Almost working on the dreamhost server... $50 to the person that can make this a script!

2009-10-03 Thread Alexei Vinidiktov
Sorry for the noise, Thadeus. I got it working. I used this tutorial: http://www.web2pyslices.com/main/slices/take_slice/1 On Sun, Oct 4, 2009 at 11:23 AM, Alexei Vinidiktov wrote: > Thadeus, I've set up my domain to use Passenger, set the web directory > to /home/username/phonetizer.com/publi

[web2py:32175] Re: Almost working on the dreamhost server... $50 to the person that can make this a script!

2009-10-03 Thread Thadeus Burgess
Awesome! Glad you could get it working. -Thadeus On Sat, Oct 3, 2009 at 11:04 PM, Alexei Vinidiktov < alexei.vinidik...@gmail.com> wrote: > > Sorry for the noise, Thadeus. I got it working. > > I used this tutorial: http://www.web2pyslices.com/main/slices/take_slice/1 > > On Sun, Oct 4, 2009

[web2py:32176] Bug in auth... Hash changed, users can no longer login. version 1.66.2 to 1.67.2.

2009-10-03 Thread Thadeus Burgess
There is a major bug in the auth from version 1.66.2 to 1.67.2 Users can no longer log in when I upgraded to the newest version. It seems as if the password hash has changed? When I go into appadmin and manually change the password, then that user can log in. I will start looking at the source t

[web2py:32177] reverese/cross refrence in one to many relationship

2009-10-03 Thread Manoj
if i have following code db.define_table( 'users', Field('name'), Field('email') ) # ONE (users) TO MANY (dogs) db.define_table( 'dogs', Field('owner_id', db.users), Field('name'), Field('type'), Field('vaccinated', 'boolean', default=False), Field('pictu

[web2py:32178] Re: web2py + pyjamas desktop = a desktop framework?

2009-10-03 Thread Joe Barnhart
Hi Don -- You could make web2py run as a service as soon as the computer starts up. Then an icon could point to the URL needed to start the web app. It would launch like any other program, from a desktop icon. But, of course, it would also be deliverable over the web. I'm also very interested