[web2py] Re: query for not in

2010-01-07 Thread Thadeus Burgess
This would be a sample query in MYSQL... I just do not know how to port this to DAL syntax :) SELECT customers.* FROM customers LEFT JOIN orders ON customers.customer_id = orders.customer_id WHERE orders.customer_id IS NULL -Thadeus On Thu, Jan 7, 2010 at 3:29 PM, Thadeus Burgess wrote

[web2py] query for not in

2010-01-07 Thread Thadeus Burgess
Query for records that are in one table but not in another table? myrecord --- theid -> FK -> listofstuff datetitme listofstuff --- myid myname myvalue So basically, I want all listofstuff that does not have a record in myrecord -Thadeus -- You received this message because you

[web2py] Duplicate Records

2010-01-07 Thread Thadeus Burgess
Ah... times such as these when Access really makes you happy... So I have an email field... unique, and people who think they are smart have signed up with a lowercase email, and then again with an uppercase email. Yes it is my fault for not converting to lowercase before validating. (well I did

[web2py] Re: [web2py:38482] Re: Best approach for keeping a session alive

2010-01-06 Thread Thadeus Burgess
> > > On Jan 7, 7:45 am, mdipierro wrote: >> ajax calls to keep session alive >> >> On Jan 6, 2:02 pm, Thadeus Burgess wrote: >> >> >> >> > (this) being using ajax calls or (this) being keeping the session alive? >> >> > -Thade

Re: [web2py:38475] Re: Best approach for keeping a session alive

2010-01-06 Thread Thadeus Burgess
(this) being using ajax calls or (this) being keeping the session alive? -Thadeus On Wed, Jan 6, 2010 at 1:53 PM, mdipierro wrote: > kpax does this. > > On Jan 6, 11:56 am, Thadeus Burgess wrote: >> So I have my blog... and I'm writing a post, and I walk off and leave

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

2010-01-06 Thread Thadeus Burgess
Massimo, This does not work. Especially if you are wanting a default for {{something()}} It always uses the first definition, because of how views are extended and included. So as long as you have the def something(): and {{something()}} in the same template file, it will work, but going throug

[web2py:38464] Best approach for keeping a session alive

2010-01-06 Thread Thadeus Burgess
So I have my blog... and I'm writing a post, and I walk off and leave it, come back to post, and of course my session has expired. What is the best way to keep this session alive? I am thinking an AJAX call that is set to interval at every minute ? -Thadeus -- You received this message because y

Re: [web2py:38453] Re: searching, entering many-to-many relationships

2010-01-06 Thread Thadeus Burgess
I guess thats my queue to post the list when I get the chance :) -Thadeus On Wed, Jan 6, 2010 at 9:32 AM, mdipierro wrote: > please do. I missed this one. Thadeus is maintaining a list of > plugins. > > On Jan 6, 5:50 am, selecta wrote: >> or you could use my improved >> versionhttp://grou

Re: [web2py:38452] Re: myISAM table creation

2010-01-06 Thread Thadeus Burgess
O MySQLAdapter ->MyISAMAdapter ->InnoDBAdapter :) I love the new DAL! -Thadeus On Wed, Jan 6, 2010 at 9:28 AM, mdipierro wrote: > Right now you cannot unless you edit gluon.sql.py and replace InnoDB > with MyISAM. I am not sure about the implications. The new DAL will > make it easier

Re: [web2py:38439] Re: Feature "read more" in a default blog index page

2010-01-06 Thread Thadeus Burgess
Since you are including html in your posts, it is a bit difficult... I am using markdown for blogitizor, so the html always comes out clean... snip = 2000 #num characters by default {{=WIKI(page.content[:snip], extras={ 'code-color': {'noclasses': True}, '

Re: [web2py:38438] Re: UliPad as IDE for web2py

2010-01-06 Thread Thadeus Burgess
Its still just a website, you have to refresh the page to see changes :) -Thadeus On Wed, Jan 6, 2010 at 2:57 AM, Werner F. Bruhin wrote: > mdipierro wrote: >> >> > the rule is simple. If the app is not "compiled" no change requires >> restarting except changes in files in the modules/ folde

Re: [web2py:38421] What does form.accepts() do?

2010-01-05 Thread Thadeus Burgess
obviously if the there is no data form.accepts() returns false. if form.accepts() #returns true or false wrote: > I can not understand form.accepts(). I think it's because my intuitive > understanding of web2py is wrong. Here's how I think it works: > > A simple controller function ( index() say)

Re: [web2py:38411] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
80/20 gets in the way sometimes... 50/50 would be a better goal... providing reasonable defaults, but also a reasonable way to customize or rewrite base modules. I say 50/50 because there is NO way any system can provide everything every developer may ever need. Though django/werkzeug etc follow t

Re: [web2py:38409] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
It was aimed at Massimo's comment... > If you do collaborative delopment and two or more people are working > on the same app, the web based editor will prevent conflict and > provide merge capabilities. Exactly why in any "real" programming environment, unless your project is highly unorganized.

Re: [web2py:38405] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
Upon each request, web2py scans the filesystem, loading model/controller/view python files into a list of filenames. When a request comes in, it then uses exec to execute the python file in the current globals() (which is why you don't have to import web2py things). So if the class/function is alre

Re: [web2py:38404] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
This is exactly why Source Code Management systems were created. -Thadeus On Tue, Jan 5, 2010 at 6:58 PM, mdipierro wrote: > There is difference between editing a file via the web based IDE > (admin) or via the file system. Web2py does not store any meta-data > and editing does not trigger a

Re: [web2py:38399] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
Web2py models/controllers/views are EXECUTED not IMPORTED. Therefore, any changes made to files in these folders, are executed on the next and subsequent requests. You only need to flush/stop/start if you change say a MODULE (that is imported) or similar. You would never, and should never edit a

Re: [web2py:38395] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
We have looked at it... and I even said that Its All Text is the way to go... and that we shouldn't worry about this for web2py, we have lots of other things on our plates besides this, such as the new DAL, figuring out a better plugin system, etc etc.. Its all text gives the functionality of the

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

2010-01-05 Thread Thadeus Burgess
I think what he really wants is the same thing I have been discussing for quite a while :) For now, sqlform.custom is the way to go http://web2py.com/AlterEgo/default/show/205 -Thadeus On Tue, Jan 5, 2010 at 4:25 PM, mdipierro wrote: > I think this should do it: > > form=SQLFORM(...) > for

Re: [web2py:38389] Re: membership manager plugin

2010-01-05 Thread Thadeus Burgess
Yes -Thadeus On Tue, Jan 5, 2010 at 3:13 PM, mdipierro wrote: > Thanks! > > Can I count on Thadeus to keep track and store plugins? > > Massimo > > On Jan 5, 2:49 pm, KMax wrote: >> And finaly membership manager was done. >> You could download it from following link (should be active for >

Re: [web2py:38388] Re: Exception

2010-01-05 Thread Thadeus Burgess
Are you not receiving any of my attachments by email? -Thadeus On Tue, Jan 5, 2010 at 2:35 PM, mdipierro wrote: > waiting for the patch by email > > On Jan 5, 12:13 pm, Thadeus Burgess wrote: >> Ah duh, column names... >> >> Here would be a proper

Re: [web2py:38387] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
surprised of how > many students I see who, if you say "open a shell" they say "open > what?". > > On Jan 5, 1:31 pm, Thadeus Burgess wrote: >> Here is my confusion >> >> If your going to use an editor on your local computer why are you

Re: [web2py:38374] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
Here is my confusion If your going to use an editor on your local computer why are you going to even bother with using web2py to view the files... If your already going to have Explorer/Nautilus/ you can just double click the files and edit them... There would be no way for you to use an

Re: [web2py:38370] Re: Exception

2010-01-05 Thread Thadeus Burgess
27;,] -Thadeus On Tue, Jan 5, 2010 at 11:58 AM, Thadeus Burgess wrote: > ... > > There is a way of using the represent attribute... > > so export_to_csv(..., represent=True) > > Will use the fields represent attribute > > db.table.field.represent = lambda id:

Re: [web2py:38369] Re: UliPad as IDE for web2py

2010-01-05 Thread Thadeus Burgess
There is no way for the browser to launch programs on the clients computer, this would be an inherit security vulnerability which is why browsers do not allow websites to do this. The only way is like a firefox plugin that performs this... but not everyone uses firefox. I only use the web2py admi

Re: [web2py:38368] Re: Is there any 'Ad Rotator' like in ASP in web2py

2010-01-05 Thread Thadeus Burgess
You will need to look at the headers for that information link clicks on each link will need to use javascript, or a link redirects itself to another function that rewrites the url to the correct link registering the link as being clicked, like tinyurl but keeps track of how many times it goes

Re: [web2py:38367] Detecting JS on server side

2010-01-05 Thread Thadeus Burgess
no. Well... the only way to verify, is if you have an AJAX callback to the server if you receive the callback, they have javascript... if you don't receive one... then they dont. def receive_if_js(): session.has_javascript = True def index(): if session.has_javascript: ... {{

Re: [web2py:38366] Re: Exception

2010-01-05 Thread Thadeus Burgess
... There is a way of using the represent attribute... so export_to_csv(..., represent=True) Will use the fields represent attribute db.table.field.represent = lambda id: -Thadeus On Tue, Jan 5, 2010 at 10:39 AM, mdipierro wrote: > as a short term trunk, you could just replace the f

Re: [web2py:38365] Re: Which DB suit best with Web2py

2010-01-05 Thread Thadeus Burgess
s is not a satisfactory solution if > there are many records. > > > Massimo > > On Jan 5, 1:13 am, "K.R.Arun" wrote: >> On Jan 5, 1:26 am, Thadeus Burgess wrote: >> >> > You say that MSSQL and Oracle do not support pagination? In what ways does >&

Re: [web2py:38324] Re: DAL, transactions

2010-01-04 Thread Thadeus Burgess
h PostgreSQL users may be accustomed >> to. Web2Py uses the equivalent of "\set AUTOCOMMIT OFF" as described >> athttp://www.postgresql.org/docs/8.4/interactive/app-psql.html."; >> >> Massimo, what would you think of adding this to the manual? >> &g

[web2py:38318] dal.py

2010-01-04 Thread Thadeus Burgess
There are two statements for VERBATIM in the BaseAdapter of dal.py def VERBATIM(self,first): return first def VERBATIM(self,first): return str(first) -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gro

Re: [web2py:38314] Re: Which DB suit best with Web2py

2010-01-04 Thread Thadeus Burgess
You say that MSSQL and Oracle do not support pagination? In what ways does the database support pagination? How would you take advantage of this for say PostgreSQL on the database level instead of the query level? -Thadeus On Tue, Sep 29, 2009 at 4:06 PM, mdipierro wrote: > > In my view they

Re: [web2py:38313] Re: On database backups

2010-01-04 Thread Thadeus Burgess
For the moment, I am running two cron jobs. One will execute web2py and generate a CSV file of the database, tar it up. The other cron will run an hour later, and will use PGDUMP and tar the sql statements up. It then uses SSH to ship the data to our backup file server. For the moment this seems t

Re: [web2py:38312] Re: SQLFORM, no-table, with fieldsets.

2010-01-04 Thread Thadeus Burgess
I do not think this is about decoupling the presentation logic from the... tree structure.. I am saying that validation and presentation should be decoupled. A Form should be able to validate without needed to know what it tree looks like. All the form validation should care about is what the data

Re: [web2py:38311] Re: DAL, transactions

2010-01-04 Thread Thadeus Burgess
Can you disable auto_commit so that you have to explicitly declare db.commit() ? Also, say I have the following db.table.insert(myfields=...) and then later in the same request, would a db.table.select() pull in the newly inserted record, or does the record need to be committed first? If I ins

Re: [web2py:38304] UliPad as IDE for web2py

2010-01-04 Thread Thadeus Burgess
Currently I am trying out Wing IDE, and it is an awesome python development environment. I have also used web2py with Netbeans, Eclipse + PyDev, and recently I have just been using Gedit for all of my code. If I could afford Wing IDE I would use it explicitly. You can use any IDE or editor

Re: [web2py:38303] Re: Blogitizor

2010-01-04 Thread Thadeus Burgess
, Mengu wrote: > thadeus, > > gonna release the source? > > On Jan 4, 3:39 am, Thadeus Burgess wrote: >> If a planetplanet like application is made for web2py, then I made an >> RSS just for web2py category. >> >> http://thadeusb.com/weblog/feed.rss/category/W

Re: [web2py:38278] Re: Blogitizor

2010-01-03 Thread Thadeus Burgess
If a planetplanet like application is made for web2py, then I made an RSS just for web2py category. http://thadeusb.com/weblog/feed.rss/category/Web2py -Thadeus On Sun, Jan 3, 2010 at 7:17 PM, Thadeus Burgess wrote: > Basically it gets parsed into request.args. > > So

Re: [web2py:38277] Re: Blogitizor

2010-01-03 Thread Thadeus Burgess
Basically it gets parsed into request.args. So http://thadeusb.com/weblog/category/Web Development has a request.args of ['Web Development',] So I then take that name, query my category database to pull its 'id', and then use db.page.categories.like('|'+id+'|') since categories are a one-to-ma

Re: [web2py:38138] Re: Database Keywords

2009-12-31 Thread Thadeus Burgess
. -Thadeus On Thu, Dec 31, 2009 at 9:47 AM, mdipierro wrote: > It will be easier to add something like it. > > On Dec 31, 1:04 am, Thadeus Burgess wrote: >> Can the new DAL have a list of protected keywords for the database and >> throw and exception if you try to define a co

Re: [web2py:38137] Dates

2009-12-31 Thread Thadeus Burgess
Yes... You are right I could. It was late, I was heading to bed, and I just threw the last question in :) -Thadeus On Thu, Dec 31, 2009 at 7:22 AM, Guido Kollerie wrote: > On 31 dec 2009, at 09:19, Thadeus Burgess wrote: > >> Are dates stored in the database as UTC? > >

[web2py:38116] Dates

2009-12-31 Thread Thadeus Burgess
Are dates stored in the database as UTC? How do you convert the dates between UTC / locale ? Is request.now in UTC? -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 unsu

[web2py:38115] Blogitizor

2009-12-31 Thread Thadeus Burgess
OMG!!! It has risen from the depths!!! It is... no not Godzilla... its BLOGITIZOR. I still have to edit some of the posts since they were converted from wordpress to markdown... I will be switching my main domain over when I'm sure things are smoothed out. http://web2py.thadeusb.com/ -Thadeus -

[web2py:38112] Database Keywords

2009-12-30 Thread Thadeus Burgess
Can the new DAL have a list of protected keywords for the database and throw and exception if you try to define a column with the keyword? -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...@goog

[web2py:38110] Re: Bug in appadmin view next 100 rows

2009-12-30 Thread Thadeus Burgess
I take that back, this does not solve it, since web2py ends up reversing the query, so the next 100 rows is actually the next 100 from the end. -Thadeus On Wed, Dec 30, 2009 at 11:58 PM, Thadeus Burgess wrote: > What I'm trying to do: > > Sort by a row (say last_name). Then

[web2py:38109] Bug in appadmin view next 100 rows

2009-12-30 Thread Thadeus Burgess
What I'm trying to do: Sort by a row (say last_name). Then view the next 100 rows. What I expect: For the next 100 to continue with the sorted query What happens: The query resets How to fix it: I'm sure there is a better way, but the orderby get_vars is being lost in the middle... so {

Re: [web2py:38108] LOL

2009-12-30 Thread Thadeus Burgess
Hey... thats a good idea >.< -Thadeus 2009/12/30 Zoom.Quiet : > On Thu, Dec 31, 2009 at 12:27, Massimo Di Pierro > wrote: >> http://london.craigslist.co.uk/stp/1531016430.html >> > > LOL > > -- > http://zoomquiet.org 人生苦短? Pythonic! > 一个人如果力求完善自己,就会看到:为此也必须同时完善他人. 一个人如果不关心别人的完善,自己便不可能完善! > >

Re: [web2py:38042] Re: Excess whitespace in html

2009-12-29 Thread Thadeus Burgess
d)) > > > > On Dec 29, 8:06 pm, Thadeus Burgess wrote: >> Currently I am using the following, works perfect for my applications... >> >> import re >> >> def save_pre(match): >>     s = match.group() >>     if s.startswith('>        or

Re: [web2py:38040] Re: how to safely process a big queue?

2009-12-29 Thread Thadeus Burgess
A transaction can have multiple inserts/updates/deletes. So basically what web2py is doing, is when a request comes in, it starts a new transaction with the database. Then web2py executes the models/controllers/action, which perform operations on the database. Now if web2py catches an exception, it

Re: [web2py:38038] Re: Excess whitespace in html

2009-12-29 Thread Thadeus Burgess
Currently I am using the following, works perfect for my applications... import re def save_pre(match): s = match.group() if s.startswith('|(?s)|(?s)') dd = cpat.sub(save_pre, response.render(d)) lgh = latest_guppy_heapy() return dd if request.controller not in ['',] \ and

Re: [web2py:38037] Re: how to safely process a big queue?

2009-12-29 Thread Thadeus Burgess
Does .update_record() call a db.commit()? -Thadeus On Tue, Dec 29, 2009 at 2:10 PM, toomim wrote: >        if success: >            db.commit() >        else: >            db.rollback() -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

Re: [web2py:38016] CleverCSS

2009-12-29 Thread Thadeus Burgess
:-P > Alex > > El 29/12/2009 9:31, Thadeus Burgess escribió: >> >> Just letting everyone know about this... This is AWESOME. As a >> programmer, I don't like css... but this makes css that much more >> bearable :) >> >> http://sandbox.pocoo.org/

Re: [web2py:38015] Re: plugin development notes/docs ?

2009-12-29 Thread Thadeus Burgess
>If plugins have models in their own folder, then should all models be >executed when a non-plugin controller is called, including plugin >models? If so, there would be a lot overhead to new directory >structure. Moreover in which order would they be executed? Whatever >you choose would not be obvi

[web2py:37999] CleverCSS

2009-12-29 Thread Thadeus Burgess
Just letting everyone know about this... This is AWESOME. As a programmer, I don't like css... but this makes css that much more bearable :) http://sandbox.pocoo.org/clevercss/ now only if I could integrate this into web2py -Thadeus -- You received this message because you are subscr

Re: [web2py:37998] Re: how to safely process a big queue?

2009-12-29 Thread Thadeus Burgess
Ah yes, so back to my original thought db(status == 'pending').update(status = 'pending-' + request.now) for db(status == 'pending-' + request.now).select(): task.update_record(status = 'processing-' + request.now success = do_the_long_thing(task) fail if success: task.update_record(s

Re: [web2py:37996] how to safely process a big queue?

2009-12-28 Thread Thadeus Burgess
for db(status == 'pending').select(): task.update_record(status == 'processing') success = do_long_thing_with(task) fail if success: task.update_record(status = 'done') This way, records that have a status of processing will not get pulled in by a concurrent thread. -Thadeus O

[web2py:37994] auth.settings.controller

2009-12-28 Thread Thadeus Burgess
When I set auth.settings.controller = 'admin' Shouldn't it then default to that? When I request an action that requries login, it takes me to http://127/init/default/user/login which is... well wrong. Looking at the code, the login_url, etc... uses self.url() however the setttings.controlle

Re: [web2py:37985] Re: new plugin comments

2009-12-28 Thread Thadeus Burgess
th it. Also, i included my comments CSS I am using, this could be edited and customized as well. I designed the html in a way that could be easily manipulated by css. -Thadeus On Mon, Dec 28, 2009 at 9:23 PM, Thadeus Burgess wrote: > Is it ok if I comment it first before I send it? >

Re: [web2py:37982] Re: new plugin comments

2009-12-28 Thread Thadeus Burgess
Is it ok if I comment it first before I send it? -Thadeus On Mon, Dec 28, 2009 at 8:30 PM, mdipierro wrote: > please do! > > On Dec 28, 8:17 pm, Thadeus Burgess wrote: >> Massimo... Let me send you mine :) >> >> -Thadeus >> >> On Mon, Dec 28, 2009 a

Re: [web2py:37979] Re: feature request: user/logout?_next=/foo/bar

2009-12-28 Thread Thadeus Burgess
What about... auth.settings.login_url = URL(r=request, c='admin/user', f='login') auth.settings.logged_url = URL(r=request, c='admin/user', f='profile') auth.settings.login_next = URL(r=request, c='admin', f='index') auth.settings.logout_next = URL(r=request, c='admin', f='index') auth.settings.r

Re: [web2py:37978] Re: plugin development notes/docs ?

2009-12-28 Thread Thadeus Burgess
Buried beyond 100's of google posts. Good Luck! There is also a screen cast on plugins at vimeo. http://www.vimeo.com/7182692 The reason there is no "official" spec is because the system most likely change. In my recent efforts making plugins, it leads to a quite archaic design pattern for the

Re: [web2py:37977] Re: Patch to Cache

2009-12-28 Thread Thadeus Burgess
ome!, clear and nice... what > is this blogitize about? could you tell us something more? > Thanks in advance, > Alex F > > El 28/12/2009 15:56, mdipierro escribió: >> I also like the screenshot. Would you add a page to appadmin? >> >> On Dec 28, 5:43 am, Thadeus Burges

Re: [web2py:37975] Re: request headers

2009-12-28 Thread Thadeus Burgess
After testing, it was an issue with how I was sending the pings... it was stupidly obvious and one of those moments that make you say "Dope!" So its right there, in request.headers['X-Pingback'] just as it should be. [SOLVED] -Thadeus On Wed, Dec 23, 2009 at 11:56

Re: [web2py:37974] Re: new plugin comments

2009-12-28 Thread Thadeus Burgess
Massimo... Let me send you mine :) -Thadeus On Mon, Dec 28, 2009 at 7:30 PM, mdipierro wrote: > uires trunk web2py or add this at the bottom of y -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@

Re: [web2py:37972] Re: cache.increment

2009-12-28 Thread Thadeus Burgess
Should it not be incrementing the time? -Thadeus On Mon, Dec 28, 2009 at 7:46 PM, Thadeus Burgess wrote: > Yes but it is incrementing the **value**, not the **time**. > > -Thadeus > > > > > > On Mon, Dec 28, 2009 at 9:06 AM, mdipierro wrote: >> I think i

Re: [web2py:37971] Re: cache.increment

2009-12-28 Thread Thadeus Burgess
t; > web2py does not use this anywhere but apps may use it. > > Massimo > > On Dec 28, 12:05 am, Thadeus Burgess wrote: >> def increment(self, key, value=1): >>         self.locker.acquire() >>         try: >>             if key in self.s

[web2py:37927] Patch to Cache

2009-12-28 Thread Thadeus Burgess
Hey Massimo, would you take a patch to Cache that allows it to keep track of its hit ratio? It is nice from a profiling prospective, so that you can easily determine if you have your cache settings too high or too low. Here is a screenshot of it in action... http://static.thadeusb.com/web2py-cach

Re: [web2py:37926] Re: admin disabled because unable to access password file

2009-12-28 Thread Thadeus Burgess
The number in the parameters file maps to the port that web2py is listening on. If you are using WSGI, you should never have to start web2py manually... since apache executes it for you, but I have no experience with webfaction. -Thadeus On Mon, Dec 28, 2009 at 4:04 AM, annet wrote: > Thade

Re: [web2py:37923] admin disabled because unable to access password file

2009-12-28 Thread Thadeus Burgess
https runs on port 443. rename the file to parameters_443.py -Thadeus On Mon, Dec 28, 2009 at 3:04 AM, annet wrote: > When I access my web2py application at: > https://admin.domain.com/welcome/default/index > and navigate to the administrative interface, I get the following > error: > > a

[web2py:37920] cache.increment

2009-12-27 Thread Thadeus Burgess
def increment(self, key, value=1): self.locker.acquire() try: if key in self.storage: value = self.storage[key][1] + value self.storage[key] = (time.time(), value) except BaseException, e: self.locker.release()

Re: [web2py:37913] Re: sad without buttons

2009-12-27 Thread Thadeus Burgess
Its the principle of the thing! I do like my buttons. They are special! -Thadeus On Sun, Dec 27, 2009 at 3:51 PM, mdipierro wrote: > TAG.BUTTON > > you can can make any helper you need with TAG.anything > > On Dec 27, 2:48 pm, Thadeus Burgess wrote: >> Hr

[web2py:37906] sad without buttons

2009-12-27 Thread Thadeus Burgess
Hrm... no BUTTON helper :*( -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 opti

Re: [web2py:37905] Re: DAL, transactions

2009-12-27 Thread Thadeus Burgess
u need. > > The concept of cross-thread transaction is not well defined and would > be very unsafe. Perhaps if you tell us what you are tring to achieve > we can suggest a better way. > > > > On Dec 27, 10:29 am, Thadeus Burgess wrote: >> Is it possible to disable auto_co

Re: [web2py:37900] Re: Confirmation at delete

2009-12-27 Thread Thadeus Burgess
That delete alert box is all on the javascript side -Thadeus On Sun, Dec 27, 2009 at 9:53 AM, Vasile Ermicioi wrote: > I guess you can do that with javascript (client side) > > On Sun, Dec 27, 2009 at 5:42 PM, annet wrote: >> >> Massimo, >> >> I am a complete novice when it comes to program

Re: [web2py:37899] Re: DAL, transactions

2009-12-27 Thread Thadeus Burgess
ons? > > On Sun, Dec 27, 2009 at 5:35 PM, mdipierro wrote: >> >> yes >> >> On Dec 27, 5:55 am, Thadeus Burgess wrote: >> > Does the DAL perform all queries on a transaction basis... that >> > happens to commit() at the end of a successful request?

[web2py:37882] DAL, transactions

2009-12-27 Thread Thadeus Burgess
Does the DAL perform all queries on a transaction basis... that happens to commit() at the end of a successful request? and on an error the transaction is rolled back? -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gro

[web2py:37877] Help with migrating from wordpress.

2009-12-26 Thread Thadeus Burgess
Hi all, I was wondering if anybody could give me some pointers, hopefully by the new year I will have my blog migrated completely to web2py. As far as all the posts/comments/etc, the data is migrated to web2py, and doing just fine. However I have a firm belief that in this day and age, hyperlink

Re: [web2py:37874] How to locale web2py date calendar widget

2009-12-26 Thread Thadeus Burgess
Agreed that web2py still should handle translations. I'm not sure but for the purpose of this discussion, I think those who this concerns should look at how javascript jquery programs perform translation and see if there is a way either A) integrate web2py into this, or B) pass web2py T() to these

Re: [web2py:37869] How to locale web2py date calendar widget

2009-12-26 Thread Thadeus Burgess
How does jquery handle translations? -Thadeus On Sat, Dec 26, 2009 at 9:37 AM, Álvaro Justen [Turicas] wrote: > On Wed, Dec 23, 2009 at 11:29, Alexandre Andrade > wrote: >> While >> >> db.convenio.data_assinatura.requires = >> IS_DATE(format=T('%d-%m-%Y'),error_message=T('deve ser no format

Re: [web2py:37815] Re: Happy Holidays

2009-12-24 Thread Thadeus Burgess
Happy Holidays! Start thinking about your new years resolution lists! -Thadeus On Thu, Dec 24, 2009 at 11:41 AM, Pynthon Pynthon wrote: > Happy holidays! > > 2009/12/24 mr.freeze >> >> I wish you all a peaceful and bug-free holiday from Austin, TX. >> >> -Nathan >> >> On Dec 23, 10:25 pm, m

Re: [web2py:37814] Re: Tired of plugin_* naming schema :(

2009-12-24 Thread Thadeus Burgess
the long name for the > table > >   db.plugin_tagging_tag > > but on top of the plugin controller I shorten it > >   tag = db.plugin_tagging_tag > > Massimo > > On Dec 23, 10:02 pm, Thadeus Burgess wrote: >> Massimo, >> >> I know with the current implementation of plugins

[web2py:37795] Tired of plugin_* naming schema :(

2009-12-23 Thread Thadeus Burgess
Massimo, I know with the current implementation of plugins the current spec calls for you to append plugin_ to all of the function names / database names that get called. Is there a better way of doing this? The reason I ask is that it leads to having long variable and function names... a simple

Re: [web2py:37778] Re: LOAD function anybody?

2009-12-23 Thread Thadeus Burgess
Looks like that would work. -Thadeus On Wed, Dec 23, 2009 at 3:36 PM, mdipierro wrote: > jQuery(':submit,.submit')? > > On Dec 23, 2:32 pm, Thadeus Burgess wrote: >> I would say assume anything of type submit and class submit are submit >> buttons. >>

Re: [web2py:37776] Re: LOAD function anybody?

2009-12-23 Thread Thadeus Burgess
I would say assume anything of type submit and class submit are submit buttons. Personally I use a element for my submit instead of . -Thadeus On Wed, Dec 23, 2009 at 2:54 PM, selecta wrote: > ascript and jquery just when I started with > web2py ... like a month ago, so it would take me qu

Re: [web2py:37773] Re: problem

2009-12-23 Thread Thadeus Burgess
... well if thats too confusing then you can do the following and bypass the nested quotes all together. onclick="javascript:demo('{{=URL(r=request,c='demo',f='index')}}')" -Thadeus On Wed, Dec 23, 2009 at 12:54 PM, Jonathan Lundell wrote: > On

Re: [web2py:37768] Re: problem

2009-12-23 Thread Thadeus Burgess
You need the template python brackets. -Thadeus On Wed, Dec 23, 2009 at 11:52 AM, annet wrote: > Massimo and Jonathan, > >> I do not why but why not just >> >> > target="demo"> > > Thanks, that solves my problem in this case, because I don't need to > re-size the window. > > > Maybe beca

Re: [web2py:37767] Re: Postgresql-types limited by web2py :(

2009-12-23 Thread Thadeus Burgess
I am also curious about using the postgresql inet type. -Thadeus On Wed, Dec 23, 2009 at 10:21 AM, mdipierro wrote: > SQLCustomType is not documented because I am not promising backward > compatibility for it in the new DAL (The functionality will be there > but the API may change). Anyway h

Re: [web2py:37766] Re: request headers

2009-12-23 Thread Thadeus Burgess
in parsed in request.env.http_* and unparesed in > request.wsgi.environ > > which os? which web2py? > > > On Dec 23, 1:27 am, Thadeus Burgess wrote: >> I am not seeing a place where you can read the request.headers, neither in >> the request.env or request.wsgi.envi

[web2py:37734] call xmlrpc methods with dot [SOLVED]

2009-12-23 Thread Thadeus Burgess
as to this specification... http://www.hixie.ch/specs/pingback/pingback I must be able to call pingback.ping, however you cannot have dots in method names. The solution, at least for this example, is to modify the __name__ attribute of the function @service.xmlrpc def pingback_ping(source, targ

[web2py:37730] request headers

2009-12-22 Thread Thadeus Burgess
I am not seeing a place where you can read the request.headers, neither in the request.env or request.wsgi.environ -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 unsubsc

Re: [web2py:37716] Re: mercurial HELP!

2009-12-22 Thread Thadeus Burgess
le "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > > python2.5/ConfigParser.py", line 634, in _interpolate_some > >"'%%' must be followed by '%%' or '(', found: %r" % (rest,)) > > ConfigParser.Inte

Re: [web2py:37709] mercurial HELP!

2009-12-22 Thread Thadeus Burgess
You need to include the username/password as an in-line to the URL. default = https://:@web2py.googlecode.com/hg/ so... https://mdipierro:s343...@web2py.googlecode.com/hg/ -Thadeus On Tue, Dec 22, 2009 at 5:46 PM, mdipierro wrote: > I have this in my .hg/hgrc > > [paths] > default = https

Re: [web2py:37704] Re: SQLite to Postgress

2009-12-22 Thread Thadeus Burgess
; > Ive also tried this but in both cases web2py doesnt create any files. > > > > > db.export_to_csv_file(open('db.csv','wb')) > > > > > db.import_from_csv_file(open('db.csv','rb')) > > > db.commit() > > > &g

Re: [web2py:37703] Web2py and MongoDB

2009-12-22 Thread Thadeus Burgess
The DAL is being rewritten, and MongoDB is one of the new back ends that web2py will support. It will be about another month and a half before it is ready. -Thadeus On Tue, Dec 22, 2009 at 4:47 PM, Pystar wrote: > This question has been asked before, but I would like to know the > extent of

Re: [web2py:37691] SQLite to Postgress

2009-12-22 Thread Thadeus Burgess
db.export_to_csv_file(open('/path/to/my/file.txt', 'w')) and then when you switch your DAL over... db.import_from_csv_file(open('/path/to/myfile.txt', 'r')) -Thadeus On Tue, Dec 22, 2009 at 3:07 PM, Adolfo wrote: > Hello > > I've been working with sqlite for develpment but now that i have

Re: [web2py:37687] Re: Markdown syntax for tables?

2009-12-22 Thread Thadeus Burgess
I think it would be great, for something that is super simple, and fast. We should still include at least python-markdown2, just since it would give the option to provide more functionality. -Thadeus On Tue, Dec 22, 2009 at 1:24 PM, Massimo Di Pierro wrote: > This is what I have so far. It i

Re: [web2py:37345] Re: Delete File

2009-12-22 Thread Thadeus Burgess
. -Thadeus On Tue, Dec 22, 2009 at 2:10 PM, Yarko Tymciurak < resultsinsoftw...@gmail.com> wrote: > On Dec 22, 12:07 pm, Thadeus Burgess wrote: > > > > > It does provide some interesting options though, instead of deleting > files > > when the record gets delet

Re: [web2py:37672] Re: Markdown syntax for tables?

2009-12-22 Thread Thadeus Burgess
I have suggested python-markdown as well. Massimo is rewriting his own markdown that takes advantage of web2py tag elements. Nothing is stopping you from using python-markdown in your project though, I am using it currently because of the extra features. :) -Thadeus On Tue, Dec 22, 2009 at 1

Re: [web2py:37671] Re: Delete File

2009-12-22 Thread Thadeus Burgess
ltsinsoftw...@gmail.com> wrote: > On Dec 22, 12:28 am, Thadeus Burgess wrote: > > I just figured that would be default behavior... why would I have a file > on > > my system with absolutely no references to them anymore? And no "easy" > way > > to get th

Re: [web2py:37645] Re: Delete File

2009-12-21 Thread Thadeus Burgess
;do something when framework load a Form, or > delete a Field, or create a Button, or even access to Admin, or..." > This way and "interoperable/cross" paragraph (or matrix table) in > documentation would be sufficient to explain some manageable object > actions. Sorry

<    7   8   9   10   11   12   13   14   15   16   >