[web2py:34469] Re: new slices: jQueryUI slider and datepicker widgets

2009-11-02 Thread Mengu
i have a suggestion for all your slices, why don't you also add the screenshots? :) --~--~-~--~~~---~--~~ 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

[web2py:34468] Re: So to start with web2py and gae.

2009-11-02 Thread David AOL
I have downloaded the T3 version, running it, seem nice, but how I will create a new wiki page from a non existent page? -- Las cosas que no se comparten se pierden 2009/11/2 Wiiboy > > Perhaps more descriptive =) > > > --~--~-~--~~~---~--~~ You received this m

[web2py:34467] Re: new slices: jQueryUI slider and datepicker widgets

2009-11-02 Thread mr.freeze
Nothing like a slice of web2py before bedtime :) I'm going widget crazy! Here's an in-place edit widget that presents your text as a SPAN until you double click then it changes into an input. http://www.web2pyslices.com/main/slices/take_slice/23 On Nov 3, 12:01 am, mdipierro wrote: > These sli

[web2py:34466] Re: new slices: jQueryUI slider and datepicker widgets

2009-11-02 Thread mdipierro
These slices taste excellent! On Nov 2, 11:56 pm, "mr.freeze" wrote: > Thanks, I updated it to specify adding to the model or controller. > > On Nov 2, 11:33 pm, mdipierro wrote: > > > Thank you Mr Freeze. > > > One comment. I do not think people should edit web2py_ajax.html. > > > response.fil

[web2py:34465] Re: new slices: jQueryUI slider and datepicker widgets

2009-11-02 Thread mr.freeze
Thanks, I updated it to specify adding to the model or controller. On Nov 2, 11:33 pm, mdipierro wrote: > Thank you Mr Freeze. > > One comment. I do not think people should edit web2py_ajax.html. > > response.files.append should go in plugin models or controller of the > plugin; or the should g

[web2py:34464] Re: new slices: jQueryUI slider and datepicker widgets

2009-11-02 Thread mdipierro
Thank you Mr Freeze. One comment. I do not think people should edit web2py_ajax.html. response.files.append should go in plugin models or controller of the plugin; or the should go directly in the views. Massimo On Nov 2, 10:48 pm, "mr.freeze" wrote: > Here are two ready to use widgets that

[web2py:34463] new slices: jQueryUI slider and datepicker widgets

2009-11-02 Thread mr.freeze
Here are two ready to use widgets that employ the jQueryUI slider and datepicker: slider - http://www.web2pyslices.com/main/slices/take_slice/20 datepicker - http://www.web2pyslices.com/main/slices/take_slice/22 Have fun! --~--~-~--~~~---~--~~ You received this me

[web2py:34462] Re: So to start with web2py and gae.

2009-11-02 Thread Wiiboy
Perhaps more descriptive =) --~--~-~--~~~---~--~~ 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+unsu

[web2py:34461] Re: So to start with web2py and gae.

2009-11-02 Thread mdipierro
https://launchpad.net/t4 but it is not as stable as t3. Eventually we are going to need better names. On Nov 2, 8:48 pm, David AOL <007...@gmail.com> wrote: > It is already accessible the "something better"? > > Las cosas que no se comparten se pierden > > 2009/11/2 mdipierro > > > > >http://we

[web2py:34460] Re: So to start with web2py and gae.

2009-11-02 Thread David AOL
It is already accessible the "something better"? Las cosas que no se comparten se pierden 2009/11/2 mdipierro > > http://web2py.appspot.com/t3 > > http://www.vimeo.com/2462041 > > It is old experimental app. It works but we are building something > better. > > On Nov 2, 7:55 pm, Wiiboy wrote

[web2py:34459] Re: So to start with web2py and gae.

2009-11-02 Thread mdipierro
http://web2py.appspot.com/t3 http://www.vimeo.com/2462041 It is old experimental app. It works but we are building something better. On Nov 2, 7:55 pm, Wiiboy wrote: > What exactly is T3? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:34458] Re: Delete web2py database .table files

2009-11-02 Thread Thadeus Burgess
Perhaps split the execution of the SQL statements, and the writing of the log files. This way it can be written if not repair: ... self._db._execute self.tbf.write() -Thadeus On Mon, Nov 2, 2009 at 5:37 PM, mdipierro wrote: > > Let me think about this some more. >

[web2py:34457] Re: So to start with web2py and gae.

2009-11-02 Thread Wiiboy
What exactly is T3? --~--~-~--~~~---~--~~ 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+unsubscr...@

[web2py:34456] Re: GAE web2py app example code to study.

2009-11-02 Thread mr.freeze
You can find a list of applications here: http://www.web2py.com/appliances You can read the 2nd edition manual here: http://www.web2py.com/examples/default/docs You can find video tutorials here: http://www.vimeo.com/videos/search:web2py In particular, this video may help you: http://www.vimeo.

[web2py:34455] GAE web2py app example code to study.

2009-11-02 Thread Giorgio Clavelli
Hi, I'm new to web2py and GAE with python too. Have explored this framework available documentation, but haven't found enough explanation (for me at least). I've explored the forum too, but I belong the category of coders, who learn better by studying example code. I wander if someone of you wou

[web2py:34454] Re: So to start with web2py and gae.

2009-11-02 Thread mdipierro
The admin on GAE would be useless. On GAE you cannot write files therefore admin is crippled. You need to use admin locally and than deploy apps on GAE. If you want to develop directly on GAE, you have store files on the BigTable as opposed to file system. T3 does that. Massimo On Nov 2, 4:11 

[web2py:34453] So to start with web2py and gae.

2009-11-02 Thread tyoc
Hi there, I have web2py Version 1.71.0 (2009-10-31 01:13:28). OK, so I have give a watch at the slides on the main page and there seem to be little things that doesnt run directly on gae. So I tried it with the default setup but it only display the default screen, the admin doesnt work, after se

[web2py:34452] Re: Delete web2py database .table files

2009-11-02 Thread mdipierro
Let me think about this some more. On Nov 2, 4:56 pm, Thadeus Burgess wrote: > +1 for the option. > > I would love to do it, however I would need some help since I have never > looked at sql.py in depth. > > The execution of the SQL statements would need to be suppressed if repair = > True. > >

[web2py:34451] Re: Something broke in sql.py since 1.71.1

2009-11-02 Thread mdipierro
Since i was there, I implemented something that Robin suggested long ago: db.define_table('uuidstamp', Field('uuid','string', default=lambda: str(uuid.uuid4( --~--~-~--~~~---~--~~ You received this message becau

[web2py:34450] Re: how to disable soft cron when running mod_wsgi daemon

2009-11-02 Thread Graham Dumpleton
On Nov 3, 3:07 am, Fred wrote: > I am completely baffled by what ExecuteOnCompletion2 and callback do. > Could someone explain their design?   What do I lose by calling > gluon.main.wsgibase directly? That code in web2py was taken from mod_wsgi online documentation. Read the mod_wsgi documenta

[web2py:34449] Re: Delete web2py database .table files

2009-11-02 Thread Thadeus Burgess
+1 for the option. I would love to do it, however I would need some help since I have never looked at sql.py in depth. The execution of the SQL statements would need to be suppressed if repair = True. Would you just need an if statement before all the database executions? if not repair: self

[web2py:34448] Re: Delete web2py database .table files

2009-11-02 Thread mdipierro
Perhaps somebody can help us here. Look where in the code the tables are read/created. we could add an option define_table(repair=True) that does not read but only writes the tables, assuming the db is consistent. Massimo On Nov 2, 4:34 pm, Thadeus Burgess wrote: > It was critical :) > >

[web2py:34447] Re: Something broke in sql.py since 1.71.1

2009-11-02 Thread mdipierro
I think I fixed it. please check. On Nov 2, 4:29 pm, mdipierro wrote: > Are you sure this worked in 1.70 but not in 1.71? > > if you try > > x= Field('uuid', >                            type=s3uuid, >                            length=64, >                            notnull=True, >            

[web2py:34446] Re: Delete web2py database .table files

2009-11-02 Thread Thadeus Burgess
It was critical :) I ended up adding migrate=False. using db.export_to_csv, dropping the database, creating the database, remove migrate, and db.import_from_csv. Next time, It would be nice to be able to just rebuild the files >.< Ran the rm command, didn't notice I was on my remote console inst

[web2py:34445] Re: Delete web2py database .table files

2009-11-02 Thread mdipierro
They can be rebuilt. But I do not have a script for doing that. I can write instructions if that becomes crytical. On Nov 2, 3:46 pm, Thadeus Burgess wrote: > If you accidentally delete all the files under databases on a production > app... This is a problem.. > > migrate=False on every table? O

[web2py:34444] Re: Something broke in sql.py since 1.71.1

2009-11-02 Thread mdipierro
Are you sure this worked in 1.70 but not in 1.71? if you try x= Field('uuid', type=s3uuid, length=64, notnull=True, unique=True, readable=False,

[web2py:34443] web2py blog

2009-11-02 Thread Mengu
hi everyone, i was developing a blog application with web2py however i removed it accidentally but yesterday after i woke up, i re-coded it again and this time i posted it to github. it is not done yet, there are many missing features like pagination, blog settings, a beautiful design (current c

[web2py:34442] Re: Table Definitions in Models

2009-11-02 Thread Mengu
Thank you guys, i just got it :) Mengu On Nov 1, 3:35 am, Yarko Tymciurak wrote: > ...you really want to understand the stateless nature of the web, and > the flow thru web2py in response to a request: > > someone requests a page from your web2py (e.g. types a URL); > > web2py parses the reques

[web2py:34441] how to use bzr on snowleopard

2009-11-02 Thread Wes James
1. get bzr client here: http://bazaar-vcs.org/MacOSXBundle/SnowLeopard 2. then run this command for example: bzr checkout http://bazaar.launchpad.net/~mdipierro/t4/development t4 -wes --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:34440] Delete web2py database .table files

2009-11-02 Thread Thadeus Burgess
If you accidentally delete all the files under databases on a production app... This is a problem.. migrate=False on every table? Or should the database be rebuilt? How to disable migrations on the auth table? -Thadeus --~--~-~--~~~---~--~~ You received this mess

[web2py:34439] Re: how to disable soft cron when running mod_wsgi daemon

2009-11-02 Thread Fred
I set application = gluon.main.wsgibase as you suggested and that fixes the problem I reported in my original post above. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this

[web2py:34438] Re: How to prevent an ldap-login to auto-register

2009-11-02 Thread Johann Spies
2009/11/2 Fran : > > On Oct 28, 12:04 pm, Johann Spies wrote: >> I am using ldap-authentication and it seems that a successful login >> against the ldap-tree results in automatic access to the system as a >> registered user. > > Yes, all contrib login methods have this facility as the default. >

[web2py:34437] Something broke in sql.py since 1.71.1

2009-11-02 Thread Fran
We use UUIDs for database sync. If we just include as a default=uuid.uuid4() then this doesn't work when creating multiple records in the same transaction (as they all have identical UUIDs) We therefore created our own custom function as follows: # Reusable UUID field (needed as part of database

[web2py:34436] Re: T4 - where?

2009-11-02 Thread Wes James
I found that, but I didn't think svn worked with that only bzr client. thx, -wes On Mon, Nov 2, 2009 at 2:07 PM, dupoxy wrote: > > well my search engine friend's > told me to look here: > http://launchpad.net/t4 > > your welcome > On 2 nov, 20:32, Wes James wrote: >> I can't find T4.  Is ther

[web2py:34435] Re: Serve model depending on http/https

2009-11-02 Thread Thadeus Burgess
In my virtualhost declartion, from the book chapter 11. You have two virtualhosts, one for http and another for https. In the http I just add a redirect 301 https -Thadeus On Mon, Nov 2, 2009 at 2:57 PM, mdipierro wrote: > > routes_in=(('.*:http://hostname.com:(get|post) /appname.*', '.

[web2py:34434] Re: T4 - where?

2009-11-02 Thread dupoxy
well my search engine friend's told me to look here: http://launchpad.net/t4 your welcome On 2 nov, 20:32, Wes James wrote: > I can't find T4.  Is there an svn for it? > > thx, > > -wes --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:34433] Re: storage object

2009-11-02 Thread mdipierro
can you email me the model privately? On Nov 2, 2:26 pm, haftish21 wrote: > my image table is already created... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send emai

[web2py:34432] Re: Attempting to use a new DAL feature reference fields

2009-11-02 Thread mdipierro
please send it to me On Nov 2, 2:18 pm, Thadeus Burgess wrote: > I have not yet had a chance to test if the insertion is fixed or not. > > However I get the error using appadmin, and the reference field is the only > new field. The field is a text box with the person id in it. > > I can give mor

[web2py:34431] Re: Serve model depending on http/https

2009-11-02 Thread mdipierro
routes_in=(('.*:http://hostname.com:(get|post) /appname.*', '...'),) where '...' is a web2py action that redirects to 'https://hostname.com/ appname' On Nov 2, 2:18 pm, Wes James wrote: > Do you have an example?  I've been using some rewrite rules for plone > to go from http to https and they w

[web2py:34430] Re: Web2Py Multi-site

2009-11-02 Thread Thadeus Burgess
For what you are trying to accomplish, sounds like it will be kind of nasty. You will need to look at the request dictionary, which includes the domain name in it. Based on that you will need to render different views for your functions. It might be easier to just change what CSS file gets include

[web2py:34429] Re: Web2Py Multi-site

2009-11-02 Thread David Henry
Hi Thadeus, Did you happen to have the information on how to set this up? I wanted one web2py with multiple applications that serve unique views/ html/css to users based on the domain used to access the site so users can customize the look and feel to their tastes. Thanks, David On Nov 1, 2

[web2py:34428] Re: storage object

2009-11-02 Thread haftish21
my image table is already created... --~--~-~--~~~---~--~~ 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 w

[web2py:34427] Re: Attempting to use a new DAL feature reference fields

2009-11-02 Thread Thadeus Burgess
I have not yet had a chance to test if the insertion is fixed or not. However I get the error using appadmin, and the reference field is the only new field. The field is a text box with the person id in it. I can give more details privately. -Thadeus On Mon, Nov 2, 2009 at 2:14 PM, mdipierro

[web2py:34426] Re: Serve model depending on http/https

2009-11-02 Thread Wes James
Do you have an example? I've been using some rewrite rules for plone to go from http to https and they work fine. When I do the same type of rewrite rule for web2py it's like it is being ignored. -thx, -wes On Mon, Nov 2, 2009 at 1:05 PM, Thadeus Burgess wrote: > Thanks. I ended up using a d

[web2py:34425] Re: Attempting to use a new DAL feature reference fields

2009-11-02 Thread mdipierro
Is this not fixed in trunk? On Nov 2, 2:06 pm, Thadeus Burgess wrote: > Massimo, what would that traceback be referring to? > > Would you need some code to look at? > > I still get the traceback when attempting to update a record using appadmin. > > -Thadeus > > On Sat, Oct 31, 2009 at 11:13 PM,

[web2py:34424] Re: full text search on GAE

2009-11-02 Thread Robin B
I have not tried it, but it looks safe to integrate because it should not result in 'exploding indexes' which was the main limitation of SearchableModel. Robin On Nov 2, 12:45 pm, mdipierro wrote: > a friend pointed me to this: > > http://www.billkatz.com/2009/6/Simple-Full-Text-Search-for-App-

[web2py:34423] Re: Attempting to use a new DAL feature reference fields

2009-11-02 Thread Thadeus Burgess
Massimo, what would that traceback be referring to? Would you need some code to look at? I still get the traceback when attempting to update a record using appadmin. -Thadeus On Sat, Oct 31, 2009 at 11:13 PM, mdipierro wrote: > > No but you have a good point. it should. In trunk now. Pleas

[web2py:34422] Re: Mail.send

2009-11-02 Thread Thadeus Burgess
Got it, it was not the RDNS of the domain, but the SPF record. Adding both ip addresses to the SPF record solved the problem. Thanks! [SOLVED] -Thadeus On Sun, Nov 1, 2009 at 9:54 AM, Thadeus Burgess wrote: > the login name includes the @. > > This works perfectly on every computer except t

[web2py:34421] Re: Serve model depending on http/https

2009-11-02 Thread Thadeus Burgess
Thanks. I ended up using a declaration in apache config file with redirection. -Thadeus On Mon, Nov 2, 2009 at 2:02 PM, mdipierro wrote: > nless you use web2py with a proxy you can apply http(s) filters using > routes_in. It in the ma > --~--~-~--~~~---~--~~

[web2py:34420] Re: jQuery is not defined

2009-11-02 Thread mr.freeze
Good now. On Nov 2, 1:55 pm, mdipierro wrote: > Good catch! > please check if it is fixed in trunk. > > On Nov 2, 1:19 pm, "mr.freeze" wrote: > > > Sorry, got linkified by google groups.  Renders in this order: > > > calendar.css > > jquery-ui.css > > base.css > > jquery-ui.js > > jquery.js > >

[web2py:34419] Re: Serve model depending on http/https

2009-11-02 Thread mdipierro
unless you use web2py with a proxy you can apply http(s) filters using routes_in. It in the manual. massimo On Nov 2, 2:00 pm, Thadeus Burgess wrote: > When using session.secure() it will still allow connections to the > controller by regular http(). However I do not want any access, login for

[web2py:34418] Re: Serve model depending on http/https

2009-11-02 Thread Thadeus Burgess
When using session.secure() it will still allow connections to the controller by regular http(). However I do not want any access, login form or otherwise to this controller unless its over https. Would I need to specify this on Apache VirtualHost configuration, like admin is set in the book. Or i

[web2py:34417] Re: jQuery is not defined

2009-11-02 Thread mdipierro
Good catch! please check if it is fixed in trunk. On Nov 2, 1:19 pm, "mr.freeze" wrote: > Sorry, got linkified by google groups.  Renders in this order: > > calendar.css > jquery-ui.css > base.css > jquery-ui.js > jquery.js > calendar.js > > On Nov 2, 1:15 pm, "mr.freeze" wrote: > > > In web2py

[web2py:34416] Re: How to prevent an ldap-login to auto-register

2009-11-02 Thread Fran
On Oct 28, 12:04 pm, Johann Spies wrote: > I am using ldap-authentication and it seems that a successful login > against the ldap-tree results in automatic access to the system as a > registered user. Yes, all contrib login methods have this facility as the default. > I do not want that. How c

[web2py:34415] T4 - where?

2009-11-02 Thread Wes James
I can't find T4. Is there an svn for it? thx, -wes --~--~-~--~~~---~--~~ 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,

[web2py:34414] Re: jQuery is not defined

2009-11-02 Thread mr.freeze
Sorry, got linkified by google groups. Renders in this order: calendar.css jquery-ui.css base.css jquery-ui.js jquery.js calendar.js On Nov 2, 1:15 pm, "mr.freeze" wrote: > In web2py_ajax.html, if I insert files in response.files by index, > they are rendered out of order. > > response.files

[web2py:34413] Re: jQuery is not defined

2009-11-02 Thread mr.freeze
In web2py_ajax.html, if I insert files in response.files by index, they are rendered out of order. response.files.insert(0,URL(r=request,c='static',f='jquery.js')) response.files.insert(1,URL(r=request,c='static',f='calendar.css')) response.files.insert(2,URL(r=request,c='static',f='calendar.js')

[web2py:34412] Re: jQuery is not defined

2009-11-02 Thread mdipierro
I do not understand On Nov 2, 1:02 pm, "mr.freeze" wrote: > Confirmed, using an index variable fixes it: > > for i in xrange(0,len(response.files)): >   _file = response.files[i] >   if _file[-4:].lower()=='.css':}} >       charset="utf-8" />{{ >   elif _file[-3:].lower()=='.js':}} >      {{ >  

[web2py:34411] Script

2009-11-02 Thread __Kyo__
Hi everyone, i have to make a form with multi combo, so if i change one the another one have to change too. I made this code, but the problem is what would be the script to change the another combo. def index(): form = SQLFORM(db.Organizacion) return dict(form=form) def prueba(): esta

[web2py:34410] Re: jQuery is not defined

2009-11-02 Thread mr.freeze
Confirmed, using an index variable fixes it: for i in xrange(0,len(response.files)): _file = response.files[i] if _file[-4:].lower()=='.css':}} {{ elif _file[-3:].lower()=='.js':}} {{ pass pass On Nov 2, 12:59 pm, "mr.freeze" wrote: > Actually, it looks like even though it is

[web2py:34409] Re: jQuery is not defined

2009-11-02 Thread mr.freeze
Actually, it looks like even though it is being inserted at index 0, it is being rendered after other items so it throws this error. I am inserting like so: response.files.insert(0,URL(r=request,c='static',f='jquery.js')) response.files.insert(1,URL(r=request,c='static',f='calendar.css')) respons

[web2py:34408] full text search on GAE

2009-11-02 Thread mdipierro
a friend pointed me to this: http://www.billkatz.com/2009/6/Simple-Full-Text-Search-for-App-Engine Perhaps this should be integrated in web2py. Has anybody here tried it? Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[web2py:34407] Re: Need some help with groups [Resolved]

2009-11-02 Thread weheh
Thanks, Massimo. --~--~-~--~~~---~--~~ 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+unsubscr...@goo

[web2py:34406] Auth questions

2009-11-02 Thread weheh
- How do I add an image to the auth_group table? Can I modify the table like I can for auth_user or do I need to make another table and point to the auth_group.id field? - What would be the recommended way to segregate my app administrative groups, like super_user, from groups defined by my user c

[web2py:34405] jQuery is not defined

2009-11-02 Thread mr.freeze
I think the jQuery file included with web2py may be corrupt. When I create a new app firebug throws an error: 'jQuery is not defined'. The error goes away when I use the google hosted version instead. --~--~-~--~~~---~--~~ You received this message because you are

[web2py:34404] Re: Need some help with groups

2009-11-02 Thread weheh
Of course. Stupid mistake, but partly because the doc doesn't explicitly state the names of the fields in auth_group and auth_membership and auth_permission. I had to look into the code and appadmin to find out. Anyway, thanks! --~--~-~--~~~---~--~~ You received thi

[web2py:34403] Re: storage object

2009-11-02 Thread mdipierro
You are drying DROP TABLE image; It looks like you have not db.defined_table('image'). You cannot drop it if it is not defiend. On Nov 2, 10:56 am, haftish21 wrote: > This is a kind of error I'm getting repeatedly. I suspect that my > understanding of the Storage(dict) object & its functions is

[web2py:34402] Re: how to disable soft cron when running mod_wsgi daemon

2009-11-02 Thread mdipierro
That is just to call cron. If you do not need cron you do not need it. On Nov 2, 10:07 am, Fred wrote: > I am completely baffled by what ExecuteOnCompletion2 and callback do. > Could someone explain their design?   What do I lose by calling > gluon.main.wsgibase directly? --~--~-~--~

[web2py:34401] Re: T4

2009-11-02 Thread mikech
Is there a write-up of the goals of T4? On Nov 2, 9:32 am, CJSteel wrote: > A, > > Thank you for that! > > Chris > > On Nov 2, 9:06 am, Júlio Monteiro wrote: > > > > > Hello there, > > I published dupoxy's patch on my branch, to allow all strings to have a > > translation. Check it > > ou

[web2py:34400] Re: How to transfer gae database to local sqlite and vice versa?

2009-11-02 Thread Robin B
> Thanks guys. If I understand correctly, appengine bulk loader can only > upload data into gae, but not download from gae. Not true, you can download GAE data to csv. You should read the section titled "Downloading Data from App Engine": http://code.google.com/appengine/docs/python/tools/uploa

[web2py:34399] Re: slider widget for integer input in form

2009-11-02 Thread mr.freeze
Here is an example using the widget method: http://www.web2pyslices.com/main/slices/take_slice/20 On Nov 2, 1:34 am, Boris Manojlovic wrote: > I would suggest something like this (pseudo code) > > $('#table_integer').hide().append(''); > $('#myslider').activateslider(return val to $(#table_int

[web2py:34398] Re: T4

2009-11-02 Thread CJSteel
A, Thank you for that! Chris On Nov 2, 9:06 am, Júlio Monteiro wrote: > Hello there, > I published dupoxy's patch on my branch, to allow all strings to have a > translation. Check it > out:http://bazaar.launchpad.net/~monteiro/t4/monteiro/revision/18 > Cheers, > Monteiro > mdipierro wrot

[web2py:34397] Re: How to transfer gae database to local sqlite and vice versa?

2009-11-02 Thread Iceberg
Thanks guys. If I understand correctly, appengine bulk loader can only upload data into gae, but not download from gae. So when I gonna backup online data from my app on gae, I still have to write my own controller function to select 1000 records for downloading. Sounds not smooth, but it is the o

[web2py:34396] storage object

2009-11-02 Thread haftish21
This is a kind of error I'm getting repeatedly. I suspect that my understanding of the Storage(dict) object & its functions is not enough. Can any one help, plz. >>> db.image.drop() Traceback (most recent call last): File "", line 1, in db.image.drop() File "C:\Users\...\web2pygeom\gluo

[web2py:34395] Re: Where is Rows.response gone?

2009-11-02 Thread rfx_labs
Hi Massimo, > because developers are not supposed to use Rows.response which is an internal > variable Maybe I have misunderstand something in the first version of your book on site 146. > What were you using response for? Mainly to get custom dictionaries. > If you post an example, I can help

[web2py:34394] Re: how to disable soft cron when running mod_wsgi daemon

2009-11-02 Thread Fred
I am completely baffled by what ExecuteOnCompletion2 and callback do. Could someone explain their design? What do I lose by calling gluon.main.wsgibase directly? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web

[web2py:34393] Re: How to prevent an ldap-login to auto-register

2009-11-02 Thread Johann Spies
2009/11/2 mdipierro : > > Sorry. I had missed your email. It is not a stupid question and this > could be a bug. Let us look into this. Thanks. Johann --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" g

[web2py:34392] Re: T4

2009-11-02 Thread Júlio Monteiro
Hello there, I published dupoxy's patch on my branch, to allow all strings to have a translation. Check it out: http://bazaar.launchpad.net/~monteiro/t4/monteiro/revision/18 Cheers, Monteiro mdipierro wrote: Thank you I will look at this asap. On Nov 2, 6:15 am, dupoxy wrote:

[web2py:34391] Re: T4

2009-11-02 Thread mdipierro
Thank you I will look at this asap. On Nov 2, 6:15 am, dupoxy wrote: > hi just merci for your work > my little 2cents, a path to make template translatable > see here :https://blueprints.launchpad.net/t4/+spec/t4-translatable-template > > Thanks Massimo, Montiero and all for your work. --~--~---

[web2py:34390] Re: Multiple Requires criteria

2009-11-02 Thread mdipierro
You have to make your own validator. Should we add a "range" attribute to IS_IN_SET multiple? On Nov 1, 9:40 pm, Richard wrote: > I came across the same problem. > > I want the user to choose 1 or more items from the set. > If I choose multiple=True it allows 0 or more selected, but if I add > I

[web2py:34389] Re: Where is Rows.response gone?

2009-11-02 Thread mdipierro
It is gone. Rows.response was an internal variable that stored raw db response and was backend dependent. It is gone for good. The new Rows is much faster, smaller and cleaner. Technically this is not exactly a breaking of backward compatibility because developers are not supposed to use Rows.re

[web2py:34388] Re: How to prevent an ldap-login to auto-register

2009-11-02 Thread mdipierro
Sorry. I had missed your email. It is not a stupid question and this could be a bug. Let us look into this. Massimo On Nov 2, 3:51 am, Johann Spies wrote: > Maybe I have asked a stupid question or maybe nobody who saw my email > but after 5 days I had no responses. > If somebody with the knowh

[web2py:34387] Re: Need some help with groups

2009-11-02 Thread mdipierro
The error is here: if form.accepts(request.vars,session): because of this form=SQLFORM.factory( db.auth_group, db.auth_membership, db.auth_permission, ) you need to list explicitly the fields you want to show, else it will try validate the group_id of db.auth_member

[web2py:34386] Re: T4

2009-11-02 Thread dupoxy
hi just merci for your work my little 2cents, a path to make template translatable see here : https://blueprints.launchpad.net/t4/+spec/t4-translatable-template Thanks Massimo, Montiero and all for your work. --~--~-~--~~~---~--~~ You received this message because

[web2py:34385] Re: Multiple Requires criteria

2009-11-02 Thread villas
> SQLField('field','string',requires=[IS_NOT_EMPTY(),IS_IN_SET > (['Val1','Val2','Val3'])]) > Is this the correct syntax? I don't know whether this helps, but I took it from a post by Massimo on 11 Aug: requires=IS_IN_SET() validation+dropdown requires=[IS_IN_SET()] validation but not

[web2py:34384] Where is Rows.response gone?

2009-11-02 Thread rfx_labs
Hi Massimo, many of my apps use code like this: result = db().select(db.reference.id, db.reference.l, db.reference.a, db.reference.b) for i, l, a, b in result.response: c.reference(("lab"), l, a, b) With code from Trunk 1376 this is broken. How do I get the same result now? Regards Martin

[web2py:34383] Re: How to prevent an ldap-login to auto-register

2009-11-02 Thread Johann Spies
Maybe I have asked a stupid question or maybe nobody who saw my email but after 5 days I had no responses. If somebody with the knowhow can help me in the right direction I will appreciate it. Regards Johann --~--~-~--~~~---~--~~ You received this message because

[web2py:34382] Need some help with groups

2009-11-02 Thread weheh
# # controller # @auth.requires_login() def groups(): #--- # create form db.auth_group.role.requires=[IS_NOT_IN_DB (db,'auth_group.role'),IS_NOT_EMPTY()] form=SQLFORM.factory( db