Re: [web2py] Re: Vim snippets for web2py

2010-04-07 Thread Thadeus Burgess
This is nice! I should learn how to use vim :P Could anybody convert this to a gedit snippet? -Thadeus On Wed, Apr 7, 2010 at 5:02 AM, Doxaliber salingro...@gmail.com wrote: Fantastic! Thank you! On 7 Apr, 08:25, Benigno bca...@albendas.com wrote: Wow, big big thanks to Leonardo.

Re: [web2py] When and how to use command line option -f FOLDER?

2010-04-07 Thread Thadeus Burgess
In windows if you are using NTFS there is something called a Junction Point which is a hard link. It works like linux `ln`. http://en.wikipedia.org/wiki/NTFS_junction_point You have to BE CAREFUL, hard links work like folders! If you delete a hard link, you delete the file You have to delete

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
: uploading fix. please check it. Thanks for testing this. On Apr 5, 3:59 pm, Thadeus Burgess thade...@thadeusb.com wrote: Traceback (most recent call last):   File /home/tburgess/Applications/web2py/gluon/restricted.py, line 173, in restricted     exec ccode in environment   File /home/tburgess

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
It comes from the line db.TableB[value].name -Thadeus On Wed, Apr 7, 2010 at 3:19 PM, mdipierro mdipie...@cs.depaul.edu wrote: need more info On Apr 7, 1:36 pm, Thadeus Burgess thade...@thadeusb.com wrote: Traceback (most recent call last):   File /home/tburgess/Applications/web2py

[web2py] enum types

2010-04-07 Thread Thadeus Burgess
Does the DAL support database ENUM types? -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...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

Re: [web2py] enum types

2010-04-07 Thread Thadeus Burgess
, Apr 7, 2010 at 10:55 PM, Thadeus Burgess thade...@thadeusb.com wrote: Does the DAL support database ENUM types? -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...@googlegroups.com

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
].name should be    db.TableA.id_TableB.represent = lambda value: (db.TableB[value] or {}).get('name','anonymous') On Apr 7, 1:36 pm, Thadeus Burgess thade...@thadeusb.com wrote: Traceback (most recent call last):   File /home/tburgess/Applications/web2py/gluon/restricted.py, line 173

[web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-07 Thread Thadeus Burgess
this is a bug in sql.py? On Apr 7, 7:48 pm, Thadeus Burgess thade...@thadeusb.com wrote: No. For dal.py to be accepted it has to work exactly like sql.py Therefore I cannot make ANY code changes if we want a new DAL. -Thadeus On Wed, Apr 7, 2010 at 5:31 PM, mdipierro mdipie

Re: [web2py] Re: recaptcha in LOAD not working

2010-04-06 Thread Thadeus Burgess
I was under the impression that if the js code was in script tags it would execute it when inserted into the DOM ? There is always exec. -Thadeus On Tue, Apr 6, 2010 at 5:04 PM, mdipierro mdipie...@cs.depaul.edu wrote: Now I understand. The problem is not the ajax trap. The problem is

Re: [web2py] Problem with MANY-MANY relationship

2010-04-05 Thread Thadeus Burgess
Your join is performing a union, your queries could (and will) get quite huge, since your getting a record for every tag. (so for two tags you actually get two rows for that snippet). A left join will provide you with everything, but you still get a row for every tag. Even with a left join you

Re: [web2py] Re: How to use virtualfields?

2010-04-05 Thread Thadeus Burgess
Its slower because each function is executed with the query. So what happens is when you get your rows object, it is the value of the function, not the function. If you wrap all of your functions in a lambda as a lazy function, then it will increase the speed please look at

[web2py] bug in dal.py _first() and SQLFORM ._tablename

2010-04-05 Thread Thadeus Burgess
I get this traceback when attempting to access a reference field. rows = db().select(db.table.ALL) for r in rows: r.id r.title r.reference_field.name r.reference_field.description Traceback (most recent call last): File /home/tburgess/Applications/web2py/gluon/restricted.py, line 173,

[web2py] DAL query count patch

2010-04-05 Thread Thadeus Burgess
Attached is a patch to allow the dal.py to keep track of query counts and types. Usage db.qry_count() {'SELECT': 5, 'INSERT': 2, 'DELETE': 1} Massimo, do you accept? -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-05 Thread Thadeus Burgess
. On Apr 5, 2:13 pm, Thadeus Burgess thade...@thadeusb.com wrote: I get this traceback when attempting to access a reference field. rows = db().select(db.table.ALL) for r in rows:   r.id   r.title   r.reference_field.name   r.reference_field.description Traceback (most recent call last

Re: [web2py] Re: DAL query count patch

2010-04-05 Thread Thadeus Burgess
you need it? Massimo On Apr 5, 2:16 pm, Thadeus Burgess thade...@thadeusb.com wrote: Attached is a patch to allow the dal.py to keep track of query counts and types. Usage db.qry_count() {'SELECT': 5, 'INSERT': 2, 'DELETE': 1} Massimo, do you accept? -Thadeus  qry_count.hg.diff

Re: [web2py] Re: DAL query count patch

2010-04-05 Thread Thadeus Burgess
. no? Massimo On Apr 5, 2:33 pm, Thadeus Burgess thade...@thadeusb.com wrote: Novelty. Many websites you see will have at the bottom time took to process request, number of queries to database. -Thadeus On Mon, Apr 5, 2010 at 2:24 PM, mdipierro mdipie...@cs.depaul.edu wrote: I do not see any

Re: [web2py] Re: DAL query count patch

2010-04-05 Thread Thadeus Burgess
DAL. What do you think? I am not convinced this is useful in general and needs to be in trunk. It seems a very specialized application but perhaps I am missing something. I'd like to hear what other people think about this. On Apr 5, 3:00 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ah

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-04-05 Thread Thadeus Burgess
) NameError: global name 'db' is not defined -Thadeus On Mon, Apr 5, 2010 at 3:01 PM, mdipierro mdipie...@cs.depaul.edu wrote: try now On Apr 5, 2:30 pm, Thadeus Burgess thade...@thadeusb.com wrote: Now I get this for reference field Traceback (most recent call last):   File /home/tburgess

Re: [web2py] recaptcha in LOAD not working

2010-04-05 Thread Thadeus Burgess
It is because recaptcha uses ajax to communicate, and when using LOAD web2py traps all ajax calls, so the recaptcha requests are not making it to the server. -Thadeus On Mon, Apr 5, 2010 at 5:05 PM, selecta gr...@delarue-berlin.de wrote: I tried to use Recaptcha in a LOAD div but I does not

Re: [web2py] Re: recaptcha in LOAD not working

2010-04-05 Thread Thadeus Burgess
will read into it 2morrow would be nice if recaptcha works with web2pys ajax things by default On Apr 6, 12:10 am, Thadeus Burgess thade...@thadeusb.com wrote: It is because recaptcha uses ajax to communicate, and when using LOAD web2py traps all ajax calls, so the recaptcha requests

Re: [web2py] Re: Rows don't serialize well if unicode in _extra

2010-04-05 Thread Thadeus Burgess
When dealing with 1 table, names are short names When dealing with multiple tables, all names are fully qualified. -Thadeus On Mon, Apr 5, 2010 at 8:22 PM, fgpy franck...@gmail.com wrote: More details here: I have 2 tables: shop (2 fields) and enquete (18 fields). I use an inner join

Re: [web2py] Re: Friendly URLs

2010-04-04 Thread Thadeus Burgess
Francisco, Take a look at some other existing blog examples. mengu's blog - http://github.com/mengu/blog currently running on mengu.net thadeus blogitizor - http://code.google.com/p/blogitizor/ currently running on thadeusb.com -Thadeus On Sun, Apr 4, 2010 at 12:03 PM, mdipierro

Re: [web2py] How to use virtualfields?

2010-04-04 Thread Thadeus Burgess
I think its db.table.virtualfields.append() -Thadeus On Sun, Apr 4, 2010 at 10:51 PM, Iceberg iceb...@21cn.com wrote: Hi there, I search virtualfields in http://www.web2py.com/book but found nothing. So I read this post instead:  

[web2py] failed to seek; server does not accept Range HTTP header

2010-04-02 Thread Thadeus Burgess
I have a controller as follows def stream(): id = request.args(0) record = db.items[id] if record: return response.stream(record.filepath) else: return False When playing in Totem Media Player, the files play, but when attempting to seek ahead in the song it receives

Re: [web2py] Re: psycopg2 problem

2010-04-02 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com wrote: It still must be a problem with the site-packages. And I wonder if it has something to do with the fact you had problems with easy_install. I would try apt-get remove python-psycopg2 then look in your site-packages, make sure to remove ALL

Re: [web2py] Re: failed to seek; server does not accept Range HTTP header

2010-04-02 Thread Thadeus Burgess
: https://bugzilla.gnome.org/show_bug.cgi?id=524771 On Apr 2, 1:17 am, Thadeus Burgess thade...@thadeusb.com wrote: I have a controller as follows def stream():    id = request.args(0)    record = db.items[id]    if record:       return response.stream(record.filepath)    else

Re: [web2py] Re: web2pyslices hacked or problem?

2010-04-02 Thread Thadeus Burgess
That is... odd! Looks normal here. -Thadeus On Fri, Apr 2, 2010 at 3:09 PM, mr.freeze nat...@freezable.com wrote: A basketball player? Weird! Can you try clearing your browser cache to see if it goes away? On Apr 2, 3:39 pm, Frank thethinkbo...@gmail.com wrote: Frank thethinkbo...@...

[web2py] number of queries in transaction

2010-04-02 Thread Thadeus Burgess
Is there any way to determine the number of queries pending in a transaction (before db.commit()) -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...@googlegroups.com. To unsubscribe from this

Re: [web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-01 Thread Thadeus Burgess
``db().select(db.Record.Name)`` returns a rows object, which acts like a tuple. -Thadeus On Thu, Apr 1, 2010 at 5:06 AM, DenesL denes1...@yahoo.ca wrote: thelist=[row.Name for row in db().select(db.Record.Name)] On Apr 1, 1:41 am, Magnitus eric_vallee2...@yahoo.ca wrote: Hi, assuming

[web2py] Proper handling of Undefined Record Exception in Reference Class

2010-04-01 Thread Thadeus Burgess
Somehow, I am getting the Undefined Record Exception being raised, from line 1429 in sql.py. When I comment out the exception, appadmin works just fine. It looks as if the reference is an ID that does not exist in my table. Somehow, the ID is 4057, when the highest ID in my table is only 4052,

Re: [web2py] Re: web2py forked

2010-04-01 Thread Thadeus Burgess
I prefer spoons. -Thadeus On Thu, Apr 1, 2010 at 9:44 AM, DenesL denes1...@yahoo.ca wrote: LOL On Apr 1, 9:39 am, mr.freeze nat...@freezable.com wrote: Just kidding! Happy April Fools Day! -- You received this message because you are subscribed to the Google Groups web2py-users

Re: [web2py] Re: Proper handling of Undefined Record Exception in Reference Class

2010-04-01 Thread Thadeus Burgess
Tymciurak resultsinsoftw...@gmail.com wrote: On Apr 1, 9:52 am, Thadeus Burgess thade...@thadeusb.com wrote: Somehow, I am getting the Undefined Record Exception being raised, from line 1429 in sql.py. When I comment out the exception, appadmin works just fine. It looks as if the reference

Re: [web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-01 Thread Thadeus Burgess
is not correct and gives an error, but it illustrates what I'm trying to achieve. On Apr 1, 10:30 am, Thadeus Burgess thade...@thadeusb.com wrote: ``db().select(db.Record.Name)`` returns a rows object, which acts like a tuple. -Thadeus On Thu, Apr 1, 2010 at 5:06 AM, DenesL denes1...@yahoo.ca

Re: [web2py] psycopg2 problem

2010-04-01 Thread Thadeus Burgess
Make sure mod_wsgi is running the same version of python that you have psycopg2 installed. -Thadeus On Thu, Apr 1, 2010 at 1:48 PM, Richie richie.d...@googlemail.com wrote: I can import psycopg2 from a python shell, but I'm getting NameError: global name 'psycopg2' is not defined when I

Re: [web2py] Re: psycopg2 problem

2010-04-01 Thread Thadeus Burgess
. -Thadeus On Thu, Apr 1, 2010 at 2:16 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Apr 1, 3:12 pm, Thadeus Burgess thade...@thadeusb.com wrote: Make sure mod_wsgi is running the same version of python that you have psycopg2 installed. that is not the point / problem here

Re: [web2py] Re: new SQLFORM

2010-04-01 Thread Thadeus Burgess
So why formstyle instead of form.as_div() or form.as_ul() ?? -Thadeus On Wed, Mar 24, 2010 at 8:18 PM, mdipierro mdipie...@cs.depaul.edu wrote: Thank you! On Mar 24, 8:21 pm, Jose jjac...@gmail.com wrote: I sent a patch to Massimo -- You received this message because you are

Re: [web2py] Re: psycopg2 problem

2010-04-01 Thread Thadeus Burgess
really appreciate the help! On Apr 1, 9:22 pm, Thadeus Burgess thade...@thadeusb.com wrote: We are confused. 1) He said he gets the error when I try to access default controller. 2) He did not say I try to access psycopg2 from my controller. I take what he said to mean (statement 1) he

Re: [web2py] Using Ajax to display detail from a list

2010-04-01 Thread Thadeus Burgess
I usually do something similar. Even to the extreme of my td have an extra column. So My id usually looks like id=tablename_recordid_column And in my controllers I parse this as tablename, record_id, column = request.vars.id.split('_') -Thadeus On Thu, Apr 1, 2010 at 2:24 PM, Keith

Re: [web2py] Re: psycopg2 problem

2010-04-01 Thread Thadeus Burgess
(r252:60911, Jan 20 2010, 23:30:56) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] Same version! Extra confused now... On Apr 1, 9:42 pm, Thadeus Burgess thade...@thadeusb.com wrote: So mod_wsgi will not let you print, try this (before your db=DAL(...) statement) import sys tmp_file = open('/path

Re: [web2py] Re: Validation per object

2010-04-01 Thread Thadeus Burgess
I actually have an example for this kind of form. Say I have two Records, Person 124 and Person 532. Well come to find out, record 124 and 532 are the exact same person who signed up twice. I want to merge the two records together and leave with just one, but oh noes 532 has more up to date

Re: [web2py] Re: psycopg2 problem

2010-04-01 Thread Thadeus Burgess
! On Apr 1, 9:55 pm, Thadeus Burgess thade...@thadeusb.com wrote: And to triple make sure... from the shell printing sys.version gives exactly the same, date, revision, GCC version ? mod_wsgi was compiled with the same version of python installed? So just to make sure you only get

[web2py] session secure

2010-03-31 Thread Thadeus Burgess
Odd, we don't have a session.is_secure() -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...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

Re: [web2py] Re: session secure

2010-03-31 Thread Thadeus Burgess
return self._secure -Thadeus On Wed, Mar 31, 2010 at 12:27 PM, mdipierro mdipie...@cs.depaul.edu wrote: What would it do? Massimo On Mar 31, 12:11 pm, Thadeus Burgess thade...@thadeusb.com wrote: Odd, we don't have a session.is_secure() -Thadeus -- You received this message

Re: [web2py] Re: Survey: Functionality of the Drop Boxes widget

2010-03-30 Thread Thadeus Burgess
to close it? Massimo On Mar 24, 10:21 pm, Thadeus Burgess thade...@thadeusb.com wrote: I am not sure of the exact time frame that this was introduced (zero='', breaking backwards-compatibility) by it was only a matter of a couple of months ago, not a year. The exact date was 2010-01-03

Re: [web2py] Inserting into multiple related tables.

2010-03-30 Thread Thadeus Burgess
user_id = db.users.insert(.) contact = db.contacts.insert(user = user_id, user_recording='/hi/') So insert returns the id of the newly inserted record.. If you want the actual object of what you just inserted you need user = db.user[db.users.insert(...)] Now you can perform,

Re: [web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-30 Thread Thadeus Burgess
. This is a feature because its use is supposed to be restricted to the administrator. Users have to be trusted to expose appadmin to them. It would be better to use something ike the jqGrid plugin. On Mar 17, 3:24 am, Thadeus Burgess thade...@thadeusb.com wrote: I had actually used appadmin in production

[web2py] Stored Procedures DAL

2010-03-30 Thread Thadeus Burgess
Is it possible? -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...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Here's a theory question

2010-03-30 Thread Thadeus Burgess
How do you MVC a javascript client application? So I have web2py acting as the server, and I write a Javascript GUI (based off extjs or similar library). So of course this goes in the View files... The interesting question is that these client side js have their own MCV on top of that (models

[web2py] Re: [web2py:38402] Re: SQLFORM without tables

2010-03-30 Thread Thadeus Burgess
Of course, the decoupling would require an entire re-write of how validation/forms/filters are written... See you explain this system that each part relies on another part working a certain way... when I analyze this through my programming filter to solve this problem this is what I see... A

[web2py] Re: [web2py:38394] Re: SQLFORM without tables

2010-03-30 Thread Thadeus Burgess
I have about two or three pages in my saved drafts about this subject :) I just havn't had the time to sit down and figure out a real workable solution that can integrate into everything else web2py does. Your right, the defaults are integrated into everything, everything from default widgets

[web2py] Re: [web2py:38474] Re: template, static files, routes.py

2010-03-30 Thread Thadeus Burgess
Alright, look at this example. helloworld always gets printed, the function is not being redefined as expected. This is a simple example, but in theory I would use this for say the websites sidebar not the page title... Any suggestions I have require changes to gluon and add support for blocks.

Re: [web2py] Here's a theory question

2010-03-30 Thread Thadeus Burgess
has simplified Models with its Ext.direct stuff. How's that? -tim On 3/30/2010 1:01 PM, Thadeus Burgess wrote: How do you MVC a javascript client application? So I have web2py acting as the server, and I write a Javascript GUI (based off extjs or similar library). So of course this goes

Re: [web2py] Re: Here's a theory question

2010-03-30 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com wrote: How do you MVC a javascript client application? Here's the simple of it: An application is ... an application. Layered applications are partitioned into layers for (among other things)  a clean interface between layers. This is important

Re: [web2py] Re: zengarden anybody?

2010-03-29 Thread Thadeus Burgess
Remotely administer error tickets from your mobile phone! -Thadeus On Mon, Mar 29, 2010 at 8:12 AM, blackthorne francisco@gmail.com wrote: Hey! Nice to see this layout idea. I think I've suggested it a good while ago. One interesting thing about this approach is that you can also

Re: [web2py] Re: as_list returns an isoformated time as_dict returns a datetime.time?

2010-03-29 Thread Thadeus Burgess
I almost want to say that as long as it is still a python object it should stay python objects. That being said, we already have the datetime_to_str flag, leave the defaults as they were if someone wants it differently they can alter the flag. -Thadeus On Sun, Mar 28, 2010 at 10:09 AM,

Re: [web2py] Re: as_list returns an isoformated time as_dict returns a datetime.time?

2010-03-29 Thread Thadeus Burgess
They should both operate the same in any case. -Thadeus On Mon, Mar 29, 2010 at 12:00 PM, Thadeus Burgess thade...@thadeusb.com wrote: I almost want to say that as long as it is still a python object it should stay python objects. That being said, we already have the datetime_to_str flag

Re: [web2py] Re: Running DAL oustide web2py

2010-03-29 Thread Thadeus Burgess
Alternatively if this is just a script (like cron) or a simple program and you do not mind loading the entire web2py environment python web2py.py -S welcome -M -R /path/to/my/script.py -S denotes the app name, -M denotes execute models and -R is the path to the script to execute in the

Re: [web2py] Re: zengarden anybody?

2010-03-29 Thread Thadeus Burgess
I don't, but in any case its still a nice bargaining chip for a company iphone. -Thadeus On Mon, Mar 29, 2010 at 12:17 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: You get error tickets?  Really?!   ...     ;-) But, actually - it would be nice to get private tweets from sites

Re: [web2py] Custom 404 Pages

2010-03-29 Thread Thadeus Burgess
Now that you mention this, this is an issue. My google analytics on my blog I have noticed lots of pages being request down the rabbit hole, since I have the error redirecting. Except for overriding the template in routes, not sure how to make it look the same as the site. -Thadeus On Mon,

Re: [web2py] web2py.com down or something else?

2010-03-29 Thread Thadeus Burgess
It works for me. -Thadeus On Mon, Mar 29, 2010 at 2:03 PM, Feng huf...@gmail.com wrote: Hi, I started to learn and use web2py recently. It's a great web development framework, simple and easy to start. Though for me, starting from yesterday, web2py.com seems to be down on me. I read

[web2py] Re: Migration issue with appadmin

2010-03-28 Thread Thadeus Burgess
Here is the correct older appadmin.html http://pastebin.com/FT632P1A -Thadeus On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess thade...@thadeusb.com wrote: I just upgraded web2py, and have ran into an issue with web2py. Using an older version of appadmin, http://pastebin.com/jSnLT2Ua

Re: [web2py] Re: Migration issue with appadmin

2010-03-28 Thread Thadeus Burgess
an option in admin to 'upgrade' (copy over) appadmin.py and appadmin.html from welcome to your app. On Mar 28, 1:33 am, Thadeus Burgess thade...@thadeusb.com wrote: Here is the correct older appadmin.html http://pastebin.com/FT632P1A -Thadeus On Sat, Mar 27, 2010 at 11:35 PM, Thadeus

Re: [web2py] Re: new on web2pyslices: aggregate search

2010-03-28 Thread Thadeus Burgess
I have started storing most of those settings in the database, everything except the DAL connection string goes into a table called settings. I cache the select of the whole settings table indefinitely unless a value changes. This allows me to version control my application on google code

Re: [web2py] global name 'cx_Oracle' is not defined

2010-03-27 Thread Thadeus Burgess
I think that it means to run the source version of cx_oracle not the binary version. This would entail downloading the source of cx_Oracle and installing it into your python's site-packages. -Thadeus On Sat, Mar 27, 2010 at 10:51 AM, Jason Lotz jayl...@gmail.com wrote: I am trying to

Re: [web2py] Re: cache language files

2010-03-27 Thread Thadeus Burgess
If a language file gets updated, does the cache get cleared? How long is the cache for, is this editable? -Thadeus On Sat, Mar 27, 2010 at 9:13 AM, David Zejda d...@atlas.cz wrote: Thanks :) I'll report if I find any troubles... D. On Mar 26, 6:21 pm, mdipierro

Re: [web2py] Re: Survey: Functionality of the Drop Boxes widget

2010-03-24 Thread Thadeus Burgess
I am not sure of the exact time frame that this was introduced (zero='', breaking backwards-compatibility) by it was only a matter of a couple of months ago, not a year. The exact date was 2010-01-03 of this change, at http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/1497 Should I

[web2py] For your knowledge

2010-03-24 Thread Thadeus Burgess
http://academicearth.org/courses/building-dynamic-websites -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...@googlegroups.com. To unsubscribe from this group, send email to

Re: [web2py] Re: prepend a string to a field

2010-03-24 Thread Thadeus Burgess
hrm... for row in db(db.person.id 0).select(): row.update_record(name = row.name + x) This also will work, although not as efficient since the processing will be done in python and not the database. -Thadeus On Wed, Mar 24, 2010 at 11:10 PM, mr.freeze nat...@freezable.com wrote: This

Re: [web2py] Re: Survey: Functionality of the Drop Boxes widget

2010-03-23 Thread Thadeus Burgess
weheh, Massimo, The issue is the same for me, I have several web2py applications, each commanding over 20 forms which make use of IS_IN_SET. I am dealing with a sizable number of forms that I need to update just to fix this. The fact is that web2py changed the output of how drop boxes are

Re: [web2py] Re: Survey: Functionality of the Drop Boxes widget

2010-03-23 Thread Thadeus Burgess
to see it in whatever way you happen to see it.  I'm just offering a summary of a counterpoint for consideration. Kind regards, Yarko On Mar 23, 2:22 am, Thadeus Burgess thade...@thadeusb.com wrote: weheh, Massimo, The issue is the same for me, I have several web2py applications, each

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-22 Thread Thadeus Burgess
unless an actual default value for the field is set. This doesn't break backwards compatibility IMO because web2py wasn't controlling it before, the browser was. On Mar 21, 8:26 pm, Thadeus Burgess thade...@thadeusb.com wrote: That is not a good point. That is a interface and usability

Re: [web2py] Re: list of web hosting providers that work for web2py

2010-03-22 Thread Thadeus Burgess
Dreamhost is slow, but cheap I use slicehost and manage 3 web2py servers, couldn't be happier. I originally went with apache/mod_wsgi, however I am now migrating everything over to cherokee + uwsgi, the main selling point there being a web based management interface. -Thadeus On Mon, Mar 22,

Re: [web2py] Re: widgets in db.py

2010-03-21 Thread Thadeus Burgess
each server request. Avik On Mar 20, 2:50 pm, Thadeus Burgess thade...@thadeusb.com wrote: I typically use the following naming convention A_widgets.py B_settings.py C_web2py.py D_db.py -Thadeus On Sat, Mar 20, 2010 at 1:17 PM, mdipierro mdipie...@cs.depaul.edu wrote: models

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Thadeus Burgess
How would you propose web2py to write sql.log, or its .table files used in migrations for that matter? -Thadeus On Sun, Mar 21, 2010 at 11:32 AM, Dima Barsky d...@debian.org wrote: kaging individual applications is not easy either, there is another problem I forgot to mention. Currently

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
Massimo, I think in the post everyone agreed to make zero=None the default, and yet after at least 13 of us said to make this the default, nothing happened. The original design was (is) a good idea, but making that a default was a bad idea. Nobody had any input at the moment, but after playing

Re: [web2py] Re: Update record if different than proposed changes

2010-03-21 Thread Thadeus Burgess
I think that this functionality is more for a ORM than the DAL. There are certain features that the an ORM could actually work a layer above the DAL, such as table Auditing, django-like query syntax, many-to-many mapping/handling. Probably more. But I always vote to keep the DAL minimal, and

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
On Sun, Mar 21, 2010 at 7:55 PM, mdipierro mdipie...@cs.depaul.edu wrote: Not everybody agreed. Somebody (do not remember who) made a good point that having zero=None will case people to fill forms with with wrong values (always the first alphabetical value). On Mar 21, 7:21 pm, Thadeus Burgess

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
compatibility IMO because web2py wasn't controlling it before, the browser was. On Mar 21, 8:26 pm, Thadeus Burgess thade...@thadeusb.com wrote: That is not a good point. That is a interface and usability question, also it is a clientell question of who will be using the app. I am tired

Re: [web2py] Re: Drop boxes in 1.76.5

2010-03-21 Thread Thadeus Burgess
is set. This doesn't break backwards compatibility IMO because web2py wasn't controlling it before, the browser was. On Mar 21, 8:26 pm, Thadeus Burgess thade...@thadeusb.com wrote: That is not a good point. That is a interface and usability question, also it is a clientell question of who

[web2py] Survey: Functionality of the Drop Boxes widget

2010-03-21 Thread Thadeus Burgess
There is current on-going discussion of the default functionality of the drop boxes widget. This is an attempt to gather information from the community on this discussion. The results of this survey will determine what this default functionality will be. Here is the comparison of the two options

Re: [web2py] Re: Using the Template System to Generate Emails

2010-03-20 Thread Thadeus Burgess
cache the mail and only access it if its no longer cached? Or have a table that stores all sent mailings sent_mail - bedrijf - message You still query the database, but you have to store the info somewhere at some point in time if it is to be accessed later. -Thadeus On Sat, Mar 20,

Re: [web2py] Re: web2py on Kodingen?

2010-03-20 Thread Thadeus Burgess
Its based off of bespin -Thadeus On Sat, Mar 20, 2010 at 1:39 PM, mr.freeze nat...@freezable.com wrote: It's the former.  Once you get an account, you can create and edit projects and manage your web servers/databases/domains/etc. It looks like it is mainly centered around php but there

Re: [web2py] Re: zengarden anybody?

2010-03-20 Thread Thadeus Burgess
I envision having an app create wizard, you select a layout (based on ez-css), and then select a skin for the layout. :) -Thadeus On Sat, Mar 20, 2010 at 1:50 PM, mr.freeze nat...@freezable.com wrote: I think the ability to select a skin when creating an app would be a major plus and help

Re: [web2py] Re: web2py beautification

2010-03-20 Thread Thadeus Burgess
easy negative margin ?? easy 50 % width ?? I agree, I wish the class names were more human, OTOH, with only a handful of classes it is not much to learn. -Thadeus On Sat, Mar 20, 2010 at 6:57 PM, Pepe pepea...@gmail.com wrote: i'm designer and before of that a human being, so i wonder:

Re: [web2py] Re: zengarden anybody?

2010-03-20 Thread Thadeus Burgess
how to accomplish some standard naming, and now to switch css to affect things That by itself is quite useful - and worth (for me at least) more closely... On Mar 20, 1:53 pm, Thadeus Burgess thade...@thadeusb.com wrote: I envision having an app create wizard, you select a layout (based

Re: [web2py] Re: Does the pdf manual differ from the online official web2py book a lot?

2010-03-19 Thread Thadeus Burgess
New web2py features added to the online book, so you will miss certain things, since the PDF book is about a year old now, whereas the online book is being added to and expanded. -Thadeus On Fri, Mar 19, 2010 at 8:12 AM, mdipierro mdipie...@cs.depaul.edu wrote: One month ago they were

Re: [web2py] Re: Does the pdf manual differ from the online official web2py book a lot?

2010-03-19 Thread Thadeus Burgess
Speaking of this. Massimo can we get a latest update feed for the online book, to make it easier to keep track of new things? -Thadeus On Fri, Mar 19, 2010 at 9:44 AM, Thadeus Burgess thade...@thadeusb.com wrote: New web2py features added to the online book, so you will miss certain things

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
There is a conspiracy that the google bot reduces the page ranking if it uses a table layout instead of css layout. I don't believe it though, since why would google NOT index something? The limitations of tables mean you can't reorganize your content, that is the beauty of css, you can take the

Re: [web2py] legacy databases

2010-03-19 Thread Thadeus Burgess
You need to define your tables in web2py. As of yet there is no db introspection for db. db.define_table('tablename', *Fields) There is also a thing called keyedtables which is for legacy databases. -Thadeus On Fri, Mar 19, 2010 at 10:44 AM, pacopyc paco...@gmail.com wrote: Hi, I need to

Re: [web2py] web2py api search - edit_area plugin

2010-03-19 Thread Thadeus Burgess
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() -Thadeus On Fri, Mar 19, 2010 at 12:22 PM, Wes James compte...@gmail.com

Re: [web2py] Re: best web frameworks

2010-03-19 Thread Thadeus Burgess
quick! everyone, comment good things about web2py! -Thadeus On Fri, Mar 19, 2010 at 12:46 PM, selecta gr...@delarue-berlin.de wrote: hmmm, what do I learn from that? What should I use they are all the same (oh yes different licenses and dependencies on different py versions) or is this

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
Maybe the next version of CSS... but as long as IE is around, growth of web standards will always be stunted. -Thadeus On Fri, Mar 19, 2010 at 12:59 PM, Jonathan Lundell jlund...@pobox.com wrote: On Mar 19, 2010, at 8:46 AM, Thadeus Burgess wrote: Its really not hard, and the box model

Re: [web2py] Re: Using the Template System to Generate Emails

2010-03-19 Thread Thadeus Burgess
The reason is because the content type is encoded as Text not HTML. Without the proper meta information sent to the SMTP server, emails will not display correctly. Use the following class lined out in the wiki, works like a charm.

Re: [web2py] Re: web2py beautification

2010-03-19 Thread Thadeus Burgess
The whole UI paradigm is a pain, regardless of what programming language or platform. Windows Forms makes it easy, but still archaic. -Thadeus On Fri, Mar 19, 2010 at 2:41 PM, Jonathan Lundell jlund...@pobox.com wrote: On Mar 19, 2010, at 11:18 AM, Thadeus Burgess wrote: Maybe the next

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Thadeus Burgess
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 On Fri, Mar 19, 2010 at 2:49 PM, howesc how...@umich.edu wrote: Hello, I swear i saw a post in the last week about

Re: [web2py] substring comparison in GAE query

2010-03-19 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com 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 this message because you are subscribed to the Google

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

2010-03-19 Thread Thadeus Burgess
Make sure that you have `python-mysqldb` installed on the server. traductor Google: Asegúrese de que tiene `python-MySQLdb` instalado en el servidor. -Thadeus On Fri, Mar 19, 2010 at 4:05 PM, kike eacarm...@estudiantes.uci.cu wrote: te refieres a uno del apache en especifico, porque la

Re: [web2py] Re: web2py beautification

2010-03-18 Thread Thadeus Burgess
ez-css + jquery-ui It is the only proposed option I actually like. -Thadeus On Thu, Mar 18, 2010 at 1:54 PM, Mengu whalb...@gmail.com wrote: i agree. i actually don't have any problem with jquery-ui since i'm doing all my js work with jquery. ez-css seems cool yet it's hard to implement

Re: [web2py] Re: Feature request: xlstoweb2py [was: Where do you use web2py?]

2010-03-17 Thread Thadeus Burgess
I had actually used appadmin in production for a particular database for several months. The users were the same as you are describing (end-user, used to excel). Now that it is time to give them the real app (as appadmin was just a quick get us up and running)... they are actually sad to see us

Re: [web2py] Re: Migrating web2py to GAE

2010-03-17 Thread Thadeus Burgess
Does the GAE SSL certificate compatible with google checkout? The snag with using plugin google checkout level 2 integration is the need for a $80/year SSL certificate :( -Thadeus On Wed, Mar 17, 2010 at 11:10 AM, mdipierro mdipie...@cs.depaul.edu wrote: replace http://... with

<    1   2   3   4   5   6   7   8   9   10   >