Re: [web2py:36972] Re: Unable to install application application name

2009-12-10 Thread Jonathan Lundell
On Dec 10, 2009, at 10:33 AM, Thadeus Burgess wrote: I am able to install .w2p.gz apps using the latest devel version. Also, when he says application_name the brackets mean insert a real app name. He just decided to not include his app name to be more understandable for us. The problem

Re: [web2py:36983] Re: Unable to install application application name

2009-12-10 Thread Jonathan Lundell
On Dec 10, 2009, at 11:51 AM, mdipierro wrote: Yes this has been fixed in trunk. If what I'm looking at is the trunk (I'm still a little fuzzy on hg updates), there's a problem between app_install() and w2p_update(). The former can deliver a filename: name.tar.gz. The latter converts this to

Re: [web2py:36986] Re: Unable to install application application name

2009-12-10 Thread Jonathan Lundell
On Dec 10, 2009, at 2:27 PM, Yarko Tymciurak wrote: On Dec 10, 2:12 pm, Thadeus Burgess thade...@thadeusb.com wrote: I see, Massmo, I checked my emails and I had sent you the wrong patch, it only included the fix for content-type of the admin application, instead of the logic that allows you

Re: [web2py:36990] Re: Unable to install application application name

2009-12-10 Thread Jonathan Lundell
but endswith is a better solution. I see; the : saves us. And the .tar unlink? On Dec 10, 4:37 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 10, 2009, at 2:27 PM, Yarko Tymciurak wrote: On Dec 10, 2:12 pm, Thadeus Burgess thade...@thadeusb.com wrote: I see, Massmo, I checked my

Re: [web2py:36992] Re: Unable to install application application name

2009-12-10 Thread Jonathan Lundell
) os.mkdir(path) did_mkdir = True w2p_unpack(upname, path) if extension != 'tar': os.unlink(upname) fix_newlines(path) return upname except Exception: On Dec 10, 4:52 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 10, 2009, at 2:46

Re: [web2py:37008] Re: Unable to install application application name

2009-12-10 Thread Jonathan Lundell
On Dec 10, 2009, at 6:36 PM, mdipierro wrote: I think it removes the uploaded file execpt if tar because in case of tar it is remoevd by unpack. you may want to check it. Alvaro wrote this function. That's right. I'm not sure about the compressed files, though. I'd do some cleanup, but at

Re: [web2py:37033] Re: Unsubscribe is not working

2009-12-11 Thread Jonathan Lundell
On Dec 11, 2009, at 9:42 AM, mr.freeze wrote: Did you already go to http://groups.google.com/group/web2py/subscribe and select 'No Email'? I took care of it. On Dec 11, 6:36 am, Offray Vladimir Luna Cárdenas off...@riseup.net wrote: Hi all, First, thanks for all the learning. I

[web2py:37143] Murky

2009-12-13 Thread Jonathan Lundell
It's not yet to beta, per the developer, but I'm finding Murky a very nice, lightweight hg GUI for OS X. http://jens.mooseyard.com/2009/04/murky-a-mercurial-client-app/ -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py:37180] updated update script

2009-12-14 Thread Jonathan Lundell
Trivial change: remove update logic. #!/bin/bash # # update-web2py.sh # 2009-12-14 # # install as update-web2py.sh and make executable: # chmod +x web2py.sh # # save a snapshot of current web2py/ as web2py-version.zip # download the current released version of web2py # unzip downloaded

Re: [web2py:37188] Re: updated update script

2009-12-14 Thread Jonathan Lundell
On Dec 14, 2009, at 9:22 AM, mdipierro wrote: email it to me. Please thank you. Here you are. I changed the comments to indicate that it should live in the parent of web2py/. I could change it to run as web2py/update-web2py.sh, but that means that it gets overwritten while executing, and in

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

2009-12-14 Thread Jonathan Lundell
On Dec 14, 2009, at 8:39 PM, Alex Fanjul wrote: But... what about pages size? Doing some very basic test with Denes Example show us that including blank lines increase the output page size by *x2 factor* at least (ie. 67KB vs 130KB). Maybe I'm wrong, but, forgetting server deflating (which

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

2009-12-15 Thread Jonathan Lundell
On Dec 15, 2009, at 8:13 AM, kbochert wrote: Jonathon wrote: 2x seems like an awful lot, since a newline is only one byte. Are you sure? The output typically has multiple leading spaces on those blank lines, presumably driven by the indenting of the original html. I finally noticed the

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

2009-12-15 Thread Jonathan Lundell
On Dec 15, 2009, at 12:08 PM, Alex Fanjul wrote: Hello Kbochert, it seems you found out a way to make cleaner output, do you get it working automatically? (ie. with out manual action for output clean process) I'm thinking in alway pass dictionaris throught filter function so instead of

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

2009-12-15 Thread Jonathan Lundell
On Dec 15, 2009, at 5:11 PM, kbochert wrote: Amazingly enough, the following snippet appears to filter excess lines while leaving pre blocks unchanged!! You might want pre.*?/pre import re def remove_line(mo): s = mo.group() if s.startswith('pre'): return s return '\n'

Re: [web2py:37332] Re: Select DISTINCT ON Field Name bug?

2009-12-15 Thread Jonathan Lundell
On Dec 15, 2009, at 9:30 PM, mdipierro wrote: Good catch! Uploading fix in trunk. Would you explain the fix, please, to those of us who don't understand the subtlety of it? Thanks. Massimo On Dec 15, 11:13 pm, jonfroehlich jonfroehl...@gmail.com wrote: Although the web2py documentation

[web2py:37374] welcome/appadmin plugin

2009-12-16 Thread Jonathan Lundell
I was updating a small web2py app this morning, after moving to 1.74.2, and in doing so I diffed some of its files against the current welcome app, and noticed that a lot of the appadmin code (that I hadn't modified) had been updated (primarykey support, for example). Likewise,

Re: [web2py:37399] Re: welcome/appadmin plugin

2009-12-16 Thread Jonathan Lundell
(primarykey in the recent case), I'd need to. And personally, I prefer to keep that kind of stuff up to date on (admittedly vague) general principles. In any event, I'll wait for the future to show up... Massimo On Dec 16, 12:30 pm, Jonathan Lundell jlund...@pobox.com wrote: I

Re: [web2py:37405] Re: welcome/appadmin plugin

2009-12-16 Thread Jonathan Lundell
well remove from an app, too. I'm not pushing the idea too hard; it was just slightly more than an idle thought I had while doing the update manually. Massimo On Dec 16, 4:17 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 16, 2009, at 12:28 PM, mdipierro wrote: On the one side

Re: [web2py:37425] Re: Switch from http to https within app

2009-12-16 Thread Jonathan Lundell
On Dec 16, 2009, at 6:58 PM, Álvaro Justen [Turicas] wrote: On Thu, Dec 10, 2009 at 20:50, mdipierro mdipie...@cs.depaul.edu wrote: I would suggest creating a model 0_redefine_url.py that contains: _URL=URL def URL(*a,**b): if not 'secure' in b: return _URL(*a,**b) elif

Re: [web2py:37456] Re: Switch from http to https within app

2009-12-17 Thread Jonathan Lundell
called with URL(app,...) because it would have no knowledge of the request object. I think whether to use https and/or https should be handled outside the application. Massimo On Dec 16, 10:52 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 16, 2009, at 6:58 PM, Álvaro Justen

Re: [web2py:37460] Re: web2py blog screencast (Re-Encoded)

2009-12-17 Thread Jonathan Lundell
On Dec 17, 2009, at 4:51 AM, Daniel Antonio Aguayo Catalán wrote: I have re-encoded video mengu's screencast video with Theora and now have 3 versions for you: * 135 MiB (1280x928): http://omploader.org/vMzBoeg * 57,5 MiB (800x580): http://omploader.org/vMzBrZg * 37.5 MiB (640x462):

Re: [web2py:37469] Re: Switch from http to https within app

2009-12-17 Thread Jonathan Lundell
called with URL(r=request,...) but not when called with URL(app,...) because it would have no knowledge of the request object. I think whether to use https and/or https should be handled outside the application. Massimo On Dec 16, 10:52 pm, Jonathan Lundell jlund...@pobox.com wrote

Re: [web2py:37476] bug in tools.py class Mail

2009-12-17 Thread Jonathan Lundell
On Dec 17, 2009, at 12:55 PM, Bob_in_Comox wrote: There is a typo error in line 257 of tools.py (latest version 1.74.3): 256.if reply_to != None: 257.payload['Reply-To'] = reply_to.encode(ecoding) should be: 257.payload['Reply-To'] =

Re: [web2py:37544] Re: Control MIME type for static download

2009-12-18 Thread Jonathan Lundell
On Dec 18, 2009, at 11:48 AM, mdipierro wrote: How is it served? via default/download or via static? Which web2py version? There's no w2p entry in CONTENT_TYPE. On Dec 18, 1:24 pm, mr.freeze nat...@freezable.com wrote: When I host a .w2p file on Dreamhost, it tries to open in the browser

Re: [web2py:37545] Control MIME type for static download

2009-12-18 Thread Jonathan Lundell
On Dec 18, 2009, at 11:24 AM, mr.freeze wrote: When I host a .w2p file on Dreamhost, it tries to open in the browser with Firefox, displaying garbled binary data on the screen. I have tried this in my .htaccess file: Files *.w2p ForceType application/octet-stream Header set

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

2009-12-22 Thread Jonathan Lundell
On Dec 22, 2009, at 4:41 PM, mdipierro wrote: does not work gives me an error because the username is my email address and contains @. What if you encode it as %40? On Dec 22, 5:59 pm, Thadeus Burgess thade...@thadeusb.com wrote: You need to include the username/password as an in-line to

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

2009-12-22 Thread Jonathan Lundell
by '%' or '(', found: '%40cs.depaul.edu:passw...@web2py.googlecode.com/hg/' make: *** [push] Error 1 On Dec 22, 6:50 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 22, 2009, at 4:41 PM, mdipierro wrote: does not work gives me an error because the username is my email address and contains

Re: [web2py:37761] a onclick=javascript: ... problem

2009-12-23 Thread Jonathan Lundell
On Dec 23, 2009, at 7:52 AM, annet wrote: a class=adiv onmouseover=this.style.cursor='pointer'; onclick=javascript:demo('%s')%URL(r=request,c='demo',f='index') h2Fitwise Demo Applicatie/h2 pIn de Demo Applicatie .../p /a !-- adiv -- ... and in the _ajax.html file: function

Re: [web2py:37769] Re: a onclick=javascript: ... problem

2009-12-23 Thread Jonathan Lundell
On Dec 23, 2009, at 9:52 AM, annet wrote: By escaping my Python code you mean escaping this line: onclick=javascript:demo('%s')%URL(r=request,c='demo',f='index') ... how would I do that? I'm not quite sure of the syntax, but something more like this:

Re: [web2py:37771] Re: a onclick=javascript: ... problem

2009-12-23 Thread Jonathan Lundell
On Dec 23, 2009, at 10:06 AM, Thadeus Burgess wrote: a class=adiv onmouseover=this.style.cursor='pointer'; onclick=javascript:demo('%s')%URL(r=request,c='demo',f='index') You need the template python brackets. a class=adiv onmouseover=this.style.cursor='pointer';

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

2009-12-29 Thread Jonathan Lundell
On Dec 15, 2009, at 3:23 PM, mdipierro wrote: You may also want to look into scripts/cleanhtml.py and scripts/ cleancss.py. cleanhtml.py would benefit from some comments -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

Re: [web2py:38489] Can you please turn off the message counter in the subject?

2010-01-06 Thread Jonathan Lundell
On Jan 6, 2010, at 2:25 PM, s...@pobox.com wrote: All web2py emails include both the list name and (apparently) the message counter in the subject. As the message counter auto-increments, no subjects are truly the same and thus my 'k' key in Emacs's VM doesn't kill the entire subject. Any

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

2010-01-06 Thread Jonathan Lundell
On Jan 5, 2010, at 3:13 PM, Thadeus Burgess wrote: 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 A side note: this page (and I suppose others) refer to what I

Re: [web2py] settting two vars to same text

2010-01-15 Thread Jonathan Lundell
On Jan 15, 2010, at 2:26 PM, Wes James wrote: This seems to work, but is there a better way to set some vars to the same value? auth.settings.verify_email_next = auth.settings.request_reset_password_next ='/app/default/login' Is this a good technique or keep vars=value on the same line?

Re: [web2py] settting two vars to same text

2010-01-15 Thread Jonathan Lundell
it. thx, -wes On Fri, Jan 15, 2010 at 3:37 PM, Jonathan Lundell jlund...@pobox.com wrote: On Jan 15, 2010, at 2:26 PM, Wes James wrote: This seems to work, but is there a better way to set some vars to the same value? auth.settings.verify_email_next

[web2py] jQuery to Zoho

2010-01-16 Thread Jonathan Lundell
Some of you may have gotten a message like this today. I pass it along a) because the subject of GGroups has been a topic here, and b) because of the note about their having moved all their old discussions to the new system, a big plus. OTOH, I have no experience at all with Zoho The

[web2py] urlify

2010-01-23 Thread Jonathan Lundell
urlify needs a comment to say explicitly what its intention is. That's partly because it suppresses quite a few characters that are normally legal in URLs, which is confusing. Also, def urlify(s, max_length=80): s = s.lower() # string normalization, eg è = e, ñ = n s =

Re: [web2py] Re: urlify

2010-01-24 Thread Jonathan Lundell
On Jan 24, 2010, at 8:30 AM, mdipierro wrote: I will take a patch. ;-) I'll contribute one. Any objection to changing the name to slugify, since it's not really urlifying its input? On Jan 23, 7:03 pm, Jonathan Lundell jlund...@pobox.com wrote: urlify needs a comment to say explicitly

Re: [web2py] Re: urlify

2010-01-24 Thread Jonathan Lundell
...@cs.depaul.edu wrote: No objection. It is not in stable it. On Jan 24, 10:55 am, Jonathan Lundell jlund...@pobox.com wrote: On Jan 24, 2010, at 8:30 AM, mdipierro wrote: I will take a patch. ;-) I'll contribute one. Any objection to changing the name to slugify, since it's

Re: [web2py] Re: urlify

2010-01-24 Thread Jonathan Lundell
on a framework to build a newspaper site on. I don't think that slug, outside the Django community, is a standard term to name such url-friendly strings. More often they're referred to as pretty urls. On 24 Gen, 17:55, Jonathan Lundell jlund...@pobox.com wrote: On Jan 24, 2010, at 8:30 AM

Re: [web2py] Re: urlify

2010-01-24 Thread Jonathan Lundell
and not value==self.sugify(value): return (value,self.error_message) return (self.slugify(value),None) On Jan 24, 12:39 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jan 24, 2010, at 9:53 AM, mdipierro wrote: I do not know about this. What do other people think? I do not have

Re: [web2py] Re: Serious issue with upgrading to latest version

2010-01-26 Thread Jonathan Lundell
On Jan 26, 2010, at 10:19 AM, mdipierro wrote: Than it bust be an application bug. I think you may have a IS_DATE validator on a 'string' field instead of a 'date' field. You also need to move over the new appadmin(s) into your app. Normally this is not required during upgrades since they

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Jonathan Lundell
On Jan 27, 2010, at 11:45 AM, mdipierro wrote: I agree it is a bug that ids may not be unique. Yet fixing this will break backward compatibility. Perhaps we can add the same strings to the class attribute without breaking backward compatibility but we should not remove them from id. What do

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Jonathan Lundell
On Jan 27, 2010, at 2:30 PM, Thadeus Burgess wrote: if it was defaulted to None we could go if _id == None then id = tablename else id = _id Id accept that, just set a unique id for each of my forms and nothing will conflict and it will still keep good with old apps. And _id = False for

Re: [web2py] Re: SQLFORM generating duplicate ids in HTML

2010-01-27 Thread Jonathan Lundell
= formname id = formname_field #formname input { ... } #formname #formname_users_email { ... } #formname .formname { ... } This would give a lot more flexibility from both a CSS design and a UI design using jquery selection. -Thadeus On Wed, Jan 27, 2010 at 5:12 PM, Jonathan

Re: [web2py] Re: format zero IS_IN_DB

2010-01-29 Thread Jonathan Lundell
Yes, the option is important. But the case for a default of None is pretty convincing. On 1/29/10, mdipierro mdipie...@cs.depaul.edu wrote: Let's hear a few more opinions. I don't just want to say no. The problem is that we had this discussion already and people insisted such option should be

Re: [web2py] routes.py SUCKS

2010-01-29 Thread Jonathan Lundell
On Jan 29, 2010, at 9:17 AM, Tamas wrote: I would like to tackle the simple task of running web2py on a folder of the website, say http://example.org/w2p/ So that an application will be like http://example.org/w2p/example/default/index Setting up the WSGI handler is easy, however

Re: [web2py] response.postprocessing

2010-01-29 Thread Jonathan Lundell
On Jan 29, 2010, at 1:16 PM, Thadeus Burgess wrote: Maybe its just me and I need to look harder but I can't find where web2py calls this... at all run_controller_in() (in compileapp.py) -- You received this message because you are subscribed to the Google Groups web2py-users group. To

Re: [web2py] Re: has anybody check the the cron in trunk?

2010-01-30 Thread Jonathan Lundell
On Jan 30, 2010, at 1:40 PM, mdipierro wrote: The problem is when paths contain spaces. I thought even in windows in this case one should esacpe spaces with '\ ' and use either \\ ('' in python) or / ('/') to separate folders. For example: 'C:/windows/Documents\ and\ Settings/' or

Re: [web2py] jquery tools

2010-01-30 Thread Jonathan Lundell
On Jan 30, 2010, at 2:57 PM, mdipierro wrote: This could be useful. Perhaps we should consider rewriting examples using this http://flowplayer.org/tools/index.html It looks very, very nice. One concern, though, is this from their front page: Let's face it: do you really need

Re: [web2py] Re: has anybody check the the cron in trunk?

2010-01-31 Thread Jonathan Lundell
On Jan 31, 2010, at 11:20 AM, Brian M wrote: Yes, that mostly fixes things. However, you still need an explicit test for the @reboot or it won't ever run, check won't have a -1 minute in it. I am testing out a modified cron.py with all of the fixes we've covered in this thread plus the

Re: [web2py] CMS content upload

2010-01-31 Thread Jonathan Lundell
On Jan 31, 2010, at 1:17 PM, weheh wrote: Anybody know of such a markup language and its associated python module? (I know python has an html parser and I could block all tags other than a select few, but thought I'd ask in case there's a better answer out there.) How about markdown (in

Re: [web2py] Re: DAL migration problem

2010-02-02 Thread Jonathan Lundell
On Feb 2, 2010, at 9:31 AM, Thadeus Burgess wrote: Actually, we can use the Adaptors to hold specific keywords. So in DAL.__init__ can have for fields if fieldname in self._adapter.KEYWORDS then raise SyntaxError It's be nice to have a way to take advantage of the keyword lists in Adapters

Re: [web2py] Re: DAL migration problem

2010-02-02 Thread Jonathan Lundell
On Feb 2, 2010, at 12:48 PM, Thadeus Burgess wrote: You can view a proposed change, I have sent this to Massimo to look at. http://code.google.com/r/thadeusburgess-web2py/source/detail?r=e875496cc5978200fb6c0aa0f85a8df1a945df21 I'm not sure what keywords we really want to use or not, but

Re: [web2py] Re: DAL migration problem

2010-02-02 Thread Jonathan Lundell
On Feb 2, 2010, at 1:19 PM, Thadeus Burgess wrote: 1. Its only in two places. Once for tablename, and once for fieldname. And then this needs to be done for sql.py just in case DRY 2. Yes very chatty. What about the following? DAL('sqlite', pool_size=1, check_reserve=None)

[web2py] Lulu sale

2010-02-02 Thread Jonathan Lundell
In case anyone is about to buy a copy of the manual from Lulu, there's a 15% discount through tomorrow. Coupon code SHADOW. -- 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

Re: [web2py] Re: how to restore corrupted .table files?

2010-02-02 Thread Jonathan Lundell
On Feb 2, 2010, at 3:09 PM, Richard wrote: hmm, can't find make_migrate anywhere, even in trunk...although I saw it discussed in another thread. It's fake_migrate. On Feb 3, 1:42 am, mdipierro mdipie...@cs.depaul.edu wrote: Do you have a custom auth_table? If so you can do:

Re: [web2py] making changes in web2py

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:09 AM, Thadeus Burgess wrote: if you already have a clone, make your changes, then commit them to your local copy. When you want updates do hg pull web2py hg merge It should update and leave your changes, unless there is a conflict which you will need a program

Re: [web2py] making changes in web2py

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:19 AM, Thadeus Burgess wrote: What is wrong with http://mercurial.selenic.com/guide/ There is nothing special about hg+web2py together. I was hoping for something a little more concise, and also some guidance for how to use my own clones (or whatever) on Google Code.

Re: [web2py] making changes in web2py

2010-02-03 Thread Jonathan Lundell
.) -Thadeus On Wed, Feb 3, 2010 at 11:29 AM, Jonathan Lundell jlund...@pobox.com wrote: ssimo pulls the change from that repository, rather than our having to try to pass around patches by em -- You received this message because you are subscribed to the Google Groups web2py-users

Re: [web2py] Re: DAL migration problem

2010-02-03 Thread Jonathan Lundell
On Feb 3, 2010, at 9:43 AM, Thadeus Burgess wrote: Ok take a look at the following proposed changes I'll try to look at it later today; I'm off to work now. Is the check made every time, or only when a table is actually being created (or migrated)? The latter should be adequate, at least by

Re: [web2py] Re: making changes in web2py

2010-02-04 Thread Jonathan Lundell
On Feb 3, 2010, at 9:38 PM, Thadeus Burgess wrote: -1 for admin username +1 for anti-brute-forcing. If incorrect password typed 3 times, ban the IP permanently until you log into ssh and edit a pickled file. We had a longish thread on this general subject a while back. I could probably find

Re: [web2py] Re: admin app misses symlinked directories

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 7:01 AM, mdipierro wrote: Could be that isdir returns false on symlinked directories? form admin/ controller/default.py if os.path.exists(aviewpath): if os.path.isdir(aviewpath): viewlist = glob(os.path.join(aviewpath,'*.html'))

Re: [web2py] Re: format zero IS_IN_DB

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 7:08 AM, mdipierro wrote: I do not really have an opinion on this. I am only reluctant to changes in behavior. Anyway, I am prepared to make this change (zero=None by default). I would like to know that all major contributors are on board so that you can answer the emails

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
. If you set an adapter name, it will check the adapters KEYWORDS and throw a SyntaxError. This only effects the new dal, (dal.py) since i do not have time to implement this for sql.py. As Jonathan Lundell suggests in his mercurial post, you can code review this change. Once we are happy

Re: [web2py] Re: format zero IS_IN_DB

2010-02-04 Thread Jonathan Lundell
: is there a straightforward way to prepopulate a form with an existing database row? I know, I should RTFM On Feb 4, 9:25 am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 4, 2010, at 7:08 AM, mdipierro wrote: I do not really have an opinion on this. I am only reluctant to changes in behavior

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 8:19 AM, Thadeus Burgess wrote: * Could we use 'check_reserved' instead of 'check_reserve'? It sounds more natural to me. Why not. * Capitalize SQL in the error message strings It is capitalized. raise SyntaxError, 'invalid name \'%s\': is a \'common\' reserved

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 9:02 AM, Thadeus Burgess wrote: 1. I do not capitalize name because this is actually what you are attempting to call your column, it could be 'select', 'Select', 'SELect'. It just seemed more logical to display the name that you wrote. Though it can be capitalized. I

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 11:08 AM, Thadeus Burgess wrote: Ok I get what you mean on changing sql to SQL. Misunderstanding, I thought you ment the keyword that was being thrown off. It will be an immutable array (tuple). The bracket just slipped in there :P Any ideas you could share on

Re: [web2py] Re: Updating contents of plugin_datatable via Ajax?

2010-02-04 Thread Jonathan Lundell
Speaking of plugin_datatable, the example at http://www.web2py.com/plugins/default/datatable looks v. messed up via Safari and Firefox (I haven't tried anything else). Is that expected? I get something similar when I use it in my own app. FWIW, the CSS doesn't validate. (Among other things, //

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
On Feb 3, 2010, at 9:45 AM, Thadeus Burgess wrote: As an added note, I could use some help in creating the database specific keywords lists. http://drupal.org/node/141051 (I might have sent this before?) -- You received this message because you are subscribed to the Google Groups

Re: [web2py] Re: Updating contents of plugin_datatable via Ajax?

2010-02-04 Thread Jonathan Lundell
, and it's working OK. BTW, // isn't a comment delimiter in CSS; you want to use /* this */. .dataTables_wrapper { // position: relative; // min-height: 100px; // _height: 302px; // clear: both; float: left; } On Feb 4, 5:04 pm, Jonathan Lundell jlund...@pobox.com wrote: Speaking

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 7:03 PM, Thadeus Burgess wrote: Yes, there is much work to be done formatting each one of those lists into a python tuple object. That part isn't so bad. I need to know which ones you want. Here's MySQL 5.5: 'ACCESSIBLE', 'ADD', 'ALL',

Re: [web2py] Re: DAL migration problem

2010-02-04 Thread Jonathan Lundell
On Feb 4, 2010, at 7:19 PM, Thadeus Burgess wrote: A quick question, what is your opinion on non-reserved keywords ? Should they be included, excluded, separated ? non-reserved words are acceptable and do not get in the way of your queries. I don't know enough to have an opinion, but if

Re: [web2py] proposal for online documentation

2010-02-05 Thread Jonathan Lundell
On Feb 5, 2010, at 8:11 AM, mdipierro wrote: I got a private email from David and we have an idea: 1) organize a wiki with the same table of content as the book. Each page will have an errata and a a faq. I'd been thinking of that myself (so it must be a good idea!). It will include some

[web2py] SQLFORM: string field length, user id-email

2010-02-05 Thread Jonathan Lundell
A couple of SQLFORM-related questions. 1. I'd like a wider string input field, and I'm not sure how to get it. Unless there's an easier way, I was thinking I'd extend the string widget to embed a size maxlength. The manual mentions widget extension, but there's no example (only an example of

Re: [web2py] Re: SQLFORM: string field length, user id-email

2010-02-05 Thread Jonathan Lundell
On Feb 5, 2010, at 4:40 PM, mdipierro wrote: On Feb 5, 4:24 pm, Jonathan Lundell jlund...@pobox.com wrote: A couple of SQLFORM-related questions. 1. I'd like a wider string input field, and I'm not sure how to get it. Unless there's an easier way, I was thinking I'd extend the string

[web2py] IS_HTTP_URL() with user:password

2010-02-05 Thread Jonathan Lundell
IS_URL() fails when a userinfo field is present in the URL. Examples: http://u...@domain.com http://user:passw...@domain.com See http://tools.ietf.org/html/rfc3986 3.2.1. (The password portion is deprecated as insecure, but it's still legal.) Also

Re: [web2py] Re: IS_HTTP_URL() with user:password

2010-02-05 Thread Jonathan Lundell
On Feb 5, 2010, at 8:19 PM, mdipierro wrote: Yes. This is important. Can you send me a patch? I may have some time for it this weekend. Do you think it needs a switch? On Feb 5, 10:06 pm, Jonathan Lundell jlund...@pobox.com wrote: IS_URL() fails when a userinfo field is present in the URL

Re: [web2py] Re: SQLFORM: string field length, user id-email

2010-02-06 Thread Jonathan Lundell
On Feb 5, 2010, at 8:13 PM, mdipierro wrote: On Feb 5, 7:53 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 5, 2010, at 4:40 PM, mdipierro wrote: On Feb 5, 4:24 pm, Jonathan Lundell jlund...@pobox.com wrote: A couple of SQLFORM-related questions. 1. I'd like a wider string input

[web2py] cancel button

2010-02-06 Thread Jonathan Lundell
I seem to be full of elementary questions this week. I've got a simple SQLFORM to add a row to a database, and I want to have a cancel button along with the submit button. How? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

Re: [web2py] Re: cancel button

2010-02-06 Thread Jonathan Lundell
that was clicked. That seems more in keeping with the self-submit philosophy, don't you think? On Feb 6, 12:09 pm, Jonathan Lundell jlund...@pobox.com wrote: I seem to be full of elementary questions this week. I've got a simple SQLFORM to add a row to a database, and I want to have

Re: [web2py] Re: cancel button

2010-02-06 Thread Jonathan Lundell
On Feb 6, 2010, at 12:58 PM, Jonathan Lundell wrote: On Feb 6, 2010, at 12:38 PM, mdipierro wrote: form[0][-1][1].append(BUTTON(_onclick=)) Thanks. Ideally, I'd like to return to the form.accepts call in such a way that the accepts return test can recognize the cancelation

Re: [web2py] Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread Jonathan Lundell
On Feb 6, 2010, at 7:53 PM, weheh wrote: In a crud form (or other form) where I have a field declared as a string that requires=IS_IN_SET(['A','B','C']), the first item in the automatically-generated pull-down for that enumerated field is a blank. Why is that, if there is no blank in my

Re: [web2py] Re: how to disable field access if not authorized

2010-02-07 Thread Jonathan Lundell
On Feb 7, 2010, at 7:32 AM, weheh wrote: These are readable, but not writable. What I want is for widget to get grayed-out and not be usable when user doesn't have permission to fill in the field. Ideally, I think it would make sense to be able to do this as a requirement to a field,

[web2py] password hash problems

2010-02-07 Thread Jonathan Lundell
I've got this (where the key is a text string): from gluon.tools import * auth=Auth(globals(),db) # authentication/authorization auth.settings.hmac_key = vpepm_hmac_key auth.define_tables() # creates all needed tables # invoke IS_STRONG only for

Re: [web2py] Re: password hash problems

2010-02-07 Thread Jonathan Lundell
hadn't noticed the split. Massimo, that's contrary to the documentation. On Feb 7, 1:44 pm, Jonathan Lundell jlund...@pobox.com wrote: I've got this (where the key is a text string): from gluon.tools import * auth=Auth(globals(),db) # authentication/authorization

Re: [web2py] Re: password hash problems

2010-02-07 Thread Jonathan Lundell
noticed the problem was that I was manually initializing the database with a sha512 hash, rather than relying on the form. On Feb 7, 1:44 pm, Jonathan Lundell jlund...@pobox.com wrote: I've got this (where the key is a text string): from gluon.tools import * auth=Auth(globals(),db

Re: [web2py] Re: password hash problems

2010-02-07 Thread Jonathan Lundell
, special=1)) ? On Feb 7, 1:44 pm, Jonathan Lundell jlund...@pobox.com wrote: I've got this (where the key is a text string): from gluon.tools import * auth=Auth(globals(),db) # authentication/authorization auth.settings.hmac_key = vpepm_hmac_key auth.define_tables

Re: [web2py] Re: cancel button

2010-02-07 Thread Jonathan Lundell
On Feb 6, 2010, at 9:33 PM, Iceberg wrote: On Feb7, 8:01am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 6, 2010, at 12:58 PM, Jonathan Lundell wrote: On Feb 6, 2010, at 12:38 PM, mdipierro wrote: form[0][-1][1].append(BUTTON(_onclick=)) Thanks. Ideally, I'd like to return

Re: [web2py] Re: cancel button

2010-02-07 Thread Jonathan Lundell
On Feb 7, 2010, at 2:06 PM, mr.freeze wrote: I hate this too: form[0][-1][1]. I have a pending patch that will allow you to grab parent and sibling elements so you can do: form = SQLFORM(db.whatever) submit = form.element(_type='submit')

[web2py] wiki formatting

2010-02-07 Thread Jonathan Lundell
While adding a note to the book errata about hash selection, I noticed that the vertical white space (line to line, graf to graf) on that page appears to be mostly random. Or if there's a method to it, I can't tell what it is. -- You received this message because you are subscribed to the

Re: [web2py] Re: cancel button

2010-02-07 Thread Jonathan Lundell
On Feb 6, 2010, at 9:33 PM, Iceberg wrote: Yes, but be careful of multiple submit buttons. See this post: https://groups.google.com/group/web2py/browse_frm/thread/f44b6f95b058df5 I think I've solved the multiple-submit problem, at the cost of a bit of scripting (but not much):

Re: [web2py] Re: wrong decisions and backward compatibility

2010-02-07 Thread Jonathan Lundell
On Feb 7, 2010, at 6:32 PM, mdipierro wrote: We could add an option like strict=False that if true does what you ask. What's the use case? I'm having trouble seeing what such an option would do for you. Sure, IS_UPPER() should probably have been named TO_UPPER(). But at this point

Re: [web2py] Re: cancel button

2010-02-07 Thread Jonathan Lundell
mdipie...@cs.depaul.edu wrote: The patch will be in soon. ;-) On Feb 7, 4:18 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 7, 2010, at 2:06 PM, mr.freeze wrote: I hate this too: form[0][-1][1]. I have a pending patch that will allow you to grab parent and sibling elements so you

Re: [web2py] validators, min and max

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 1:15 AM, KONTRA, Gergely wrote: Hi! I found another inconsistency in validators: IS_INT_IN_RANGE: IS_INT_IN_RANGE(0,10) does not accepts 10. Notice that the default error message for this test is, enter a number between 0 and 9, so the user gets a relatively clear

Re: [web2py] Re: wrong decisions and backward compatibility

2010-02-08 Thread Jonathan Lundell
]--+ | | | Mobile:(+36 20)356 9656 | | | +- Olyan lángész vagyok, hogy poroltóval kellene járnom! -+ On Mon, Feb 8, 2010 at 04:17, Jonathan Lundell jlund

Re: [web2py] Re: for your info

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 2:46 AM, Beerc wrote: I ***LOVE*** the tight integration of web2py components. I ***LOVE*** the compactness of web2py. These are by far the two biggest reasons I started using web2py, mainly over Django and its kin. Now that I have a little more experience, I'd add this

Re: [web2py] Re: validators, min and max

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 8:13 AM, DenesL wrote: Having had the need recently, I would like to see: IS_INT_IN_RANGE(1) # any integer0 (up to sys.maxint) IS_INT_IN_RANGE(max=10) # any integer less than 10 and similarly for IS_FLOAT_IN_RANGE(). Suggestion: interpret None as no limit. So your two

Re: [web2py] Re: validators, min and max

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 8:34 AM, mdipierro wrote: send me a patch! I'd suggest otherwise--in particular interpreting None as no limit in the min or max direction. Interpreting (4) as (0,4) saves the developer two characters of typing. But interpreting (4, None) or (None, 4) as no limit extends

  1   2   3   4   5   6   7   8   9   10   >