[web2py] Re: Blogitizor Issues

2010-03-17 Thread Thadeus Burgess
1. You don't have to do anything as long as you don't go to the ccache function in admin. Otherwise, you can replace the ccache function in controllers/admin.py with the ccache function in controllers/appadmin.py (also found in web2py welcome trunk). It is the same code, but the appadmin version

Re: [web2py] virtualfields

2010-03-17 Thread Thadeus Burgess
http://thadeusb.com/weblog/view/web2py_virtualfields_as_an_orm_an_sqlalchemy_approach -Thadeus On Wed, Mar 17, 2010 at 5:41 PM, Jose jjac...@gmail.com wrote: In what was virtualfields development. Reviewing these threads was not yet defined the syntax.

Re: [web2py] Re: virtualfields

2010-03-17 Thread Thadeus Burgess
Dope ! Thanks Jose. -Thadeus On Wed, Mar 17, 2010 at 7:23 PM, Jose jjac...@gmail.com wrote: On 18 mar, 00:11, mr.freeze nat...@freezable.com wrote: I think you need to do: def sales():     rows = db(db.sales.id0).select()     rows = rows.setvirtualfields(sales=Sales())     return

Re: [web2py] Re: Issues with the documentation

2010-03-16 Thread Thadeus Burgess
This is actually python. It is string insertion with a dictionary instead of a list. Basically it is taking the Record (which is a dictionary) and string substituting it in. Where in the first form you have Hello %s. This is a string % (world) Hello world. This is a string And in this form you

Re: [web2py] Re: Issues with the documentation

2010-03-16 Thread Thadeus Burgess
This is due to bugs in the latex to markdown conversion. It will just need to be fixed. Some examples cannot be fixed because of a custom latex converter that acts on top of the markdown, certain python symbols such as % break things. -Thadeus On Tue, Mar 16, 2010 at 3:53 PM, Magnitus

Re: [web2py] Performance of python webservers

2010-03-16 Thread Thadeus Burgess
As far as I read, FAPWS3 locks on every request... meaning you cannot have any connections with a database? I might be wrong, but this is the impression from reading about it. Also, the author incorrectly states that Ebay uses FAPWS3... they actually use J2EE, as you can find many news articles

Re: [web2py] Helper functions to get one from database

2010-03-16 Thread Thadeus Burgess
single_record = db(query).select().first() if not single_record: print no record else: print record!, single_record You can also do db(query).count() db(query).select().last() -Thadeus On Tue, Mar 16, 2010 at 3:45 PM, Michael Toomim too...@gmail.com wrote: Hi guys, I've found the

Re: [web2py] Re: ModWSGI vs CherryPy vs others.

2010-03-16 Thread Thadeus Burgess
I am using Cherokee + uWSGI, couldn't be happier... only reason for not using nginx is I do love cherokee's web interface for configuration. -Thadeus On Tue, Mar 16, 2010 at 10:04 PM, mr.freeze nat...@freezable.com wrote: I wonder how Passenger WSGI compares? I'm running web2pyslices.com

Re: [web2py] Do you know Redis?

2010-03-16 Thread Thadeus Burgess
It is an interesting concept. How would you design the following for a key=value store like Redis? post: name author - FK auth_user content date tags category comments: post - FK post author - FK auth_user content date -Thadeus On Tue, Mar 16, 2010 at 7:14 PM, Alex

Re: [web2py] Do you know Redis?

2010-03-16 Thread Thadeus Burgess
:date uid:post:100:tags uid:comment:34:post = 100 uid:comment:34:content uid:post:100:comments = Set of uid:comment:34 -Thadeus On Tue, Mar 16, 2010 at 11:20 PM, Thadeus Burgess thade...@thadeusb.com wrote: It is an interesting concept. How would you design the following for a key=value

Re: [web2py] Re: Web2py Plugin IRC Chat Comments

2010-03-15 Thread Thadeus Burgess
plugins as they require by some kind of plugin panel or so... In deed, that is the meaning of plug-ins, isn't it? But you must to share the plugins to be portable (as you say) maybe we are not talking about plugins at all...(but components). Massimo's definition of a plugin is not the same as

Re: [web2py] Re: Web2py Plugin IRC Chat Comments

2010-03-15 Thread Thadeus Burgess
of a CMS app for example and I would like to see a subset of current plugins designed specifically for a CSM app. You are thinking of web2py hooks, something that never occurred to me. What kind of hooks would you like web2py to expose and how? Massimo On Mar 15, 8:34 am, Thadeus Burgess thade

Re: [web2py] Re: Prevent caching of certain files

2010-03-15 Thread Thadeus Burgess
Ahah! One step closer to app level routes! -Thadeus On Mon, Mar 15, 2010 at 11:15 AM, mdipierro mdipie...@cs.depaul.edu wrote: You raise a good point. There is no way to do it because I assume on a production system this should be done by the web server. Perhaps we should have something

Re: [web2py] Re: Validation per object

2010-03-15 Thread Thadeus Burgess
Mengu Not an option to add validation on the database level other than database type options (like column type, isnull, etc etc). Massimo's point is that SQLFORM and the Validators provide a pivotal role in web2py, they take the incoming HTML formatted data, and convert this to python types.

Re: [web2py] Re: Prevent caching of certain files

2010-03-15 Thread Thadeus Burgess
that should stay closed? -Thadeus On Mon, Mar 15, 2010 at 12:08 PM, mdipierro mdipie...@cs.depaul.edu wrote: shold this problem be solved as part of an app-level routes? I was looking at it as different. On Mar 15, 11:42 am, Thadeus Burgess thade...@thadeusb.com wrote: Ahah! One step closer

Re: [web2py] Re: Checking if a webserver if running web2py

2010-03-15 Thread Thadeus Burgess
I have routes_onerror( (*/*, '/init/default/error') ) the controller just brings up a search based on the requested_uri. -Thadeus On Mon, Mar 15, 2010 at 1:10 PM, Magnitus eric_vallee2...@yahoo.ca wrote: On Mar 14, 9:58 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: You can

Re: [web2py] Re: Checking if a webserver if running web2py

2010-03-15 Thread Thadeus Burgess
Nope. The default is 404... but I do think it should say 404 instead of Invalid Function But thats configurable in routes.py :) -Thadeus On Mon, Mar 15, 2010 at 7:08 PM, Richard richar...@gmail.com wrote: On Mar 16, 7:31 am, Thadeus Burgess thade...@thadeusb.com wrote: I have

Re: [web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread Thadeus Burgess
You can also check the servers datetime stamp of the web2py_ajax.html, depending on this, you can know what version of web2py is actually running(assuming it hasn't been edited)... so you can specifically target web2py versions (based on date version came out) that have known vulnerabilities.

Re: [web2py] Re: Web2py Plugin IRC Chat Comments

2010-03-13 Thread Thadeus Burgess
plugin code in modules and import them (something you can already do). The problem is that you would have to be very explicit and import plugins. Installing them would not be enough and that I do not like (at least not in the general case). On Mar 12, 10:36 am, Thadeus Burgess thade

Re: [web2py] Re: Web2py Plugin IRC Chat Comments

2010-03-13 Thread Thadeus Burgess
and incompatibility problems. That is what web2py tries to avoid by making every app complete. On Mar 13, 11:37 am, Thadeus Burgess thade...@thadeusb.com wrote: When would an app level plugin get executed? What If I have code I want to execute AFTER plugins? What if I need a plugin to execute after

Re: [web2py] Re: Where do you use web2py?

2010-03-12 Thread Thadeus Burgess
It blogs (thadeusb.com / http://code.google.com/p/blogitizor/) It does customer management / scheduling systems with project and resource tracking It does statistical analysis for research It manages files on the fileserver, keeping things organized It has tracked of the status of the GaiaOnline

Re: [web2py] Re: Web2py Plugin IRC Chat Comments

2010-03-12 Thread Thadeus Burgess
If all plugins are designed to be class-like, then your example of plugins just need to inherit. The only reason I would be in support for logically changing the location of plugins is the one of dependencies. Meaning, if you have to specify to web2py when to load a plugin, and in what order...

Re: [web2py] Re: Where do you use web2py?

2010-03-12 Thread Thadeus Burgess
Totally! -Thadeus On Fri, Mar 12, 2010 at 12:05 PM, mdipierro mdipie...@cs.depaul.edu wrote: Soon to be a commerce site so my girlfriend can sell her cute hand-made stuffed animals Email me some pictures. My son loves those. I may but one. If she can make them with only one large

Re: [web2py] Re: Caching at DAL level

2010-03-11 Thread Thadeus Burgess
Too bad we can specify to cache.disk where we want it to store... -Thadeus On Thu, Mar 11, 2010 at 9:14 AM, mdipierro mdipie...@cs.depaul.edu wrote: On a second read. Most of it is useful but probably the last line is not what users want. The effect would not be to cache

Re: [web2py] Re: An SQL Query Question for DAL

2010-03-11 Thread Thadeus Burgess
I like it, much cleaner, and what I would expect. -Thadeus On Thu, Mar 11, 2010 at 9:18 AM, Mengu whalb...@gmail.com wrote: Anyone has any other way for writing that query? Massimo, wouldn't you accept this as a patch? -- You received this message because you are subscribed to the

Re: [web2py] Re: Google Checkout plugin

2010-03-11 Thread Thadeus Burgess
404 -Thadeus On Thu, Mar 11, 2010 at 3:52 PM, mdipierro mdipie...@cs.depaul.edu wrote: No. but the one posted there works. The new one is here http://web2py.com/plugins/static/plugins/web2py.plugin.google_checkout.w2p It is supposed to be much easier to use but needs some testing.

Re: [web2py] Re: Google Checkout plugin

2010-03-11 Thread Thadeus Burgess
http://web2py.com/plugins/static/web2py.plugin.google_checkout.w2p -Thadeus On Thu, Mar 11, 2010 at 6:13 PM, Thadeus Burgess thade...@thadeusb.com wrote: 404 -Thadeus On Thu, Mar 11, 2010 at 3:52 PM, mdipierro mdipie...@cs.depaul.edu wrote: No. but the one posted there works

Re: [web2py] two plugin approachs

2010-03-11 Thread Thadeus Burgess
I will define the model approach as A and the modules approach as B. They both have pros and cons. file A follows more along the web2py idioms, in being implicit, your functions are just there, but on this same token you have namespace pollution, and a functional programming style. file B is

Re: [web2py] Web2py Plugin IRC Chat

2010-03-10 Thread Thadeus Burgess
Odd, working for me. Anyone else having issues -Thadeus On Wed, Mar 10, 2010 at 3:52 AM, Tiago Almeida tiago.b.alme...@gmail.com wrote: Thanks. Unfortunately it doesn't open for me (connection timed out). Regards, Tiago On Wed, Mar 10, 2010 at 7:21 AM, Thadeus Burgess thade

Re: [web2py] Re: Writing a plugin that imports/merges two databases with the same structure

2010-03-10 Thread Thadeus Burgess
so if you store record_id as a text field, ( as some plugins do like tagging ) then those ids will be wrong upon insertion to a new database. -Thadeus On Wed, Mar 10, 2010 at 8:11 AM, mdipierro mdipie...@cs.depaul.edu wrote: You can do it this way: buffer=open('buffer','wb')

Re: [web2py] Re: meeting tonight

2010-03-10 Thread Thadeus Burgess
When can we set another meeting? 10PM was a little late, but doable. -Thadeus On Wed, Mar 10, 2010 at 9:43 AM, mdipierro mdipie...@cs.depaul.edu wrote: I would like to add what was NOT discussed. 1) convention for a plugin to store variables in sessions 2) convention for plugin-defined

Re: [web2py] web2py.com is down !!?!

2010-03-09 Thread Thadeus Burgess
Has been working for me. -Thadeus On Tue, Mar 9, 2010 at 3:47 AM, Jason Brower encomp...@gmail.com wrote: Works for me (: On Tue, 2010-03-09 at 00:18 -0800, Sky wrote: as I see web2py.com is down since 2 days ago. is there any body to inform the site administrator ??? -- You

Re: [web2py] Re: Getting out from under web2py.py 's environment building magic.

2010-03-09 Thread Thadeus Burgess
NO. Your application only becomes GPL if you INCLUDE(ie: distribute) the DAL with your program, not if it only USES the DAL, and the client has to install web2py themselves. -Thadeus On Tue, Mar 9, 2010 at 7:52 AM, Timothy Farrell tfarr...@swgen.com wrote: Also remember that web2py is GPL.

Re: [web2py] Re: Caching at DAL level

2010-03-09 Thread Thadeus Burgess
What if the cache system includes a category or type field. All cached SQL could be of type SQL, and then say responses can be cached as RESP. This way if you refresh the cache instead of clearing the entire thing, we can specify cache.ram.clear(type=SQL) and it will only clear the sql typed

Re: [web2py] Re: Caching at DAL level

2010-03-09 Thread Thadeus Burgess
wrote: You can already do cache.ram.clear(db._uri + '/SELECT') and it will clear all cached select statements. You have to specify db._uri because you may have multiple db cached. Massimo On Mar 9, 10:37 am, Thadeus Burgess thade...@thadeusb.com wrote: What if the cache system includes

Re: [web2py] Re: Could webp2y do it like Pylons?

2010-03-09 Thread Thadeus Burgess
Kinda like django's stacktraces ? I have been an advocate for this for a while, yet since I have been using WingIDE debugger I havn't really needed this. -Thadeus On Tue, Mar 9, 2010 at 11:10 AM, Jon Romero darks...@gmail.com wrote: I don't think this is a problem. If I wanted to check

Re: [web2py] Re: How to use SUM()

2010-03-09 Thread Thadeus Burgess
Is it just me or is this archaic? -Thadeus On Tue, Mar 9, 2010 at 6:48 PM, Russell russell.mcmur...@gmail.com wrote: The number is stored in a dictionary called '_extra'.  The top part of what you are getting is the dictionary key.  Do something like this to get just the number... row =

Re: [web2py] Re: How to use SUM()

2010-03-09 Thread Thadeus Burgess
of this be difficult ? -Thadeus On Tue, Mar 9, 2010 at 9:03 PM, mdipierro mdipie...@cs.depaul.edu wrote: s=db.some_table.amount.sum() row = db(...).select(s).first() answer = row[s] On Mar 9, 8:23 pm, Thadeus Burgess thade...@thadeusb.com wrote: Is it just me or is this archaic? -Thadeus On Tue

[web2py] Web2py Plugin IRC Chat

2010-03-09 Thread Thadeus Burgess
For your convenience, I have posted the entire IRC log of the plugin discussion. Later I will be posting a PDF containing the summary of what was discussed, and what has been decided as the current official plugin spec. http://static.thadeusb.com:50002/web2py_plugin_irc_log.txt -Thadeus --

Re: [web2py] Re: Relase of the first HL7 based on web2py framework

2010-03-07 Thread Thadeus Burgess
Is there a default account that can be used? On Sun, Mar 7, 2010 at 5:26 PM, mdipierro mdipie...@cs.depaul.edu wrote: I forgot to say... if you try it, register as Doctor or you will have limited access. Adminitrators and Nureses have less permissions. On Mar 7, 2:33 pm, mdipierro

Re: [web2py] Re: Plugin system status

2010-03-07 Thread Thadeus Burgess
. It will be better for everybody. Tuesday night? On Mar 2, 10:44 am, Thadeus Burgess thade...@thadeusb.com wrote: I too am swamped during the days. I would have to get permission from the powers at be to participant in an afternoon chat. Evenings would be best, the later

Re: [web2py] Re: Relase of the first HL7 based on web2py framework

2010-03-07 Thread Thadeus Burgess
Says registration requires verification and I never received an email. As an idea, maybe we need a central web2py auth_user store, that all apps that you host like this can get into. This way we just log into web2py.com and get access to /book /wiki /web2pyslices and any apps like /HL7 that are

Re: [web2py] Re: * web2py's Brand *

2010-03-06 Thread Thadeus Burgess
John, What do you constitute as a Big Money Making Project? I work for a fairly large company, we use web2py for internal uses. These internal applications generate the company millions of dollars a year in savings by automating aspects of the business. You don't think web2py is used in Serious

Re: [web2py] Re: dal.py password is invalid keyword for this function error

2010-03-06 Thread Thadeus Burgess
The checking is off by default, you have to explicitly enable it. Therefore unless he is using it, it is not causing a problem. And the error message looks nothing like the one that the check emits anyways :) It would help if we had a stack-trace to see where the error is being triggered.

Re: [web2py] Re: ticket FLOAT8

2010-03-05 Thread Thadeus Burgess
Book! Chapter 6 Section 2 Last Paragraphs! web2py.com/book/default/section/6/2 -Thadeus On Thu, Mar 4, 2010 at 10:46 PM, mdipierro mdipie...@cs.depaul.edu wrote: 'offset' is a keyword and cannot be used as a field name On Mar 4, 10:34 pm, weheh richard_gor...@verizon.net wrote: This

Re: [web2py] Re: Getting out from under web2py.py 's environment building magic.

2010-03-05 Thread Thadeus Burgess
You can also execute any script inside of web2py's environment, if you need your models for a script and a website, this way you can keep it DRY. python web2py.py -S appname -M -R /path/to/script.py But if you arn't using web2py, then your method is a sure fire way to getting the glory of the

Re: [web2py] Re: ticket FLOAT8

2010-03-05 Thread Thadeus Burgess
I guess everyone misses the sticky post at the top of this google group that DenesL has been keeping track of New Features not documented in book. -Thadeus On Fri, Mar 5, 2010 at 3:15 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 5, 1:47 pm, villas villa...@gmail.com wrote:

Re: [web2py] did you know?

2010-03-04 Thread Thadeus Burgess
Nice! -Thadeus On Thu, Mar 4, 2010 at 9:08 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://gluonframework.wordpress.com/2010/03/04/web2py-learner/ -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

Re: [web2py] Re: * web2py's Brand *

2010-03-04 Thread Thadeus Burgess
What designates a success though? Something open source, that is better than wordpress, or trac, or insert other open source project out there currently written in another language? Or something written in a corporate environment that can't be released or even anything shared about it due to

Re: [web2py] Re: did you know?

2010-03-04 Thread Thadeus Burgess
This reminds me of starship troopers... Did you know? -Thadeus On Thu, Mar 4, 2010 at 9:20 AM, DenesL denes1...@yahoo.ca wrote: +1 On Mar 4, 10:14 am, Thadeus Burgess thade...@thadeusb.com wrote: Nice! -Thadeus On Thu, Mar 4, 2010 at 9:08 AM, mdipierro mdipie...@cs.depaul.edu wrote

Re: [web2py] ajax list/detail view design pattern

2010-03-04 Thread Thadeus Burgess
I hand write html, and use tr id=123 or tr record_id=123 and use jQuery(tr).click(function(){$(this).parent().attr(record_id)}) -Thadeus On Thu, Mar 4, 2010 at 10:56 AM, snfctech tschm...@sacfoodcoop.com wrote: I am fond of a design pattern whereby a list of records (such as orders) is

Re: [web2py] did you know?

2010-03-04 Thread Thadeus Burgess
I'm pointing my Learner to the web2py mailing list :) Bowahahahahahahahaha! Maybe it can start writing web2py code for me . -Thadeus On Thu, Mar 4, 2010 at 11:53 AM, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: Cool! On Thu, Mar 4, 2010 at 12:08, mdipierro

Re: [web2py] Re: database is locked

2010-03-04 Thread Thadeus Burgess
The issue is that sqlite database is locked every time it is accessed. So if you have a-lot of concurrent requests, some of those will fail due to it being locked by other threads. The solution is to use a database that does not rely on locking such as postgresql or mysql. -Thadeus On Thu,

Re: [web2py] Re: database is locked

2010-03-04 Thread Thadeus Burgess
...@pobox.com wrote: On Mar 4, 2010, at 1:08 PM, Thadeus Burgess wrote: The issue is that sqlite database is locked every time it is accessed. So if you have a-lot of concurrent requests, some of those will fail due to it being locked by other threads. The solution is to use a database that does

Re: [web2py] Re: firebird error when tries to execute auth.defines_tables()

2010-03-04 Thread Thadeus Burgess
Also I added support so the DAL can check reserved SQL keywords. http://web2py.com/book/default/section/6/2 -Thadeus On Thu, Mar 4, 2010 at 7:35 PM, villas villa...@gmail.com wrote: 'Password' is a reserved word and causes a problem in Firebird.  Try this: auth=Auth(globals(),db)

Re: [web2py] Re: Dream Host Deployment

2010-03-04 Thread Thadeus Burgess
When I ran web2py on dreamhost I just edited my admin application and removed the checks for https. Of course your best option is to use a ssh tunnel, forward the port 80 of the server to your local port 8080 or something, since admin allows any localhost connections to access it will work.

Re: [web2py] Re: Ajax query

2010-03-03 Thread Thadeus Burgess
:14 pm, Thadeus Burgess thade...@thadeusb.com wrote: You are returning a view that contains {{extend layout.html}} when you return theajax, so since your returning the entire page html... you insert the page over again :) You can

Re: [web2py] Re: * web2py's Brand *

2010-03-03 Thread Thadeus Burgess
I think that was the goal of this survey was to find out where web2py is currently in the minds of the community and those using it, and then where do we actually want to be. We can't dial a Stargate unless we know the point of origin! -Thadeus On Wed, Mar 3, 2010 at 7:23 PM, John Heenan

Re: [web2py] Re: * web2py's Brand *

2010-03-02 Thread Thadeus Burgess
When will you be releasing the results? -Thadeus On Mon, Mar 1, 2010 at 10:29 PM, mdipierro mdipie...@cs.depaul.edu wrote: +1 On Mar 1, 8:12 pm, Wobmofo muito...@gmail.com wrote: There is a very interesting Pylons page on

Re: [web2py] Re: One settings file. Best practise?

2010-03-02 Thread Thadeus Burgess
models/z_process_news.py controllers/news.py views/news/index.html views/news/add.html ... static/news.css                   # not really required Works for us. Cheers, Chris On Feb 28, 9:56 am, Thadeus Burgess thade...@thadeusb.com wrote: I do A_settings.py # global

Re: [web2py] Re: Plugin system status

2010-03-02 Thread Thadeus Burgess
I too am swamped during the days. I would have to get permission from the powers at be to participant in an afternoon chat. Evenings would be best, the later the better. I just moved, so I have not got my PC back up and running (hopefully I will by Friday) -Thadeus On Tue, Mar 2, 2010 at

Re: [web2py] Re: Ajax query

2010-03-02 Thread Thadeus Burgess
You are returning a view that contains {{extend layout.html}} when you return the ajax, so since your returning the entire page html... you insert the page over again :) You can A) Return a view that does not extend layout B) Return a string that represents the html instead of a dict C) Call it

Re: [web2py] Re: cron warning...

2010-03-01 Thread Thadeus Burgess
3 -Thadeus On Mon, Mar 1, 2010 at 5:42 AM, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Mon, Mar 1, 2010 at 05:03, AchipA attila.cs...@gmail.com wrote: 3 is the correct choice for several reasons. If the jobs should not overlap, it's the scripts reponsibility to provide a

Re: [web2py] Re: One settings file. Best practise?

2010-03-01 Thread Thadeus Burgess
views/news/index.html views/news/add.html ... static/news.css                   # not really required Works for us. Cheers, Chris On Feb 28, 9:56 am, Thadeus Burgess thade...@thadeusb.com wrote: I do A_settings.py # global settings and flags B_w2p.py # web2py related things, auth

Re: [web2py] web2py and the current state of the DAL rewrite

2010-03-01 Thread Thadeus Burgess
:) I think this is like the 10'th time this question has been asked within the last month. Its on the way... still some work to do with modularizing the DAL a bit more. Massimo has put other things as priority to this feature (Such as the online book web2py.com/book) and fixing other features

Re: [web2py] Re: web2py on EC2

2010-02-28 Thread Thadeus Burgess
, 2010 at 6:46 AM, mdipierro mdipie...@cs.depaul.edu wrote: I'll remove upgrade but not emacs. ;-) On Feb 26, 2:57 pm, Thadeus Burgess thade...@thadeusb.com wrote: Agreed, this is why I do not recommend the script, it does alot of things that don't seem necessary to me. -Thadeus On Fri, Feb 26

Re: [web2py] One settings file. Best practise?

2010-02-28 Thread Thadeus Burgess
I do A_settings.py # global settings and flags B_w2p.py # web2py related things, auth/crud/service declarations C_modelA.py D_modelB.py #relies on model a so it executes after -Thadeus On Sun, Feb 28, 2010 at 5:19 AM, Guido Kollerie gu...@kollerie.com wrote: I'd like to have one file with

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Thadeus Burgess
Massimo, you should consider moving to slicehost, I have been running 3 separate slicehost servers for web2py, none of them have ever been down since I purchased the services. Alternatively, if you want cloud hosting, rackspace provides excellent cloud servers in the same datacenters as

Re: [web2py] Re: Limitby not working with Oracle with joins

2010-02-27 Thread Thadeus Burgess
._cursor.execute) File c:\web2pyNEW\gluon\sql.py, line 603, in oracle_fix_execute return execute(command[:-1], args) DatabaseError: ORA-00904: HEADERS1.ID: invalid identifier On 26 фев, 21:22, Thadeus Burgess thade...@thadeusb.com wrote: please print the output of db(db.headers.id

Re: [web2py] webform actions

2010-02-27 Thread Thadeus Burgess
If your running the latest version of web2py, look at controllers/appadmin.py in ccache function. It defines a form with three buttons, (one toc lear ram, one to clear disk, and one to clear both). Click the different submit button executes the appropriate function. -Thadeus On Sat, Feb 27,

Re: [web2py] Re: web2py 1.75.5 is OUT

2010-02-26 Thread Thadeus Burgess
Also, there is a typo in gluon/contrib/markdown/__init__.py ['extra'] should be ['extras'] -Thadeus On Fri, Feb 26, 2010 at 8:24 AM, Iceberg iceb...@21cn.com wrote: Minor, minor issue. You forgot to change VERSION file to 1.75.5... On Feb26, 2:09pm, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Recaptcha doesn't play nice with crud

2010-02-26 Thread Thadeus Burgess
Actually I think this is a valid bug :) For a simple solution, you can try using SQLFORM.custom... this way you won't run into the invalid html markup http://web2py.com/AlterEgo/default/show/205 -Thadeus On Fri, Feb 26, 2010 at 2:27 AM, szimszon szims...@gmail.com wrote: ello! Sorry for

Re: [web2py] Re: importing local modules

2010-02-26 Thread Thadeus Burgess
the problem by hardcoding the path like 'applications.appname/modules/...' but don't like it. Can local_import do this and I used it incorrectly? Thanks a lot in advance. Best regards, Tiago -- On Fri, Feb 26, 2010 at 2:11 AM, Thadeus Burgess thade...@thadeusb.comwrote: Done. -Thadeus

Re: [web2py] Re: db select cache.ram.clear() and apache2 + wsgi not working

2010-02-26 Thread Thadeus Burgess
Cache.ram is not completely useless in a multi processes. If your caching the entire html output of your front page, then its faster to have this cached in ram instead of on disk, but its not a big deal since its ok for new threads to recreate the cache in this single instance. Also if your

Re: [web2py] Limitby not working with Oracle with joins

2010-02-26 Thread Thadeus Burgess
please print the output of db(db.headers.id == db.alarms.header)._select(db.header.name, db.alarms.komment, limitby=(0,5)) -Thadeus On Fri, Feb 26, 2010 at 12:00 PM, SergeyPo ser...@zarealye.com wrote: Limitby clause still is not working with Oracle backend when used in queries that

Re: [web2py] [1/2 OT] Help with jquery and ajax

2010-02-26 Thread Thadeus Burgess
try it in firebug. -Thadeus On Fri, Feb 26, 2010 at 11:24 AM, Jose jjac...@gmail.com wrote: I have the following code form    input type=hidden id=id value= / /form {{for r in registros:}} {{=r.nombre}} {{u=URL(r=request, c='default', f='download', args=[r.imagen])}} span

Re: [web2py] Re: web2py on EC2

2010-02-26 Thread Thadeus Burgess
Take a look at my slice article that goes about the process step by step. This way you can only install exactly what you need. http://www.web2pyslices.com/main/slices/take_slice/14 -Thadeus On Fri, Feb 26, 2010 at 10:46 AM, Oatman thelastanom...@gmail.com wrote: Massimo, I'm pretty

Re: [web2py] Re: web2py on EC2

2010-02-26 Thread Thadeus Burgess
Agreed, this is why I do not recommend the script, it does alot of things that don't seem necessary to me. -Thadeus On Fri, Feb 26, 2010 at 2:14 PM, Kuba Kucharski kuba.kuchar...@gmail.com wrote: although the script should be changed. especially there should be no apt-get upgrade inside..

Re: [web2py] Strategy for working with an existing database

2010-02-26 Thread Thadeus Burgess
As long as it has a primary key of id then you are good. The first thing you will need to do is fake_migrate=True so web2py will generate the .table files. So define you db.define_table statements exactly like your existing database. make sure to pass fake_migrate=True to these tables

Re: [web2py] Re: Strategy for working with an existing database

2010-02-26 Thread Thadeus Burgess
I will clarify on your post as well -Thadeus On Fri, Feb 26, 2010 at 3:38 PM, villas villa...@gmail.com wrote: What a coincidence -- I literally just made a posting about the very same thing! @Thadeus, I will try again what you have said here,  but I find it rather confusing.

Re: [web2py] Does fake_migrate work?

2010-02-26 Thread Thadeus Burgess
How web2py performs migrations: Web2py takes your db.define_table statement, and stores a pickle of its structure. These files are saved in databases/connectionstringhash.tablename.table Web2py takes this structure that is saved on the filesystem and loads it up when you perform db.define_table.

Re: [web2py] Re: Iterate through form input

2010-02-26 Thread Thadeus Burgess
= self.regex.match(value) TypeError: expected string or buffer On Feb 26, 1:02 pm, Thadeus Burgess thade...@thadeusb.com wrote: if they all have the same name you will receive it as a list in request.vars as the name You will need to use jQuery to dynamically add more fields. Also, you

Re: [web2py] can't get SSL/admin working on LAN (apache + mod_wsgi)

2010-02-26 Thread Thadeus Burgess
Have you taken a look at your error logs for VirtualHost 443 ? It might give a clue as to what is going wrong. I am thinking it is an issue with the certificate? -Thadeus On Fri, Feb 26, 2010 at 4:06 PM, snfctech tschm...@sacfoodcoop.com wrote: retty stuck at this point.  Any help would be

Re: [web2py] Re: can't get SSL/admin working on LAN (apache + mod_wsgi)

2010-02-26 Thread Thadeus Burgess
in the access log: 192.168.1.63 - - [26/Feb/2010:14:20:07 -0800] \x80R\x01\x03 303 66 On Feb 26, 2:12 pm, Thadeus Burgess thade...@thadeusb.com wrote: Have you taken a look at your error logs for VirtualHost 443 ? It might give a clue as to what is going wrong. I am thinking it is an issue

Re: [web2py] Cron issue with recent web2py?

2010-02-26 Thread Thadeus Burgess
I am running linux, development trunk and do not receive this. Perhaps a windows only issue? -Thadeus On Fri, Feb 26, 2010 at 7:50 PM, Iceberg iceb...@21cn.com wrote: Well, I didn't have enough investigation yet, just posting a quick question here. Does anybody else who, upgraded to

Re: [web2py] Bug and fix in appadmin.py 's ccache()

2010-02-26 Thread Thadeus Burgess
Thanks Iceberg, I did not see this when I originally coded it but you are right! I sent a patch to Massimo. -Thadeus On Fri, Feb 26, 2010 at 8:07 PM, Iceberg iceb...@21cn.com wrote: Recent web2py contains a cache statistics page in appadmin. That is good! But so far, the total Hit Ratio

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
Can I have cherokee uwsgi and apache mod_wsgi running on the same web2py code base or should I make a copy so cherokee can execute it ? You are right I could run cherokee on a non-standard port for testing and always switch it over when I am happy with it! -Thadeus On Wed, Feb 24, 2010 at

Re: [web2py] newly created app fails in shell mode in 1.75.4

2010-02-25 Thread Thadeus Burgess
Permission error when running in shell mode? -Thadeus On Thu, Feb 25, 2010 at 5:47 AM, DenesL denes1...@yahoo.ca wrote: Using 1.75.4, a newly created app fails to start in shell mode (-M -N - S) with: web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010

Re: [web2py] Re: mail plain text message wrong charset

2010-02-25 Thread Thadeus Burgess
,               encoding=utf-8) made no difference :( On febr. 23, 21:01, Thadeus Burgess thade...@thadeusb.com wrote: I am unable to replicate this. -Thadeus On Tue, Feb 23, 2010 at 1:59 PM, szimszon szims...@gmail.com wrote: No change: --===2046819983

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-25 Thread Thadeus Burgess
of web2py.py, which is confusing the unittest module in several ways. On Feb 24, 1:02 pm, Thadeus Burgess thade...@thadeusb.com wrote: If I create a unittest init/tests/testControllerDefault.py and run the following command line python web2py.py -S

Re: [web2py] Re: Plugin system status

2010-02-25 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com wrote: I also am in favor of a class based plugin system that works like crud/auth. Plugins would not pollute your global namespace. And they would be configurable. Though the loss is of having plugins with their own controllers since the module

Re: [web2py] Re: newly created app fails in shell mode in 1.75.4

2010-02-25 Thread Thadeus Burgess
thats odd. Yeah It seems like the shell doesn't have create access but it does have write access. And web2py has both create and write access. -Thadeus On Thu, Feb 25, 2010 at 10:36 AM, DenesL denes1...@yahoo.ca wrote: On Feb 25, 11:10 am, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Re: Toggle on/off editarea on startup

2010-02-25 Thread Thadeus Burgess
So this patch allows you to disable EditArea javascript, this way you can use Its All Text with the actual html textarea? Is there a way to make it so that you have GUI access to this instead of having to edit admin. Perhaps it can get this value from request.get_vars. It would be a nuance if it

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-25 Thread Thadeus Burgess
I do not like the idea of having to specify the name of the app twice, it breaks DRY. What about an additional command line flag that can tell whether to strip sys.argv or not. This will keep backwards compatibility, and also allow for scripts to have a simple sys.argv if required. web2py.py

Re: [web2py] Re: Plugin system status

2010-02-25 Thread Thadeus Burgess
stucture. The point of the Plugins class above would be to give a modicum of control developers as to the objects that are exposed to the current plugin system. On Feb 25, 10:58 am, Thadeus Burgess thade...@thadeusb.com wrote: I can't stress enough. web2py plugins should be geared towards

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-25 Thread Thadeus Burgess
[tablename]]     test_db.define_table(tablename, *table_copy) === On Feb 25, 11:36 am, Thadeus Burgess thade...@thadeusb.com wrote: So the easiest way to use a testing db and your existing tables is to automatically recreate them. So assuming you

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
uWSGI listed under Wizards-Platforms. I do not see it anywhere else. I can run ``uwsgi`` from command line, so it is installed correctly in my bin. The only difference is I have /web2py and /web2py/config.xml does this matter? -Thadeus On Thu, Feb 25, 2010 at 10:07 AM, Thadeus Burgess thade

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
Also, emphasis the fact of using the PPA method of installing, and provide instructions on how to do this, and a link to that page. The reason it was not working was I installed 0.99.19 instead of 0.99.43. -Thadeus On Thu, Feb 25, 2010 at 2:27 PM, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
Don't forget to hit save :)0 And how to enable SSL, and use my self signed certificate, OR use a paid for certificate? -Thadeus On Thu, Feb 25, 2010 at 3:25 PM, Thadeus Burgess thade...@thadeusb.com wrote: Also, emphasis the fact of using the PPA method of installing, and provide

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
and signing your own ssl key, it seems the one I am using for apache setup is invalid :) -Thadeus On Thu, Feb 25, 2010 at 3:36 PM, Thadeus Burgess thade...@thadeusb.com wrote: Don't forget to hit save :)0 And how to enable SSL, and use my self signed certificate, OR use a paid for certificate

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