Re: [web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread Thadeus Burgess
Why not attach the wizard data to the session? -- Thadeus On Sat, Oct 23, 2010 at 1:11 PM, mart msenecal...@gmail.com wrote: Hi Massimo, Yeah, I guess it was kid of late... I'll try again, in shorter version (or at least in less badly organized thoughts): * great wizard. options are

Re: [web2py] Dynamically adding items to search for...

2010-10-22 Thread Thadeus Burgess
) -- Thadeus On Fri, Oct 22, 2010 at 12:45 PM, Jason Brower encomp...@gmail.com wrote: WOAH ! That was cool! BR, Jason On Fri, 2010-10-22 at 12:15 -0500, Thadeus Burgess wrote: qry = db() for token in request.vars.value.split(' '): qry = qry(db.furniture.category.upper().like

Re: [web2py] Re: Dynamically adding items to search for...

2010-10-22 Thread Thadeus Burgess
The only problem is the join syntax with the DAL. The DAL expects you to pass the join alongside .select(). Thats a problem if you need to have multiple FULL OUTER JOINS for example. Say your looking for people who have an open invoice and have not paid within 90 days and they have an appointment

Re: [web2py] Re: Supporters of the current logo concept

2010-10-22 Thread Thadeus Burgess
I think we just need one more stage of logo submissions and then voting (voting can only happen after the submission deadline), then there is a voting deadline. But not voting while submission is still happening. This time we have a constraint though. Take the top 3/4 performing logos, and then

Re: [web2py] Re: Supporters of the current logo concept

2010-10-22 Thread Thadeus Burgess
at 3:10 PM, cjrh caleb.hatti...@gmail.com wrote: On Oct 22, 9:20 pm, Thadeus Burgess thade...@thadeusb.com wrote: I think we just need one more stage of logo submissions and then voting (voting can only happen after the submission deadline), then there is a voting deadline. How is it you all

Re: [web2py] Re: web2py wizard (alpha) is here

2010-10-21 Thread Thadeus Burgess
This is the vision of web2py coming into fruition! -- Thadeus On Thu, Oct 21, 2010 at 5:17 PM, Anthony av201...@yahoo.com wrote: On Oct 21, 5:46 pm, Timmie timmichel...@gmx-topmail.de wrote: I also did not understand in the video how the table was pre-populated that quickly. Please

Re: [web2py] Re: Stand Alone DAL and migrations (again)

2010-10-20 Thread Thadeus Burgess
In my experience the dal.py does not work stand alone, however sql.py does. Table migrations have always worked for me when using standalone. -- Thadeus On Wed, Oct 20, 2010 at 9:58 AM, Bruno Rocha rochacbr...@gmail.com wrote: did you specified both migrate and fake_migrate ? 2010/10/20

Re: [web2py] Re: Stand Alone DAL and migrations (again)

2010-10-20 Thread Thadeus Burgess
recent call last): File stdin, line 1, in module File /bin/DAL/gluon/sql.py, line 1346, in define_table raise SyntaxError, 'invalid table name: %s' % tablename SyntaxError: invalid table name: track 2010/10/20 Thadeus Burgess thade...@thadeusb.com In my experience the dal.py does

Re: [web2py] Re: Stand Alone DAL and migrations (again)

2010-10-20 Thread Thadeus Burgess
with a '_name', so they dont get confused. I.e. myVar_name = str(some_object) -- 'className_is_still_a_string_but_this_worked' had no issues since. Mart :) On Oct 20, 11:12 am, Thadeus Burgess thade...@thadeusb.com wrote: In my experience the dal.py does not work stand alone, however

Re: [web2py] Re: Vote for a new logo

2010-10-14 Thread Thadeus Burgess
You really should remove the names of who voted for what. It creates a bias towards certain logos for new people to vote. The logos should also be randomized every time the page is refreshed to reduce the bias as well. -- Thadeus On Thu, Oct 14, 2010 at 7:37 AM, Carl carl.ro...@gmail.com

Re: [web2py] Re: Vote for a new logo

2010-10-14 Thread Thadeus Burgess
Not if you want the votes to be scientifically valid. Otherwise there are biases in the results. I have experience working with surveys and research questions. I feel that any kind of poll falls into that category. For a true and accurate representation of a logos popularity you MUST randomize

Re: [web2py] Re: Vote for a new logo

2010-10-14 Thread Thadeus Burgess
Not to mention its not fair to new logos that get posted that they are at the bottom. -- Thadeus On Thu, Oct 14, 2010 at 3:18 PM, Bruno Rocha rochacbr...@gmail.com wrote: The font used in LOGO #31 is really cool, that would be good with a bigger 2 insted a heart. @DenesL what font is

Re: [web2py] Re: Vote for a new logo

2010-10-14 Thread Thadeus Burgess
select(orderby='random') How long have you been keeping this a secret from us!? -- Thadeus On Thu, Oct 14, 2010 at 5:05 PM, mdipierro mdipie...@cs.depaul.edu wrote: select(orderby='random')

Re: [web2py] Re: running web2py on Android?

2010-10-14 Thread Thadeus Burgess
You will need to root the android, install a real shell like bash, install dev tools, install python, create an app that will launch a web2py app. -- Thadeus On Thu, Oct 14, 2010 at 8:53 PM, Bruno Rocha rochacbr...@gmail.com wrote: N810 - http://www.youtube.com/watch?v=s0fsjGVIGPU

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Thadeus Burgess
What if web and py were orange? -- Thadeus On Wed, Oct 13, 2010 at 12:33 AM, Bruno Rocha rochacbr...@gmail.com wrote: The problem is that it always depends on background to work, look. 2010/10/13 Thadeus Burgess thade...@thadeusb.com I still like Solies original option B. It matches

Re: [web2py] Re: please help us test new web site

2010-10-13 Thread Thadeus Burgess
This: http://web2py.googlegroups.com/attach/c0cff2eb36f8bc99/top_tom.png?gda=ncp0fEYAAAB9SGvuY0G8kMBOAHaCkszGUG-9s86A8yQkdbdpo_zDdCIi-oe91wIf3_pqKxOm7B9x40jamwa1UURqDcgHarKEE-Ea7GxYMt0t6nY0uV5FIQview=1part=4 -- Thadeus On Wed, Oct 13, 2010 at 8:40 AM, Anthony av201...@yahoo.com wrote: The

Re: [web2py] Re: Vote for a new logo

2010-10-13 Thread Thadeus Burgess
That is awesome Buno! Kudos! -- Thadeus On Wed, Oct 13, 2010 at 4:33 PM, Bruno Rocha rochacbr...@gmail.com wrote: No need for posting background, just logo. Background will be added automatically. 2010/10/13 Bruno Rocha rochacbr...@gmail.com Martin Mulone made the logovote

Re: [web2py] Re: Vote for a new logo

2010-10-13 Thread Thadeus Burgess
Could someone please make a number 9 with a font that does not squish the letters together? -- Thadeus On Wed, Oct 13, 2010 at 4:37 PM, Thadeus Burgess thade...@thadeusb.comwrote: That is awesome Buno! Kudos! -- Thadeus On Wed, Oct 13, 2010 at 4:33 PM, Bruno Rocha rochacbr

Re: [web2py] Re: Vote for a new logo

2010-10-13 Thread Thadeus Burgess
Can you change your vote? -- Thadeus On Wed, Oct 13, 2010 at 5:38 PM, Bruno Rocha rochacbr...@gmail.com wrote: Just have to change the query, ordering by the most voted first. 2010/10/13 mdipierro mdipie...@cs.depaul.edu really nice app by the way. thanks Martin On Oct 13, 4:17 pm,

Re: [web2py] Re: Vote for a new logo

2010-10-13 Thread Thadeus Burgess
Yes you can, sorry, just looked at the site again and noticed it. -- Thadeus On Wed, Oct 13, 2010 at 7:23 PM, Thadeus Burgess thade...@thadeusb.comwrote: Can you change your vote? -- Thadeus On Wed, Oct 13, 2010 at 5:38 PM, Bruno Rocha rochacbr...@gmail.comwrote: Just have

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Thadeus Burgess
B -- Thadeus On Tue, Oct 12, 2010 at 12:49 AM, mdipierro mdipie...@cs.depaul.edu wrote: I think we need an app just to post logos and a page to show them all. Even if only one of the logos will be used for the web page there are so many great ideas and I'd hate for them to go wasted.

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Thadeus Burgess
That is why I like logo B. It puts emphasis on the 2. Logo B with the new color scheme. Though I do like the orange in small quantities! -- Thadeus On Tue, Oct 12, 2010 at 11:26 AM, mdipierro mdipie...@cs.depaul.edu wrote: The problem is we already have lots of unintentional brand confusion

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Thadeus Burgess
byhttp://www.crowdspring.com/we gonna have to pay at least $200 Enviado via iPhone Em 12/10/2010, às 13:41, Thadeus Burgess thade...@thadeusb.com escreveu: That is why I like logo B. It puts emphasis on the 2. Logo B with the new color scheme. Though I do like the orange in small

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Thadeus Burgess
style and color scheme. 2010/10/12 Thadeus Burgess thade...@thadeusb.com A survey with attached images of logo designs as the question text? Select your fav We just need to gather all of the logos in one place. but I think first we need to come to a consensus of what we want the logo

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Thadeus Burgess
I still like Solies original option B. It matches simplified, no shadows, two colors, and a normal font. The font on the currently selected logo looks odd. It just doesn't feel like the right thing for web2py. I think the roundedness of the font makes it seem more childish in a sense. -- Thadeus

Re: [web2py] Re: please help us test new web site

2010-10-11 Thread Thadeus Burgess
? I am working on new ideas for the logo, small changes. Enviado via iPhone Em 10/10/2010, às 14:21, Thadeus Burgess thade...@thadeusb.com escreveu: I think the w is redundant in the logo. It just looks funny. What if the logo was just the user icon in the middle

Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Thadeus Burgess
I think the w is redundant in the logo. It just looks funny. What if the logo was just the user icon in the middle? -- Thadeus On Sun, Oct 10, 2010 at 8:04 AM, johntynan jgty...@gmail.com wrote: Great work with the new web2py site!  I like how well the top and right hand navigation is

Re: [web2py] Re: please help us test new web site

2010-10-10 Thread Thadeus Burgess
: I did not understand your suggestion, what user icon? Are you saying to remove web2py leaving just the WP or removing the big W leaving just the P? I am working on new ideas for the logo, small changes. Enviado via iPhone Em 10/10/2010, às 14:21, Thadeus Burgess thade...@thadeusb.com

Re: [web2py] Re: tip of the day: how to make a ON/OFF toggle button to represent a boolean field

2010-10-07 Thread Thadeus Burgess
You should modify this a little bit to turn any boolean checkbox into this. The javascript will hide the checkbox and replace it with this custom widget, but since the checkbox still exists on the DOM it works on any form. -- Thadeus On Thu, Oct 7, 2010 at 2:14 PM, mdipierro

Re: [web2py] Re: tip of the day: how to make a ON/OFF toggle button to represent a boolean field

2010-10-07 Thread Thadeus Burgess
How about this... It allows to use it in any normal form, you still have to press the submit button, but it means no security issues. It also downgrades gracefully if the client does not have javascript $(document).ready(function() { $('.boolean').each(function() { var on_off;

[web2py] Dreamhost wants you to sell your app to them for 1-click install

2010-10-06 Thread Thadeus Burgess
http://www.dreamhost.com/hosting-oneclick-installer-submitter.cgi Maybe they can put together something for web2py? -- Thadeus

Re: [web2py] Nice Hosting Company Option

2010-10-05 Thread Thadeus Burgess
slicehost is owned by rackspace and uses their same datacenters. If you need a VPS solution instead of a cloud solution. Honestly though, cloud and VPS are the exact same thing, just billed differently. -- Thadeus On Tue, Oct 5, 2010 at 5:26 PM, Bruno Rocha rochacbr...@gmail.com wrote: Do

Re: [web2py] Re: Learning Management System survey

2010-09-28 Thread Thadeus Burgess
Don't copy any of those former systems do. As a student, I have a great disdain for webct, moodle, and the ilk. These are the key features from a students perspective. 1. Time spent on it. I want to spend as little time as possible on the site so I can get back to being lazy. All I care about

Re: [web2py] Re: import_from_csv_file looses reference, if it references the record it belongs to

2010-09-26 Thread Thadeus Burgess
Write a custom csv importer. use the code in gluon as an example for parsing. During the initial import, set the reference to None. While importing, keep a dictionary in memory that can hold all needed references to a record. After import, commit, and then go through your dictionary fixing all of

Re: [web2py] Re: import_from_csv_file looses reference, if it references the record it belongs to

2010-09-26 Thread Thadeus Burgess
...@cs.depaul.edu wrote: This is a good idea. This could also be used to fix 'list:reference' On Sep 26, 1:26 am, Thadeus Burgess thade...@thadeusb.com wrote: Write a custom csv importer. use the code in gluon as an example for parsing. During the initial import, set the reference to None. While importing

Re: [web2py] Re: Export content as .xlsx

2010-09-21 Thread Thadeus Burgess
support for office 2007 formats is the biggest thing. ODF format http://www.linuxjournal.com/article/9347 -- Thadeus On Tue, Sep 21, 2010 at 12:30 PM, Tim Michelsen timmichel...@gmx-topmail.de wrote: I am using XlsXcessive to export content from my web2py apps to .xlsx  

Re: [web2py] Yet an improved conference management system

2010-09-18 Thread Thadeus Burgess
Very impressive. Good job! -- Thadeus On Sat, Sep 18, 2010 at 1:12 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://code.google.com/p/conf2py/ can you try run it and check if you run into any setup/intallation issues?

Re: [web2py] Re: Expoerting then importing isn't working...

2010-09-02 Thread Thadeus Burgess
Easy. db.export_to_csv(...) db.import_from_csv(...) This will export all tables. There just is not an interface to do this in appadmin. I think I have some examples... here http://code.google.com/p/blogitizor/source/browse/src/controllers/admin.py -- Thadeus On Thu, Sep 2, 2010 at 7:09

Re: [web2py] Has anyone used standalone web2py DAL in a project ?

2010-08-27 Thread Thadeus Burgess
. DON'T DO IT! The DAL is ment for functional programming... so be careful if you have to use it in a class based system. Plus you will have to have your stand alone application manage the .table files too. Just keep it in mind. In any case... You will need. gluon/LICENSE gluon/sql.py

Re: [web2py] How may I revoked a user logged in server side

2010-08-26 Thread Thadeus Burgess
Two ways, delete their session file... unless you know their IP it might be hard to find the right one, so if its ok just delete them all. The other way is a design thing. Add a column to the auth_user table that says force_logout that is a boolean type. If you just flag that to true, make the

Re: [web2py] Re: Web2py with barcode Reader

2010-08-25 Thread Thadeus Burgess
I use this already in a system that uses a magnetic card reader to scan various magnetic cards into the system using jQuery and ajax communications with the server. Alongside some python code to parse the incoming data using some regex magic to place the data into variables. So it *can* be done.

Re: [web2py] Re: display rows with different color

2010-08-18 Thread Thadeus Burgess
or user jQuery(document).ready(function(){ *put code here }); That will get executed when all of the DOM has loaded on the page. -- Thadeus On Wed, Aug 18, 2010 at 10:19 AM, dlin dlin...@gmail.com wrote: I solved the problem by myself. in my view file scriptjQuery(#mytable

Re: [web2py] Re: blocks included displayed twice.

2010-08-14 Thread Thadeus Burgess
You also have the ability to call {{super}} or {{super block}} to include the contents of a parent block. Personally, I use them all the time now. -- Thadeus On Sat, Aug 14, 2010 at 9:09 AM, Lionel Barret lionel.bar...@gmail.com wrote: t to downplay the work done. Other may find it

Re: [web2py] Re: Behaviour of extend/layouts changed in 1.82.1?

2010-08-14 Thread Thadeus Burgess
something that worked 'by chance' and the new version caught me out. :) Thanks for the tip - I'll try it. Paul G On Aug 13, 5:30 pm, Thadeus Burgess thade...@thadeusb.com wrote: Odd... it should *technically* extend from the last seen version of extend regardless of where it is located

Re: [web2py] blocks included displayed twice.

2010-08-13 Thread Thadeus Burgess
Its a design feature. In the original design talks of the new layout it was decided blocks should be ignored/not supported for included templates. Mainly because it is not obvious how the dependencies between index.html, layout.html and includes.html should be handled, which block definition gets

Re: [web2py] Behaviour of extend/layouts changed in 1.82.1?

2010-08-13 Thread Thadeus Burgess
Odd... it should *technically* extend from the last seen version of extend regardless of where it is located. Also, I don't understand how this worked pre 1.80 either. The templates are parsed before any of the python statements are even known or executed, this just should have never worked. I

Re: [web2py] Re: I fixed a bug in web2py!

2010-08-13 Thread Thadeus Burgess
w00t -- Thadeus On Fri, Aug 13, 2010 at 11:52 AM, Jason Brower encomp...@gmail.com wrote: It was 'insert new' and now it's 'insert new ' Small one, but important for that polished look. BR, Jason Brower On Fri, 2010-08-13 at 09:39 -0700, mdipierro wrote: Sorry. I do not see the

Re: [web2py] Parameters GET or POST.

2010-08-13 Thread Thadeus Burgess
request.post_vars request.get_vars request.vars -- Thadeus On Fri, Aug 13, 2010 at 10:49 PM, FERNANDO VILLARROEL fvillarr...@yahoo.com wrote: Dear All. How i can pass parameters between forms with POST or GET? Regards.

Re: [web2py] Re: IMPORTANT: new in trunk list:reference

2010-08-12 Thread Thadeus Burgess
ew jaywalking should never be a replacement for joins... -- Thadeus On Thu, Aug 12, 2010 at 2:42 AM, mdipierro mdipie...@cs.depaul.edu wrote: Yes, if you use any validator IS_IN_SET or IS_IN_DB with multiple=True I think it is still very convenient and can simplify some of your code.

Re: [web2py] Re: Can you share some web2py performance info?

2010-08-12 Thread Thadeus Burgess
Thank god I'm not the only one =) -- Thadeus On Thu, Aug 12, 2010 at 10:35 AM, mdipierro mdipie...@cs.depaul.edu wrote: There numbers are more typical. Consider that those example page also have a db connection and load/store sessions. I do not understand the 30% fail requests on form

Re: [web2py] Re: web2py FORM, concurrency and failed requests

2010-08-12 Thread Thadeus Burgess
In my testings the errors were actually 500 internal server errors, not content length issues. These pages were dynamic in that they returned information from the database, but it was always the exact same 10 records. The content length was not one of the reported failed requests types. I can even

Re: [web2py] Re: IMPORTANT: new in trunk list:reference

2010-08-12 Thread Thadeus Burgess
that are actually designed for this? ARRAY comes to mind. -- Thadeus On Thu, Aug 12, 2010 at 12:42 PM, mdipierro mdipie...@cs.depaul.edu wrote: True but joins are expensive. Massimo On Aug 12, 11:10 am, Thadeus Burgess thade...@thadeusb.com wrote: ew jaywalking should never be a replacement

Re: [web2py] Re: web2py FORM, concurrency and failed requests

2010-08-12 Thread Thadeus Burgess
10 -- Thadeus On Thu, Aug 12, 2010 at 5:10 PM, mdipierro mdipie...@cs.depaul.edu wrote: What about pool_size? On Aug 12, 2:21 pm, Thadeus Burgess thade...@thadeusb.com wrote: postgresql, 10, tickets consist of IOErrors and then the WSGI/apache logs also have various errors related

Re: [web2py] High memory usage of web2py

2010-08-11 Thread Thadeus Burgess
Thats less than a MB. I don't see why you are complaining =P Typically my web2py instances all run around 75MB, with a max of 150MB under heavy traffic load. It also depends on how much your caching or how big your select queries are. -- Thadeus On Wed, Aug 11, 2010 at 8:20 AM, Frank

Re: [web2py] High memory usage of web2py

2010-08-11 Thread Thadeus Burgess
have to devote the resources to actually importing that module when a client requests a page. If you comment out the calls to the import_all module, it will reduce the initial memory usage. -- Thadeus On Wed, Aug 11, 2010 at 9:32 AM, Thadeus Burgess thade...@thadeusb.com wrote: Thats less than

Re: [web2py] High memory usage of web2py

2010-08-11 Thread Thadeus Burgess
Looks typical to me. Mind you, running web2py.py also loads up the standalone rocket webserver. -- Thadeus On Wed, Aug 11, 2010 at 9:59 AM, Frank Church vfcli...@gmail.com wrote: On 11 August 2010 15:38, Thadeus Burgess thade...@thadeusb.com wrote: There is the ability to reduce memory

Re: [web2py] Re: New server

2010-08-10 Thread Thadeus Burgess
:33 am, Thadeus Burgess thade...@thadeusb.com wrote: Just make sure to follow ALL of the web2py performance enhancements. * Compile the app * Sessions to database * Make sure all database tables are designed to be thread safe (ie: don't do things like this... db.table.insert(myid=db

Re: [web2py] New server

2010-08-09 Thread Thadeus Burgess
I use Ubuntu, Apache, Python 2.6, PostgreSQL, mod_wsgi. For the love of god don't use CentOS for python web applications. Just make sure to follow ALL of the web2py performance enhancements. * Compile the app * Sessions to database * Make sure all database tables are designed to be thread safe

Re: [web2py] Re: New server

2010-08-09 Thread Thadeus Burgess
I guess the key is, no CentOS with apache/mod_wsgi. Can't comment on other webservers since I never tried them with CentOS... just Apache. -- Thadeus On Mon, Aug 9, 2010 at 9:49 AM, Vasile Ermicioi elff...@gmail.com wrote: I use CentOS + python2.7 + web2py + gevent.pywsgi works great, I

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Thadeus Burgess
As far as contributions go, you will just be sending diff files in. As long as your diff is clean it should not matter what is in your repository. Massimo does not use the hg import/export commands so you don't even need to commit any contributions to your local version anyways. -- Thadeus

Re: [web2py] Re: New server

2010-08-09 Thread Thadeus Burgess
Does it have Plesk or a similar control panel installed? -- Thadeus On Mon, Aug 9, 2010 at 10:46 AM, mdipierro mdipie...@cs.depaul.edu wrote: I have a machine with configuration (somebody set it up for me and it seesm to work). On Aug 9, 10:00 am, Thadeus Burgess thade...@thadeusb.com

Re: [web2py] Re: Conditional menu

2010-08-09 Thread Thadeus Burgess
Something Ive learned. if you build your menus based on the group permissions, make sure they are logged in too. if auth.is_logged_in() and auth.has_permission('admin', auth.user.id): admin menu elif auth.is_logged_in() user menu else: guest menu -- Thadeus On Mon, Aug 9, 2010 at

Re: [web2py] Managing routes.py with mercurial checkout

2010-08-09 Thread Thadeus Burgess
Yes. I have one checkout that I always keep at the latest version. Its easy since I just clone the tagged revisions from mercurial. I simlink all of my applications to this single web2py instance. If I need to work on web2py, I clone a brand new repository from tip and then begin working. If I

Re: [web2py] Re: New server

2010-08-09 Thread Thadeus Burgess
That might be why I had so much difficulty with CentOS. -- Thadeus On Mon, Aug 9, 2010 at 12:14 PM, mdipierro mdipie...@cs.depaul.edu wrote: no On Aug 9, 11:45 am, Thadeus Burgess thade...@thadeusb.com wrote: Does it have Plesk or a similar control panel installed? -- Thadeus On Mon

Re: [web2py] Re: Python and ZK

2010-08-09 Thread Thadeus Burgess
It should still be fixed, the regex patterns did not get changed. -- Thadeus On Mon, Aug 9, 2010 at 12:19 PM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 9, 2010, at 10:14 AM, mdipierro wrote: You can but Jython has some regex problems it inherits from Java that SUN refused to fix.

Re: [web2py] testing app-specific routing

2010-08-09 Thread Thadeus Burgess
Where is the documentation on how to use it? -- Thadeus On Mon, Aug 9, 2010 at 5:43 PM, Jonathan Lundell jlund...@pobox.com wrote: Has any tried the new app-specific routing in the trunk? Plan to try it soon?

Re: [web2py] routes_in 153, me 0

2010-08-08 Thread Thadeus Burgess
('.*:https?://dashboard\.thadeusb\.com:.* /admin(?Pany.*)', '/admin\gany'), ('.*:https?://thadeusb\.com:.* /(?Pcontroller.*)', '/blogitizor/\gcontroller'), This is what I am currently using. -- Thadeus On Sun, Aug 8, 2010 at 7:10 PM, Andrew Thompson andre...@aktzero.com wrote:  I can

Re: [web2py] routes_in 153, me 0

2010-08-08 Thread Thadeus Burgess
The routes.example.py contains some unit tests. I have found this to be the most effective way of testing my routes to make sure they do what I want. -- Thadeus On Sun, Aug 8, 2010 at 7:30 PM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 8, 2010, at 5:10 PM, Andrew Thompson wrote: I

Re: [web2py] problem with boolean field in SQLFORM.factory

2010-08-06 Thread Thadeus Burgess
Try form.vars instead. -- Thadeus On Fri, Aug 6, 2010 at 4:17 PM, marcelielapointe marcelielapoi...@gmail.com wrote: Hi, I want to acces request.vars.name_of_my_field, with request.vars['name_of_my_field'] with boolean field but if the field is unchecked (false) I got a KeyError like if

Re: [web2py] Re: Feed Creator - Showcase

2010-08-06 Thread Thadeus Burgess
It fails when I point it to my website. thadeusb.com. Cool concept though. -- Thadeus On Fri, Aug 6, 2010 at 8:26 PM, Lasiaf fai...@altlimit.com wrote: I used urllib to get html stuff, then used gluon.html TAG for the filtering jQuery style. Here are some of problems I encountered while

Re: [web2py] accessing the db from a module

2010-08-03 Thread Thadeus Burgess
The only way is if you pass the dal instance as an argument to your function calls. do_something(db) a_class = MyClass(db, request, response) -- Thadeus On Tue, Aug 3, 2010 at 6:04 PM, sethford sethfor...@gmail.com wrote: Is there is a way to access the db from a module? I know you can

Re: [web2py] crud + custom form broken?

2010-08-03 Thread Thadeus Burgess
crud.select is not a form. it is an SQLTABLE. You probably ment, form = crud.create(db.Dinners), or form = crud.update(db.Dinners, id) -- Thadeus On Tue, Aug 3, 2010 at 10:16 PM, Rob r...@rmdashr.com wrote: web2py Version 1.81.5 (2010-07-22 23:56:21) def index():    rows =

Re: [web2py] Debugging view template logic

2010-08-02 Thread Thadeus Burgess
The template system actually emits an error that says Missing pass in view or too many pass in view. This has to do with cron / rocket failing, nothing to do with template. -- Thadeus On Mon, Aug 2, 2010 at 10:57 AM, Michael Ellis michael.f.el...@gmail.com wrote: One of my views has a

Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Thadeus Burgess
pass statements.   I'll try to create a minimal example to post here. On Aug 2, 12:13 pm, Thadeus Burgess thade...@thadeusb.com wrote: The template system actually emits an error that says Missing pass in view or too many pass in view. This has to do with cron / rocket failing, nothing to do

Re: [web2py] Re: Debugging view template logic

2010-08-02 Thread Thadeus Burgess
the client. If it's possible to cause that from a view, then hopefully it'll be possible to catch the error earlier and raise a more helpful exception. On Aug 2, 12:13 pm, Thadeus Burgess thade...@thadeusb.com wrote: The template system actually emits an error that says Missing pass

Re: [web2py] Re: rewrite url using routes.py

2010-08-01 Thread Thadeus Burgess
Don't forget routes out routes_out = ( ('/(.*)/(.*)/(.*)', '/$3'), ) -- Thadeus On Sun, Aug 1, 2010 at 1:16 AM, Vasile Ermicioi elff...@gmail.com wrote: oops, not like that but like this routes_in = (     ('/(.*)/(.*)',   '/$1/yourcontroller/$2'), ) everything is passed to a

Re: [web2py] Re: block problem in 1.81.5

2010-08-01 Thread Thadeus Burgess
a block inside of the report? -- Thadeus On Sun, Aug 1, 2010 at 4:50 AM, mdipierro mdipie...@cs.depaul.edu wrote: What is a block of reports? On Aug 1, 12:50 am, Thadeus Burgess thade...@thadeusb.com wrote: obviously something about no definition for a block of reports =/ -- Thadeus

Re: [web2py] Re: OT: email notifications on repo change?

2010-08-01 Thread Thadeus Burgess
I currently use Feed My Inbox and have it pointed at the web2py commit stream RSS. Its nice to get daily updates of what gets changed. -- Thadeus On Sun, Aug 1, 2010 at 3:15 PM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 1, 2010, at 1:03 PM, Tim Michelsen wrote: Alternatively, as

Re: [web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Thadeus Burgess
I must point out on the testing standpoint: http://packages.python.org/web2py_utils/test_runner.html -- Thadeus On Sun, Aug 1, 2010 at 5:10 PM, mdipierro mdipie...@cs.depaul.edu wrote: This was my response. It is awaiting moderation: Hello Ahmed. Nice article. A few comments: web2py

Re: [web2py] Re: block problem in 1.81.5

2010-08-01 Thread Thadeus Burgess
mean if i wrote {{block some}}{{end}} in template. Web2py raise an error saying that the block keyword is not defined. On 2 August 2010 01:28, Thadeus Burgess thade...@thadeusb.com wrote: a block inside of the report? -- Thadeus On Sun, Aug 1, 2010 at 4:50 AM, mdipierro mdipie

Re: [web2py] Re: new syntax in trunk, please check it

2010-07-31 Thread Thadeus Burgess
If there are multiple records we need to know about it =/ -- Thadeus On Sat, Jul 31, 2010 at 11:36 AM, mdipierro mdipie...@cs.depaul.edu wrote: No. Only the first. Massimo On Jul 31, 10:50 am, David Marko dma...@tiscali.cz wrote: ### print db.person(name='john') Does it also return

Re: [web2py] Re: fun with metaclasses

2010-07-31 Thread Thadeus Burgess
The book is not released as open source. Massimo can only post it online through a loophole with his publisher. any community based documentation will need to be started from the ground up, and not taking anything from the book. -- Thadeus On Sat, Jul 31, 2010 at 12:56 PM, Scott

Re: [web2py] Re: Getting Eclipse / Pydev running

2010-07-31 Thread Thadeus Burgess
Something wrong with your setup, probably due to the fact your on a Mac, they are not the friendliest for python development. Have you tried installing the official python .dmg from python.org? -- Thadeus On Sat, Jul 31, 2010 at 12:05 PM, pabloest pab...@gmail.com wrote: Thanks, Rob.

Re: [web2py] Re: block problem in 1.81.5

2010-07-31 Thread Thadeus Burgess
. On Sat, Jul 31, 2010 at 2:52 AM, mdipierro mdipie...@cs.depaul.edu wrote: ? On Jul 31, 1:02 am, BearXu bearx...@gmail.com wrote: report block is not defined

Re: [web2py] Re: Getting Eclipse / Pydev running

2010-07-31 Thread Thadeus Burgess
PM, pabloest pab...@gmail.com wrote: Hi Thadeus, Yes, I tried that also. Same result. Pablo On Jul 31, 11:48 am, Thadeus Burgess thade...@thadeusb.com wrote: Something wrong with your setup, probably due to the fact your on a Mac, they are not the friendliest for python development. Have

Re: [web2py] Re: Why I hate Django by Cal Henderson

2010-07-31 Thread Thadeus Burgess
@Scott, I think your argument is based on assuming a bad programming design. If you have any type of data that needs to be secure to that detail, I hope to god your not storing them in the session in the first place! I mean, if I somehow copy your sites cookie from a user, I now have access to the

Re: [web2py] Re: Why I hate Django by Cal Henderson

2010-07-31 Thread Thadeus Burgess
that the least amount should be stored (and in any case, less than the 4k limit). On Jul 31, 8:38 pm, Thadeus Burgess thade...@thadeusb.com wrote: @Scott, I think your argument is based on assuming a bad programming design. If you have any type of data that needs to be secure to that detail, I hope

Re: [web2py] Re: new syntax in trunk, please check it

2010-07-31 Thread Thadeus Burgess
smells fishy -- Thadeus On Sat, Jul 31, 2010 at 9:23 PM, mdipierro mdipie...@cs.depaul.edu wrote: You have db(...).select() This new syntax is a shortcut for  db().select().first() On 31 Lug, 20:40, Thadeus Burgess thade...@thadeusb.com wrote: If there are multiple records we need

Re: [web2py] Re: block problem in 1.81.5

2010-07-31 Thread Thadeus Burgess
obviously something about no definition for a block of reports =/ -- Thadeus On Sat, Jul 31, 2010 at 9:25 PM, mdipierro mdipie...@cs.depaul.edu wrote: I do not understand what this thread is about On 31 Lug, 20:49, Thadeus Burgess thade...@thadeusb.com wrote: . On Sat, Jul 31, 2010 at 2

Re: [web2py] Re: encrypt source code

2010-07-29 Thread Thadeus Burgess
No. -- Thadeus On Thu, Jul 29, 2010 at 11:07 AM, ilovesss2004 yyiillu...@gmail.com wrote: Now I know the web app will work just with the pyc files, and others can not view the source code from pyc files. But the source code can still be viewed in web browser (I mean the source code of

Re: [web2py] Re: encrypt source code

2010-07-29 Thread Thadeus Burgess
Just run the code on an internal server that has no access to the internets and you should be fine. As long as nobody can get to the site, nobody can look at your code. -- Thadeus On Thu, Jul 29, 2010 at 12:08 PM, glimmung phil.kil...@gmail.com wrote: Hi, On Jul 29, 5:07 pm, ilovesss2004

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-29 Thread Thadeus Burgess
/static/filename No more r=, c=, f= needed but all optional. On Jul 28, 6:28 pm, Thadeus Burgess thade...@thadeusb.com wrote: SORRY! =D -- Thadeus On Wed, Jul 28, 2010 at 6:22 PM, mdipierro mdipie...@cs.depaul.edu wrote: WOW. Uploading to trunk. Now I need to revise the book again

Re: [web2py] What's the best way to get code completion / tooltip information ?

2010-07-29 Thread Thadeus Burgess
gluon. Look in gluon/compileapp.py in build_environment. You could use that as a template for the autocomplete. -- Thadeus On Thu, Jul 29, 2010 at 3:22 PM, Stef Mientki stef.mien...@gmail.com wrote:  hello, my viewer has changed into an quit handy editor, and now I want more:

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread Thadeus Burgess
For a little more advanced version of what Massimo just posted: This allows you to use both. URL(r=request, c=controller, f=.) and URL(c=controller, f=function.) http://packages.python.org/web2py_utils/init.html#gurl

Re: [web2py] Debugging ajax call

2010-07-28 Thread Thadeus Burgess
use firebug, set a breakpoint in the javascript and look at the current stack at that point using firebug. -- Thadeus On Wed, Jul 28, 2010 at 4:41 PM, Kenneth kenneth.t.lundst...@gmail.com wrote: Hello, I'm trying to make a ajax call but keep getting document.getElementById(t) is null

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread Thadeus Burgess
is the diff This should not effect any current usages of URL, but from this point forward we shouldn't have to specify r=request! -- Thadeus On Wed, Jul 28, 2010 at 5:21 PM, mdipierro mdipie...@cs.depaul.edu wrote: ok On Jul 28, 4:52 pm, Thadeus Burgess thade...@thadeusb.com wrote: For a little

Re: [web2py] Re: Debugging ajax call

2010-07-28 Thread Thadeus Burgess
with the built-in Chrome DevTools if you're using that browser. On Jul 28, 6:11 pm, Thadeus Burgess thade...@thadeusb.com wrote: use firebug, set a breakpoint in the javascript and look at the current stack at that point using firebug. -- Thadeus On Wed, Jul 28, 2010 at 4:41 PM, Kenneth

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread Thadeus Burgess
SORRY! =D -- Thadeus On Wed, Jul 28, 2010 at 6:22 PM, mdipierro mdipie...@cs.depaul.edu wrote: WOW. Uploading to trunk. Now I need to revise the book again. :-( On Jul 28, 5:51 pm, Thadeus Burgess thade...@thadeusb.com wrote: URL(r=request, c='hello', f='world', args=['hi'], vars={'q

[web2py] Hide Error on SQLFORM

2010-07-27 Thread Thadeus Burgess
I don't get it SQLFORM.factory(Field., hideerror=True). It doesn't do what its supposed to. How can I make sure that none of my widgets render errors alongside their own INPUT elements without rewriting everything in sqlhtml? -- Thadeus

Re: [web2py] Re: book revision

2010-07-27 Thread Thadeus Burgess
And SQLFORM(onvalidate) -- Thadeus On Tue, Jul 27, 2010 at 12:52 AM, Thadeus Burgess thade...@thadeusb.com wrote: IS_IN_SET zero changes and how they work and why it is that way now. -- Thadeus On Mon, Jul 26, 2010 at 11:20 PM, Iceberg iceb...@21cn.com wrote: On Jul 24, 5:53am

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