[web2py] Re: social network idea

2011-01-18 Thread mart
A bit late, but thought I'd put my 2 cents worth anyways (and besides, you did ask ;), I think what your proposing is great, there's no doubt there :) I took your comment as "We need to think of something different..." and went with that, and not to find an alternative to your proposal (because I

Re: [web2py] Re: Long-running controllers

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 6:50 PM, ae wrote: > > On Jan 18, 9:17 pm, Jonathan Lundell wrote: >> On Jan 18, 2011, at 5:41 PM, ae wrote: >> >> >> >>> On Jan 18, 11:22 am, Jonathan Lundell wrote: >> When you say "anyone associated with the thread", do you mean other requests using some sha

Re: [web2py] Re: Long-running controllers

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 7:58 PM, Massimo Di Pierro wrote: > > Your code does not block the server. Only blocks the session > associated to your browser to guarantee integrity of the data in your > session. If you know that the block function takes time and it does > not need to save session, you can d

[web2py] Shell & controllers & views

2011-01-18 Thread walter
Question about a shell. Can I interact to controllers and views as easy as a DB? If it is true, how?

[web2py] Re: Use the source, Luca

2011-01-18 Thread cjrh
On Jan 19, 2:59 am, Anthony wrote: > These are great thoughts. One comment below... > > On Tuesday, January 18, 2011 7:21:05 PM UTC-5, cjrh wrote: > > documentation.   Epydoc provides a space for writing module-level > > comments, and my gut feel is that the higher-level description of the > > sou

[web2py] Re: form / subform / adding row (field)...

2011-01-18 Thread mart
Hey, es-tu de Montreal? On Jan 18, 7:08 pm, Richard Vézina wrote: > I forgot to paste : > > def register(): >     form=SQLFORM.factory(db.client, db.address, formstyle = 'divs') #, > table_name='dummy_name') >     if form.accepts(request.vars): >         id = db.client.insert(**db.client._filter_

[web2py] Re: form / subform / adding row (field)...

2011-01-18 Thread mart
I'm going to try this :) sorry, I mean to try your code from yesterday. I think sub-forms would be an awesome addition. Anyways, if it helps, I'll test and provide what i can :) Mart On Jan 18, 7:08 pm, Richard Vézina wrote: > I forgot to paste : > > def register(): >     form=SQLFORM.factory(db

[web2py] Re: Long-running controllers

2011-01-18 Thread Anthony
I tried this (the session.forget() version), and sayjunk is still being blocked for 30 seconds while waiting for blockme to finish (only when in the same browser -- I can load sayjunk in a different browser, which starts a different session). Am I missing something? On Tuesday, January 18, 2011

Re: [web2py] Re: [off-topic] - Jquery Panels/dashboard Plugin

2011-01-18 Thread Anthony
On Tuesday, January 18, 2011 10:38:03 PM UTC-5, rochacbruno wrote: > > It has a 2.0 version http://www.trilancer.com/jpolite2/ > Yeah, the version at http://www.web2py.com/jpolite is actually a port of the older JPolite to web2py, but it probably makes sense to work with the newer version (tho

[web2py] WARNING:root:failure to stat applications

2011-01-18 Thread Rupesh Pradhan
My Computer Configuration: CPU: Intel Motheboard: ASUS OS: Windows XP Profession, SP2 Web2Py version: 1.91.4 (2010-12-22) Why am I getting this error? WARNING:root:failure to stat applications\admin\sessions\127.0.0.1- f6f76cfb-49b1-4b04-af6b-f0fae01c7d5d: expected a character buffer object Wh

[web2py] Re: Long-running controllers

2011-01-18 Thread Massimo Di Pierro
Your code does not block the server. Only blocks the session associated to your browser to guarantee integrity of the data in your session. If you know that the block function takes time and it does not need to save session, you can do: def blockme(): session.forget() import time time.

[web2py] Re: Using mysqldb instead of pymysql

2011-01-18 Thread Massimo Di Pierro
I just included the latest pymysql in trunk. Does it make things better? On Jan 18, 6:05 pm, drayco wrote: > Hi, I do this revert, thank's > > try: >     import MySQLdb >     drivers.append('MySQL') > except ImportError: >     logger.debug('no MySQLdb driver') > > And > >         self.pool_connec

[web2py] Re: [off-topic] - Jquery Panels/dashboard Plugin

2011-01-18 Thread ron_m
Have a look at this one http://net.tutsplus.com/tutorials/javascript-ajax/inettuts/

Re: [web2py] Re: [off-topic] - Jquery Panels/dashboard Plugin

2011-01-18 Thread Bruno Rocha
It has a 2.0 version http://www.trilancer.com/jpolite2/

[web2py] Re: Long-running controllers

2011-01-18 Thread ae
On Jan 18, 9:17 pm, Jonathan Lundell wrote: > On Jan 18, 2011, at 5:41 PM, ae wrote: > > > > > On Jan 18, 11:22 am, Jonathan Lundell wrote: > > >> When you say "anyone associated with the thread", do you mean other > >> requests using some shared, locked resource (like the session)? Or > >> som

[web2py] xmlrpc book sample question

2011-01-18 Thread mikech
When I run the sample I'm getting: Traceback (most recent call last): File "", line 2, in print item.created_on, item.title AttributeError: 'dict' object has no attribute 'created_on' Here is the code: >>> import xmlrpclib >>> server = xmlrpclib.ServerProxy( 'http://127.0.0.1:8000/mywik

[web2py] Re: web2pyslices migration

2011-01-18 Thread Anthony
This sounds amazing. Looking forward to it. On Tuesday, January 18, 2011 8:16:35 PM UTC-5, rochacbruno wrote: > Hello everyone. > > web2pyslices server is being migrated from Nathan server for > my server, so the site can be down for a while, I'll try to put it > to work as quickly as possible.

Re: [web2py] Re: DRY conception

2011-01-18 Thread Bruno Rocha
2011/1/19 pbreit > For starters, I wouldn't get so hung up on DRY. Are the pages you are > creating very nearly identical but with different data sets? > > Jonathan's suggestion sounds good: > http://app/default/show/t rips > http://app/default/show/p

Re: [web2py] Re: DRY conception

2011-01-18 Thread pbreit
For starters, I wouldn't get so hung up on DRY. Are the pages you are creating very nearly identical but with different data sets? Jonathan's suggestion sounds good: http://app/default/show/t rips http://app/default/show/p erso

Re: [web2py] Re: Long-running controllers

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 5:41 PM, ae wrote: > > On Jan 18, 11:22 am, Jonathan Lundell wrote: > >> When you say "anyone associated with the thread", do you mean other requests >> using some shared, locked resource (like the session)? Or something else? > > Browser sessions seem to get associated to

[web2py] Re: Use the source, Luca

2011-01-18 Thread pbreit
I hate to say it but I think the biggest problem is the Book. Don't get me wrong, the Book is very well written and has excellent content. But it's too much like a book and too little like online documentation. I also think the Overview might benefit from being the creation of one simple app, l

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread blackthorne
Concerning my question: I actually tried reply_to in mail.send() without success. now that someone confirmed that is actually there and supposed to work, I gave it a second try and it worked. The reason not to work before is probably related to the web2py version I was using in production on that

[web2py] Re: Long-running controllers

2011-01-18 Thread ae
On Jan 18, 5:06 pm, cjrh wrote: > > I suggest you present some code to this group that shows how laborious > it is, and ask for simplifications.  I am not a javascript guru, but > some do lurk here and that would be the best way to make it less > laborious.  web2py itself does have some helpers

[web2py] Re: Long-running controllers

2011-01-18 Thread ae
On Jan 18, 11:22 am, Jonathan Lundell wrote: > > When you say "anyone associated with the thread", do you mean other requests > using some shared, locked resource (like the session)? Or something else? Browser sessions seem to get associated to a thread. As long as that thread is busy the use

[web2py] Re: web2pyslices migration

2011-01-18 Thread Bruno Rocha
Just for curiosity, and to highlight the benefit of being backwards compatible. Nathan was running a different version of web2py (I think an old stable one), I simply grabbed the .w2p package and deployed to the latest version of web2py, everything running well out of the box :) Bruno Rocha http:

[web2py] Re: web2pyslices migration

2011-01-18 Thread mr.freeze
I am excited to see web2pyslices 2.0 (or whatever you guys decide to call it). Thanks Bruno and Martin! On Jan 18, 7:16 pm, Bruno Rocha wrote: > Hello everyone. > > web2pyslices server is being migrated from Nathan server for > my server, so the site can be down for a while, I'll try to put it >

[web2py] Re: web2pyslices migration

2011-01-18 Thread Bruno Rocha
Eventually, until it is offline, you can access with this temporary domain http://slices.blouweb.com/main/default/index Thanks Bruno Rocha http://about.me/rochacbruno/bio

[web2py] web2pyslices migration

2011-01-18 Thread Bruno Rocha
Hello everyone. web2pyslices server is being migrated from Nathan server for my server, so the site can be down for a while, I'll try to put it to work as quickly as possible. Max tomorrow evening the site will be back and running on my new server, no change and keeping the same data and users. M

[web2py] Re: Use the source, Luca

2011-01-18 Thread Anthony
These are great thoughts. One comment below... On Tuesday, January 18, 2011 7:21:05 PM UTC-5, cjrh wrote: > I think I am in favour of your suggestion of putting references to > source units inside the book itself. I would probably suggest that > the format of that inclusion be little more than

Re: [web2py] Re: [off-topic] - Jquery Panels/dashboard Plugin

2011-01-18 Thread Bruno Rocha
WOW, Exactly what I need, downloading the source! I never knew about it. Thank you Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Re: Url for References in the Spanish book

2011-01-18 Thread Anthony
And for anyone who's interested, here is the automated (Google) translation plugin: http://web2py.com/plugins/default/translate. The web2py book application is also available: http://web2py.com/appliances/default/show/59. On Tuesday, January 18, 2011 2:22:52 PM UTC-5, Anthony wrote: > Note, I t

[web2py] Re: Use the source, Luca

2011-01-18 Thread cjrh
On Jan 18, 10:15 pm, Jonathan Lundell wrote: > I've been working a little on a proposal for some new cookbook sections, one > per chapter, that provide a roadmap to the web2py source that's relevant to > the chapter. There are two dangers in documentation: 1) Too little 2) Too much "Too much

[web2py] Re: [off-topic] - Jquery Panels/dashboard Plugin

2011-01-18 Thread Anthony
Probably not quite what you're looking for, but maybe this could help: http://www.web2py.com/jpolite On Tuesday, January 18, 2011 6:52:31 PM UTC-5, rochacbruno wrote: > Hi, > > I am looking for a panel plugin for Jquery. > > I need to build a page with panels like that http://diogobaeder.com.br

[web2py] Re: Janrain Basic limited to 2500 users

2011-01-18 Thread Plumo
I find that after a webpage loads the Janrain login takes up to 5 seconds to display, which is confusing. That is a deal breaker for me.

[web2py] Re: Can any help me with new dal in trunk?

2011-01-18 Thread drayco
Hi, When we have available that change? And Can you give us a little example? Because, I'm testing my application on the trunk version and I keep getting the same error. On Jan 8, 4:40 pm, Massimo Di Pierro wrote: > We should have a flag to change this behavior DAL(...,lowercase=True). > I woul

[web2py] Re: form / subform / adding row (field)...

2011-01-18 Thread Richard Vézina
I forgot to paste : def register(): form=SQLFORM.factory(db.client, db.address, formstyle = 'divs') #, table_name='dummy_name') if form.accepts(request.vars): id = db.client.insert(**db.client._filter_fields(form.vars)) form.vars.client=id id = db.address.insert(**d

[web2py] Re: Using mysqldb instead of pymysql

2011-01-18 Thread drayco
Hi, I do this revert, thank's try: import MySQLdb drivers.append('MySQL') except ImportError: logger.debug('no MySQLdb driver') And self.pool_connection(lambda db=db, user=credential_decoder(user), password=credential_

[web2py] [off-topic] - Jquery Panels/dashboard Plugin

2011-01-18 Thread Bruno Rocha
Hi, I am looking for a panel plugin for Jquery. I need to build a page with panels like that http://diogobaeder.com.br/ and like the one we see in htp://google.com/ig Is there anybody who knows a good jquery plugin for doing that? (I tried Jquery Dashboard plugin, but it is JSon based, I need

[web2py] Re: rows.find doesn't find anything

2011-01-18 Thread Massimo Di Pierro
The DAL should throw an exception in this case. I will add a check. On Jan 18, 4:49 pm, Lorin Rivers wrote: > Right! > > Hey, it might be good to have an example in The Book that uses a different > construction than the one I mistakenly tried to use. > > On Jan 18, 2011, at 15:30 , Massimo Di Pi

Re: [web2py] Re: rows.find doesn't find anything

2011-01-18 Thread Lorin Rivers
Right! Hey, it might be good to have an example in The Book that uses a different construction than the one I mistakenly tried to use. On Jan 18, 2011, at 15:30 , Massimo Di Pierro wrote: > >for row in semaphore_rows.find(lambda row: > row.table_name[0]=='data_table'): >print row

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread Anthony
On Tuesday, January 18, 2011 4:55:29 PM UTC-5, cjrh wrote: > > On Jan 18, 7:37 pm, blackthorne wrote: > > Maybe, this should be documented in the book. > > Done. I included it in the example, but I also added a description of > the full signature of the mail.send() command. I am hesitant to

[web2py] Re: Use the source, Luca

2011-01-18 Thread Anthony
This is great. Personally, I find this kind of thing very helpful. I like the idea of having this stuff in one central location, though it would also be helpful if the online book chapters (or even sections within chapters) could link to the relevant parts. Thanks. Anthony On Tuesday, Jan

Re: [web2py] Re: Use the source, Luca

2011-01-18 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, El 18/01/11 16:12, Jonathan Lundell escribió: > I could also be persuaded that the cookbook should have a briefer section on > source browsing--just pointers to where to look--and the more detailed > roadmap should be a more dynamic online docum

Re: [web2py] Re: DRY conception

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 1:59 PM, walter wrote: > >> but the problem is that you have two controllers. Perhaps you should have >> only one. > > I have thought about it. Unfortunately, I need sometimes show all our > customers but at the next time I need view all them trips. I would be > glad to do me

Re: [web2py] Re: DRY conception

2011-01-18 Thread Bruno Rocha
def sections(): allowedtables = ['table1','table2'] tablename = request.args(0) if tablename in allowedtables: rows = db(db[tablename]).select() else: rows = 'You can't access this table' return dict(rows=rows) http://myapp/default/sections/ Is that? Bruno

[web2py] Re: Long-running controllers

2011-01-18 Thread cjrh
On Jan 18, 5:39 pm, ae wrote: > How do people deal with controller functions that take a long time? 1) If you must do something that takes time, start it as a separate process, and that process toggles a flag that says the job is complete. The user can be notified of the completion via email. T

[web2py] Re: DRY conception

2011-01-18 Thread walter
> but the problem is that you have two controllers. Perhaps you should have > only one. I have thought about it. Unfortunately, I need sometimes show all our customers but at the next time I need view all them trips. I would be glad to do merge two controllers into the one. But I cannot figure ou

[web2py] Re: Keys and GAE

2011-01-18 Thread Matt
Hi cfn, Yes your suggestion would be preferable (and more workable). This would be a great addition to the GAE support included with web2py. Matt On Jan 14, 6:39 pm, howesc wrote: > Matt, > > given the arbitrary depth of the keys, perhaps it would be better to have > the user construct the key

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread cjrh
On Jan 18, 7:37 pm, blackthorne wrote: > Maybe, this should be documented in the book. Done. I included it in the example, but I also added a description of the full signature of the mail.send() command. I am hesitant to do too much of that, because the docs inside the source code should contai

Re: [web2py] Re: Url for References in the Spanish book

2011-01-18 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Thanks Anthony and Kenneth for your answers. There is any way to integrate the human translation of Latinux instead of the automatic google translated one in the website of the book? Cheers, Offray El 18/01/11 14:22, Anthony escribió: > Note, I

[web2py] Re: Unable to compile application with dynamic {{include ...}} directives

2011-01-18 Thread Massimo Di Pierro
Ok but this is slow. On Jan 18, 3:05 pm, "anton.mue...@googlemail.com" wrote: > On Jan 18, 8:57 am, cjrh wrote: > > > > > > > > > > > On Jan 18, 2:13 am, Massimo Di Pierro > > wrote: > > > > this is not possible because includes and extends must be resolved > > > before compilation, not at runt

[web2py] Re: DRY conception

2011-01-18 Thread Massimo Di Pierro
from a coding point of view tablename=request.controller rows = db(db[tablename]).select() return dict(rows=rows) but the problem is that you have two controllers. Perhaps you should have only one. On Jan 18, 2:59 pm, walter wrote: > I have two controllers which differ only a database table tit

[web2py] Re: Dynamic Defaults, if that makes any sences...

2011-01-18 Thread Massimo Di Pierro
db.define_table('page', Field('page_name', 'string'), Field('url_name', 'string'),#Basically it takes the page name and replaces spaces with _ Field('conference_id', 'integer',writable=False,readable=False), Field('contents', 'text'), Field('creator', 'i

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread Massimo Di Pierro
You can post them on googlecode but it easier to plea one of the book editors to fix it. ;-) On Jan 18, 1:16 pm, pbreit wrote: > What's the best way to file doc bugs? reply-to should certainly be > documented in the book. And mail should probably be covered elsewhere in the > book. Access Control

[web2py] Re: rows.find doesn't find anything

2011-01-18 Thread Massimo Di Pierro
for row in semaphore_rows.find(lambda row: row.table_name[0]=='data_table'): print row should be for row in semaphore_rows.find(lambda row: row.table_name=='data_table'): print row else you compare only the first char with 'date_table' On Jan 18, 1:05 pm, Lorin Rivers

[web2py] Re: Bug? SQLFORM.factory and SQLFORM differ in handling of hidden form fields

2011-01-18 Thread Massimo Di Pierro
This is a bug. Would you please post your bug report email on googlecode? I will fix it asap. On Jan 18, 12:23 pm, Nathan VanHoudnos wrote: > Hi, > > A minimal example: >     likertRightAnswer = ['Yes', 'No', 'Impossible to tell'] > >     form = SQLFORM.factory( >         Field('rightAnswer', >  

Re: [web2py] Re: Use the source, Luca

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 1:09 PM, DenesL wrote: > > One doubt, doesn't this sound strange: > "Rocket receives HTTP requests and passes them to Rocket"?. Ok, well, details...

[web2py] Re: Schema migration to GAE / Creating a Test Suite

2011-01-18 Thread howesc
Hello there, I have written a bunch of stuff against google app engine over the past year and have played lots of data games. let's see if i can provide a little insight. - first off, the CSV download functions only work while the tables are small (under a few thousand rows). after that loo

Re: [web2py] Re: Use the source, Luca

2011-01-18 Thread Jonathan Lundell
I could also be persuaded that the cookbook should have a briefer section on source browsing--just pointers to where to look--and the more detailed roadmap should be a more dynamic online document. That way it'd be easier to keep the source roadmap up to date (and add new material), and the roa

[web2py] web2py and external editors

2011-01-18 Thread Mike Rans
Hi, I am a web2py newbie. I am using web2py with an external text editor. I made Pylint and Winpdb plugins for this editor (Editra - which is written in Python) and can successfully debug web2py from it. The problem I have is with Pylint - web2py does some behind the scenes importing. I don't wa

[web2py] geo spatial GIS in web2py

2011-01-18 Thread KK
Dear all, Can anyone comment on the level of support web2py has for geospatial applications in web2py. Are there restrictions to integrating some geospatial code or packages in a web2py application? Would be great if I could integrate mapbox or similar stuff into web2py. Oh and can we do fan

[web2py] Re: Use the source, Luca

2011-01-18 Thread DenesL
Well done!. One doubt, doesn't this sound strange: "Rocket receives HTTP requests and passes them to Rocket"?. On Jan 18, 3:15 pm, Jonathan Lundell wrote: > I've been working a little on a proposal for some new cookbook sections, one > per chapter, that provide a roadmap to the web2py source

[web2py] Re: Unable to compile application with dynamic {{include ...}} directives

2011-01-18 Thread anton.mue...@googlemail.com
On Jan 18, 8:57 am, cjrh wrote: > On Jan 18, 2:13 am, Massimo Di Pierro > wrote: > > > this is not possible because includes and extends must be resolved > > before compilation, not at runtime > > I have been thinking about this for a while.  In principle, it should > be possible to have the co

[web2py] DRY conception

2011-01-18 Thread walter
I have two controllers which differ only a database table title. For example: default/persons/index persons = db(db.person).select() return dict(persons=persons) default/trips/index trips = db(db.trip).select() return dict(trips=trips) How implement DRY conception in this case?

Re: [web2py] Re: Use the source, Luca

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 12:41 PM, pbreit wrote: > Probably any additional documentation is a "good thing". I personally like > more practical information. My favorite framework documentation is probably > CodeIgniter. Using the source is definitely a backup option, when the books and other docs don

Re: [web2py] Use the source, Luca

2011-01-18 Thread Kenneth Lundström
Sounds like an excellent idea. Both answers for your question sounds good. Would it be possible to distribute it across chapters but some how make it so that you can read it as an chapter. The source as to be same, it can't be like that you have to update two places when updating something.

[web2py] Re: Use the source, Luca

2011-01-18 Thread pbreit
Probably any additional documentation is a "good thing". I personally like more practical information. My favorite framework documentation is probably CodeIgniter.

[web2py] Re: Dynamic Defaults, if that makes any sences...

2011-01-18 Thread dederocks
If I'm not off track, something like: session.conference_id = form.vars.[fieldx] ? Or the other way around, but then you need to use SQLFORM.factory, I guess, and handle yourself the db insertion/update (see example in the book §7.3, or better this link: http://groups.google.com/group/web2py/bro

[web2py] Use the source, Luca

2011-01-18 Thread Jonathan Lundell
I've been working a little on a proposal for some new cookbook sections, one per chapter, that provide a roadmap to the web2py source that's relevant to the chapter. My motivation, mentioned below in the Introduction section, is that the full-stack nature of web2py is one of its important featu

[web2py] Re: account for each user

2011-01-18 Thread pbreit
I would suggest starting over from scratch and using Web2py's Access Control features as they come by default as much as possible. Once you are comfortable with how they work, you can think about customizing them. I think your code should be something like this: ==model== db.define_table('day'

[web2py] Re: Url for References in the Spanish book

2011-01-18 Thread Anthony
Note, I think the Spanish (and German, French, and Russian) translations available at http://web2py.com/book/ are actually automated Google Translate translations (via plugin_translate). I think the Spanish translation at http://www.latinuxpress.com/books/drafts/web2py/index.html, on the other

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread pbreit
What's the best way to file doc bugs? reply-to should certainly be documented in the book. And mail should probably be covered elsewhere in the book. Access Control was not where I expected it to be discussed.

Re: [web2py] Url for References in the Spanish book

2011-01-18 Thread Kenneth Lundström
If you add ?_language=es after the english URL you get the Spanish version. Kenneth -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I would like to share some thought of web2py introduction via identi.ca. Quote something and add the short url of the on-line Book, Spanish edition. There is

[web2py] rows.find doesn't find anything

2011-01-18 Thread Lorin Rivers
semaphore_query = db4.rollup_semaphore.id > 0 semaphore_set = db4(semaphore_query) semaphore_rows = semaphore_set.select() for row in semaphore_rows.find(lambda row: row.table_name[0]=='data_table'): print row returns nothing. While: print db4(db4.rollup_semaphore.tabl

[web2py] Dynamic Defaults, if that makes any sences...

2011-01-18 Thread Jason Brower
I am not so great with forms, but how do I set a particular value when they have completed the form... #MODEL db.define_table('page', Field('page_name', 'string'), Field('url_name', 'string'),#Basically it takes the page name and replaces spa

[web2py] Url for References in the Spanish book

2011-01-18 Thread Offray Vladimir Luna Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. I would like to share some thought of web2py introduction via identi.ca. Quote something and add the short url of the on-line Book, Spanish edition. There is one Spanish version hosted by Latinux-Press but is not so nicely formated like the one yo

[web2py] Bug? SQLFORM.factory and SQLFORM differ in handling of hidden form fields

2011-01-18 Thread Nathan VanHoudnos
Hi, A minimal example: likertRightAnswer = ['Yes', 'No', 'Impossible to tell'] form = SQLFORM.factory( Field('rightAnswer', widget=horizontal_radios, requires=IS_IN_SET(likertRightAnswer, error_message=T('Please choose a

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread blackthorne
Just got there, if reply_to: payload['Reply-To'] = encode_header(reply_to.decode(encoding)) where reply_to is an arg for send(...reply_to=None...). Maybe, this should be documented in the book. Thanks On Jan 18, 5:17 pm, Anthony wrote: > Mail is documented in the book > (

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread Anthony
Mail is documented in the book ( http://web2py.com/book/default/chapter/08#Auth-and-Mail), but you're right, it does not appear to mention the reply-to option. However, the send method of the Mail class does include a reply-to parameter, as documented here: http://www.web2py.com/examples/static/

[web2py] Re: Problem with one-to-many field

2011-01-18 Thread rif
I changed it back to Field('firma', db.firma) and now it works as expected. I really hope that it was somehow my mistake because I want to learn to use and trust web2py. Just for the record in case it happens to someone else: I had a foreign key (OneToMany relationship) that was not rendered as a

Re: [web2py] Long-running controllers

2011-01-18 Thread Jonathan Lundell
On Jan 18, 2011, at 7:39 AM, ae wrote: > > How do people deal with controller functions that take a long time? > (waiting for a subprocess or connection to another host, for example) > > It seems that while a thread is busy, anyone associated with the > thread can't use the application. I can se

Re: [web2py] Re: doesn't represents in a string format

2011-01-18 Thread Christian Foster Howes
the requires my not be necessary, i have not tested it. when i have the represent it works for me in SQLTABLE. i have not used the other visualizations. On 01/18/2011 05:08 AM, web2py noob wrote: I have to say that the represent=lambda x: db.stuff[x].name seems to works only for webgrid plug

[web2py] Re: reply-to setting in Mail()

2011-01-18 Thread blackthorne
Your link does not seem to hold any useful content related to my question, looks more like a very incomplete suggestion on the way I should be making questions. My question, is as simple as it can get, should be pretty obvious to anyone able to answer it, does not seem to be featured in the docs an

[web2py] Long-running controllers

2011-01-18 Thread ae
How do people deal with controller functions that take a long time? (waiting for a subprocess or connection to another host, for example) It seems that while a thread is busy, anyone associated with the thread can't use the application. I can see the benefit of this (one user can't consume many t

[web2py] Re: social network idea

2011-01-18 Thread Massimo Di Pierro
I found diigo is a really good bookmarking site. It has some social features, although not the ability to find people with same bookmarks nearby. On Jan 18, 8:44 am, Massimo Di Pierro wrote: > At a second look... > > http://pinboard.in/this is very close to what I proposed. The fee is > a one-tim

Re: [web2py] reply-to setting in Mail()

2011-01-18 Thread Gary Herron
On 01/18/2011 07:18 AM, blackthorne wrote: Is it possible? how? See http://www.catb.org/~esr/faqs/smart-questions.html#intro -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

[web2py] reply-to setting in Mail()

2011-01-18 Thread blackthorne
Is it possible? how?

[web2py] Re: social network idea

2011-01-18 Thread Massimo Di Pierro
At a second look... http://pinboard.in/ this is very close to what I proposed. The fee is a one-time sign up fee. Their business model is very interesting but will prevent growth (the more users the more it costs to join - clearly not designed by an economist! - reminiscent of the social security

[web2py] Re: Problem with one-to-many field

2011-01-18 Thread Massimo Di Pierro
Before you send me the app. Please explain again what is your model now, what you get and what you expect. You original code was wrong because if the validator is a list than there is no dropdown. That is not a bug but a feature. On Jan 18, 2:09 am, rif wrote: > It was Field('firma', db.firma),

[web2py] Re: Value of the form field

2011-01-18 Thread Massimo Di Pierro
Is your form using the IS_SLUG() validator? On Jan 18, 7:02 am, luifran wrote: > When I write two separate words in a form field, and extract the value > of this field, every space appears the symbol '_', it causes me not > match the field's value with the value of the database. > > How I can fix

[web2py] Re: social network idea

2011-01-18 Thread Massimo Di Pierro
$9.19? They got the business model wrong. On Jan 18, 12:12 am, Tom Atkins wrote: > http://pinboard.ingives me a list of people to check out based on their > bookmarking history.  I don't know the details of the algorithm and there's > no flexibility in refining the recommendations but I've found

[web2py] Re: .../default/user/not_authorized

2011-01-18 Thread Massimo Di Pierro
if isinstance(form,FORM): form[0][-1][1].append(...) On Jan 18, 3:02 am, annet wrote: > In the default controller I adjusted the user() function: > > def user(): >     """ >     exposes: >     ... >     """ >     form=auth() >     form[0][-1] > [1].append(INPUT(_type="button",_value=

[web2py] Re: How to pass a database object in request.vars to a function?

2011-01-18 Thread Massimo Di Pierro
request.vars[key] are strings. a query is an instance of gluon.dal.Query. You cannot serialize and deserialize a query without creating major security issues. The best you can do is break the query into (fieldname, operator, value) and do what plugin_wiki does in controllers/plugin_wiki.py/jqgrid

[web2py] Re: account for each user

2011-01-18 Thread Massimo Di Pierro
This line: records = db(auth.settings.table_user==auth.user).select(...) is invalid because the content of db(...) is not a query. It does not involve any field. On Jan 17, 9:28 pm, Rick wrote: > I found that this line is the error-prone one: > records = > db(auth.settings.table_user==auth.us

[web2py] Re: Problem with one-to-many field

2011-01-18 Thread rif
It was Field('firma', db.firma), I added the requires parameter as a desperate measure thinking that it will trigger the right functionality. It really looks like a "glitch in the system". If it is useful to you I can send you the whole app. Radu (from Romania :) On Jan 17, 6:29 pm, Massimo Di Pi

[web2py] Re: doesn't represents in a string format

2011-01-18 Thread web2py noob
I have to say that the represent=lambda x: db.stuff[x].name seems to works only for webgrid plugin, but not for jqgrid (plugin_wiki) nor SQLTABLE builtin function. it's this how is must be or is a bug?

[web2py] Value of the form field

2011-01-18 Thread luifran
When I write two separate words in a form field, and extract the value of this field, every space appears the symbol '_', it causes me not match the field's value with the value of the database. How I can fix this? Thanks.

[web2py] Re: doesn't represents in a string format

2011-01-18 Thread web2py noob
On 18 ene, 02:12, howesc wrote: > (...) Hi Howesc, If I understand well, as I put in the links, requires=[IS_NOT_EMPTY(),IS_IN_DB()] would not needed if I already defined the table as: db.define_table('table01', Field('name','string'), format='%(name)s' ) db.define_table('table02',

[web2py] Re: Powertable remarks

2011-01-18 Thread Johann Spies
I started this thread: On 17 December 2010 12:11, Johann Spies wrote: > > * I have tested it this morning on a table with more just over 8200 > entries and it took 70-90 seconds on Firefox and 30-35 secondes no Chrome > to reload the page from localhost. That is not usable. Plugin_wiki's >

Re: [web2py] social network idea

2011-01-18 Thread Albert Abril
@Anand What's the name? Or some link? Thanks. On Tue, Jan 18, 2011 at 12:35 PM, Anand Vaidya wrote: > I have seen an app that does almost what you mean on my freshly installed > kubuntu desktop > > The app shows who is geographically nearby and (s)he need not be our > "friend" already, most likel

  1   2   >