Re: [web2py] Re: for your info

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 8:43 AM, DenesL wrote: On Feb 8, 11:33 am, mdipierro mdipie...@cs.depaul.edu wrote: I am considering posting most of the book on line in HTML. This may be +1000! possible with a disclaimer about do not reproduce in print. The main issue is that the book is in latex and not

Re: [web2py] Re: for your info

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 9:54 AM, Thadeus Burgess wrote: the problem with pdf is it is not searchable. Take a look at http://www.cubicweb.org/doc/en/index.html That is nice, its in a tutorial style format, but it is a wiki so it supports contextual searching via google. Its not all that

Re: [web2py] Re: powered by drupal?

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 3:13 PM, Mengu wrote: Actually, I saw that this guy wrote Erlyweb framework for the Erlang language and was using wordpress on his blog. Isn't this weird? Not really. I don't think that there's blogging software written in Erlang (or Python, for that matter) that compares

Re: [web2py] Re: powered by drupal?

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 3:28 PM, Brian M wrote: Insisting on having to use web2py for the documentation is silly. Sorry, but there are a bunch of wikis out there that are better/more complete than the one in web2py. Yeah we can try to built the perfect wiki in web2py but waiting to do the

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-08 Thread Jonathan Lundell
On Feb 8, 2010, at 4:58 PM, mdipierro wrote: If people know of a good tool to convert latex to wiki format and vice versa, I could use that. http://hutchinson.belmont.ma.us/tth/ looks like the best bet for latex to html; you could probably get from there to wiki. Back again? I could be wrong,

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-08 Thread Jonathan Lundell
you manage to use only the compatible intersection of their features). You couldn't convert your PDF back to Latex, either, without losing a lot. On Feb 8, 7:22 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 8, 2010, at 4:58 PM, mdipierro wrote: If people know of a good tool

Re: [web2py] Re: for your info

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 1:58 AM, Beerc wrote: Some experiences from many years of working with wikis, small to medium to large: This all sounds very sensible. We ought to take advantage of homogeneous material where we can find it. Docstrings in particular could feed a set of wiki pages

Re: [web2py] Re: for your info

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 6:55 AM, mdipierro wrote: *** If you want to help, help make the Sphinx documentation work!!! *** So we can replace epydoc with Sphinx. What would this entail? I'm guessing that most of us don't have a clue about Sphinx. -- You received this message because you are

Re: [web2py] Re: for your info

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 10:19 AM, Beerc wrote: On the choice of wiki, I'd take a look at MoinMoin I admit my experiences with MoinMoin are old (around 2005). Then it was mediocre. After your current recommendation I revised my memories. Latest versions are far better than the older ones. *

[web2py] SQLite serialization

2010-02-09 Thread Jonathan Lundell
I've got an application that makes very limited use of the database. No self-registration, and the only other table is a relatively static configuration table. So for convenience, I'd just as soon stick with SQLite for simplicity and self-containedness. So two questions, I guess. 1. Would

[web2py] upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
Should I be able to upgrade a deployed app by installing the new version over the old one? If not, how? -- 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,

Re: [web2py] Re: upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
experiment. On Feb 10, 10:00 am, Jonathan Lundell jlund...@pobox.com wrote: Should I be able to upgrade a deployed app by installing the new version over the old one? If not, how? -- You received this message because you are subscribed to the Google Groups web2py-users group. To post

Re: [web2py] Re: upgrading a deployed app

2010-02-09 Thread Jonathan Lundell
it a second time, to simulate an upgrade, and got a flash: unable to install application On Feb 10, 10:00 am, Jonathan Lundell jlund...@pobox.com wrote: Should I be able to upgrade a deployed app by installing the new version over the old one? If not, how? -- You received this message

Re: [web2py] Re: PDF manual soon available online in HTML (maybe)

2010-02-09 Thread Jonathan Lundell
On Feb 9, 2010, at 4:52 PM, Thadeus Burgess wrote: No anonymous edits... Django fanboys will deface it within minutes of it going up I think that's best. Wikipedia expends an awful lot of effort cleaning up after defacers. -Thadeus On Tue, Feb 9, 2010 at 6:36 PM, Mariano

Re: [web2py] Re: upgrading a deployed app

2010-02-10 Thread Jonathan Lundell
files (including an SQLite database). I can ssh in and do it manually, but I'd just be repeating the steps that app_install is already doing, so On Feb 9, 11:06 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 9, 2010, at 8:16 PM, mdipierro wrote: I have never seen this. Let me

Re: [web2py] Re: powered by drupal?

2010-02-10 Thread Jonathan Lundell
On Feb 10, 2010, at 12:07 AM, Anand Vaidya wrote: Is moin with RST or markdown fine with you? It seems to work fine and looks great with a theme such as Moniker theme ... If there are about 10 people on this list willing to try out moin or Drupal, we can form a group and start work...

Re: [web2py] Re: upgrading a deployed app

2010-02-10 Thread Jonathan Lundell
On Feb 9, 2010, at 11:32 PM, mdipierro wrote: I had not understood. This is not about upgrading web2py but about upgrading an app. The fact is it is not safe to unpack an up if one with the same name exists. How do you know it is the same? Right now it simply does not allow that, it wants you

Re: [web2py] Error in plugin install

2010-02-10 Thread Jonathan Lundell
On Feb 10, 2010, at 4:00 PM, Alexandre Andrade wrote: I'm trying to install the plugin webfolder (http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p) Try changing gluon/admin.py line 314 to os.unlink(upname) (instead of upfile). Also, Massimo, the docstring says:

Re: [web2py] Error in plugin install

2010-02-10 Thread Jonathan Lundell
On Feb 10, 2010, at 4:12 PM, Jonathan Lundell wrote: On Feb 10, 2010, at 4:00 PM, Alexandre Andrade wrote: I'm trying to install the plugin webfolder (http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p) Try changing gluon/admin.py line 314 to os.unlink(upname

Re: [web2py] Error in plugin install

2010-02-10 Thread Jonathan Lundell
in the first place. 2010/2/10 Jonathan Lundell jlund...@pobox.com On Feb 10, 2010, at 4:00 PM, Alexandre Andrade wrote: I'm trying to install the plugin webfolder (http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p) Try changing gluon/admin.py line 314

Re: [web2py] Re: set static file caching policy

2010-02-10 Thread Jonathan Lundell
On Feb 10, 2010, at 9:21 PM, mdipierro wrote: You cannot unless you create your own action to server them: Doesn't streamer already do the right thing via last-modified, etc? def server(): import os response.headers['cache-expiration']='' return

Re: [web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 7:57 AM, Alexandre Andrade wrote: I'm trying to customize auth for a long time, without sucess. Massimo said have a bug fixed in trunk, so I'm waiting the new version to see if it works. But in your case, I think its not possible CRYPT() nothing... so makes sense

Re: [web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 8:17 AM, Alexandre Andrade wrote: Others parts of web2py code can rely in a non-empty password. It's always non-empty once it's hashed, and only the hash is retained. 2010/2/11 Jonathan Lundell jlund...@pobox.com On Feb 11, 2010, at 7:57 AM, Alexandre Andrade wrote

Re: [web2py] Re: upgrading a deployed app

2010-02-11 Thread Jonathan Lundell
On Feb 10, 2010, at 5:19 PM, mdipierro wrote: I would just add a checkbox to the upload form and use the value to conditionally mkdir http://web.me.com/jlundell/filechute/overwrite.patch.zip On Feb 10, 5:05 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 9, 2010, at 11:32 PM

Re: [web2py] Re: upgrading a deployed app

2010-02-11 Thread Jonathan Lundell
. The problem with existing application is that it's too easy to confuse with installed application. The text for my checkbox also says existing when it means installed, so maybe that should be changed as well. I'll leave that to you. On Feb 10, 5:05 pm, Jonathan Lundell jlund...@pobox.com wrote

[web2py] scripts/web2py.fedora.sh

2010-02-11 Thread Jonathan Lundell
scripts/web2py.fedora.sh has a couple of problems, which I've fixed. I've cleaned it up in the meantime. The new version is below. I can supply it in another form if you like. The main problem was that it was sending SIGQUIT for stop, when web2py expects SIGTERM. That didn't work out (not to

Re: [web2py] web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 2:43 PM, mdipierro wrote: I have a possible break in. Lots of brute force ssh attacks in the last 3 days. 20 times more requests that usual. I am trying move the server to amazon. Can you reach web2py.com? Yes. I'm seeing it on an EC2 server. -- You received this

Re: [web2py] Re: web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 2:47 PM, mdipierro wrote: Than mine is not refreshing the dns somehow Try 72.44.59.140 On Feb 11, 4:46 pm, tiago almeida tiago.b.alme...@gmail.com wrote: Yes, loaded fine just now. -- On Thu, Feb 11, 2010 at 10:43 PM, mdipierro mdipie...@cs.depaul.edu wrote: I

Re: [web2py] Re: web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 3:45 PM, mdipierro wrote: yes that works. Any EC2 expert around here? DNS is working fine for me. You might just need to wait a bit longer. On Feb 11, 4:51 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 11, 2010, at 2:47 PM, mdipierro wrote: Than mine

Re: [web2py] Re: web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
local DNS server, not your local cache. On Feb 11, 7:07 pm, minh mdn0...@gmail.com wrote: Not loading for me (from San Diego, CA) On Feb 11, 4:08 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 11, 2010, at 3:45 PM, mdipierro wrote: yes that works. Any EC2 expert around here

Re: [web2py] Re: web2py site problem ?!

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 6:48 AM, mdipierro wrote: The DNS has not refreshed. It will take some time. Does anybody know how to setup DNS on EC2. If I stop and restart the VM I get another IP and it takes long time for the DNS to propagate the change (which I must do manually) and meanwhile the

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 7:06 PM, mdipierro wrote: If this something you sent me? I do not recall anything on the subject. The question is: how did you decide to go from 1.74 to 1.75, instead of bumping the third field. On Feb 12, 6:52 pm, Alexandre Andrade alexandrema...@gmail.com wrote: If

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-12 Thread Jonathan Lundell
On Feb 12, 2010, at 8:02 PM, mdipierro wrote: Normally we bump because there is a new feature, not a bug fix. Technically no features was added in 1.75.1 vs 1.74.11 but many new features have been added in between 1.74.1 and 1.74.11. All together they have been tested and together they

Re: [web2py] crud.archive for full app auditing

2010-02-13 Thread Jonathan Lundell
On Feb 12, 2010, at 9:18 PM, mdipierro wrote: Here is a new feature in trunk. Not to look a gift horse in the mouth, but a docstring would be nice. Say you have the following table: db.define_table('person', Field('name'),

Re: [web2py] Re: URL and URLs

2010-02-13 Thread Jonathan Lundell
On Feb 13, 2010, at 2:16 PM, DenesL wrote: 1) Is that the only reason? So there is no other objection to have args with accented chars in them for example?. Foreign languages would benefit from having args without such restrictions. By 'access filesystems' are you refering to 'static'?

Re: [web2py] Re: URL and URLs

2010-02-14 Thread Jonathan Lundell
clearly: ( [...@-][=./]? )+ I'm really not sure what the intention is here, but this (and the spaces conversion) is were we would need to address alternatives to args parsing. Massimo? What's the intent? On Feb 13, 4:48 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 13

Re: [web2py] Re: Issue with jquery datepicker calendar not returning the date

2010-02-15 Thread Jonathan Lundell
On Feb 15, 2010, at 8:13 AM, mdipierro wrote: web2py includes: jQuery JavaScript Library v1.4.1 the latet. In my non-web2py applications, I've been picking jQuery up from the Google ajax site. Much faster than my servers. On Feb 15, 9:52 am, Thadeus Burgess thade...@thadeusb.com wrote:

Re: [web2py] New features not documented in Book (2 ed)

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 7:16 AM, DenesL wrote: New features not documented in Book (2nd edition) 1.75.2 - no more cron with -S option - ability to override/upgrade and app overwrite -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to

Re: [web2py] Re: New features not documented in Book (2 ed)

2010-02-16 Thread Jonathan Lundell
to install an app with the same name as an installed app fails. In the overwrite case, the new app simply gets untarred over the old app. On Feb 16, 11:21 am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 16, 2010, at 7:16 AM, DenesL wrote: New features not documented in Book (2nd edition

Re: [web2py] Re: cancel button

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 12:18 PM, reyelts wrote: I'm trying to use this with my shiny new SQLFORM. But I'm clearly missing something. Here's a snippet: form = SQLFORM(...blah...) submit = form.element(_type='submit')

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 3:37 PM, Thadeus Burgess wrote: By the way. routes_in containing ('.*:https://dashboard.example.com:GET /(?any.*)', '/init/dashboard/\gany'), (?Pany... -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Jonathan Lundell
location (/init/default/index) suggests that nothing is matching. ('.*:https://dashboard.example.com:.* /(?Pany.*)', '/init/dashboard/\gany'), -Thadeus On Tue, Feb 16, 2010 at 6:08 PM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 16, 2010, at 3:37 PM, Thadeus Burgess wrote

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 9:31 PM, Thadeus Burgess wrote: Ok I have spent way to long on this, I can't get any configuration of routes/mod_rewrite to rewrite the hostname. I think Massimo is right: you don't have any reason to rewrite the hostname. -Thadeus On Tue, Feb 16, 2010 at

Re: [web2py] Re: routes for subdomain

2010-02-17 Thread Jonathan Lundell
On Feb 17, 2010, at 5:38 AM, Wikus van de Merwe wrote: To get what you want you could use this two rules for routes_in: ('.*:https?://domain\.com:get /([a-z]+)/(.*)', r'/init/public/\1/\2') ('.*:https?://([a-z]+)\.domain\.com:get /(.*)', r'/init/\1/\2') See the full doctest example:

Re: [web2py] Re: routes for subdomain

2010-02-17 Thread Jonathan Lundell
On Feb 16, 2010, at 10:38 PM, Thadeus Burgess wrote: example.com/controllerA/function1 - /init/controllerA/function1 example.com/controllerA/function2 - /init/controllerA/function2 example.com/controllerB/function1 - /init/controllerB/function1 example.com/controllerB/function2 -

Re: [web2py] Re: An enhanced BEAUTIFY class

2010-02-17 Thread Jonathan Lundell
On Feb 17, 2010, at 3:49 AM, John Heenan wrote: The code I posted does not replace the normal behaviour of BEAUTIFY. There is choice. In the four line example code I posted (which is from a web2py slice) the keys are only changed if the second character is an underscore. I accept there is

Re: [web2py] Re: typos on web2py online introduction page

2010-02-17 Thread Jonathan Lundell
On Feb 17, 2010, at 8:19 AM, mdipierro wrote: Please register, email me and I make you editor. If other people want to be editors, please email as well. Are we ready to start editing live, then? On Feb 17, 9:55 am, Todd toddfi...@gmail.com wrote: Hi, I found several typos on the

Re: [web2py] Re: routes for subdomain

2010-02-17 Thread Jonathan Lundell
.*)', '/init/appadmin\gany'), ('^/(?Pany.*)', '/init/public/\gany'), ) routes_out = ( ('/init/dashboard/(?Pany.*)', '/\gany'), ) This makes me extremely happy (because it makes my boss happy) -Thadeus On Wed, Feb 17, 2010 at 10:33 AM, Jonathan Lundell jlund

[web2py] wiki?

2010-02-17 Thread Jonathan Lundell
Where's the web2py wiki these days? The link on the main page isn't working. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

Re: [web2py] Re: Difficulty with a form

2010-02-18 Thread Jonathan Lundell
On Feb 18, 2010, at 8:25 PM, waTR wrote: The only work-around I found was to mark all the required info as hidden html, and so it now populates the request.vars with the stuff it needs for the form to submit. This is not good for me though, as I would really like to have only the data I want

Re: [web2py] small improvement to TK gui

2010-02-21 Thread Jonathan Lundell
On Feb 21, 2010, at 1:29 PM, hamdy.a.farag wrote: the TK gui is very annoying in that to start the server a click on the start server button is required can you add a listener for the enter key ? it will be easier and more friendly if someone used it The tk gui could use some general

Re: [web2py] Re: storing a Python list

2010-02-23 Thread Jonathan Lundell
On Feb 23, 2010, at 2:22 AM, Massimo Di Pierro wrote: My bad. The encoder should be not encoder = (lambda x:cPickle.dumps(s) but encoder = (lambda x: '%s' % cPickle.dumps(s).replace(', '')) This is why the SQLCustomType API needs to be rewritten. There must be a typo here (x vs s).

Re: [web2py] Re: what distinguishes update form from create form

2010-02-23 Thread Jonathan Lundell
On Feb 23, 2010, at 2:47 AM, hamdy.a.farag wrote: can't get it sorry !! is not there a special form variable that distinguishes between insertion and update ? In SQLFORM: record=something designates an insert. -- You received this message because you are subscribed to the Google Groups

Re: [web2py] typos in new documentation?

2010-02-24 Thread Jonathan Lundell
On Feb 24, 2010, at 10:22 AM, Thadeus Burgess wrote: Massimo this looks like an issue with the latex converter ? I cannot get it to see the tilde for the life of me. Here's the html source for that line: pYou can fetch the records sorted by name in reverse order (notice the \verb! ~): /p

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

2010-02-25 Thread Jonathan Lundell
I'm really glad to see this work happening, and I look forward to the slice. Perhaps we could eventually have unit tests as part of the welcome app, or indeed all three standard apps, both for documentation purposes and to set a good example. -- You received this message because you are

[web2py] importing local modules

2010-02-25 Thread Jonathan Lundell
I've made a module that does a nice job, if I do say so myself, of encapsulating DataTables (I'll post something about it eventually). Since it's a module, I need to import it to my controller, which I'm doing like so: import sys sys.path.append(request.folder) import modules.datatables as dt

Re: [web2py] Re: importing local modules

2010-02-25 Thread Jonathan Lundell
On Feb 25, 2010, at 4:19 PM, mr.freeze wrote: Just do: dt = local_import('datatables') Thanks. Maybe the book should reflect this: http://web2py.com/book/default/section/4/18 (I'd make the change, but I'm a little fuzzy on the details.) On Feb 25, 6:11 pm, Jonathan Lundell jlund

Re: [web2py] Re: importing local modules

2010-02-26 Thread Jonathan Lundell
On Feb 26, 2010, at 3:46 AM, Tiago Almeida wrote: How do you usually import a module from a module. I've tried using local_import but I had problems (don't remember details) so I solved the problem by hardcoding the path like 'applications.appname/modules/...' but don't like it. Can

Re: [web2py] Re: importing local modules

2010-02-26 Thread Jonathan Lundell
On Feb 26, 2010, at 4:42 AM, mdipierro wrote: the modules/ folder IS NOT and CANNOT be added to the search path. Why is that? -- 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] Is 'source' a reserved word?

2010-02-26 Thread Jonathan Lundell
On Feb 26, 2010, at 11:43 PM, Joe Barnhart wrote: I dusted off some wiki code I was playing with awhile ago and tried it under the latest version of web2py. I'm getting KeyError exceptions on the string source which I used as a variable name. Has there been some reserved words added to

Re: [web2py] Re: mail sending no functioning from Chrome

2010-02-27 Thread Jonathan Lundell
On Feb 26, 2010, at 8:52 AM, LBarret wrote: It depends on the browser. IE8, FF/Linux, FF/Windows do the checks (like if the email is a real email) Chrome/Linux, Chrome/Windows don't . I get the emails from FF IE, not from chrome. I don't have any errors due to this behavior. The

Re: [web2py] webform actions

2010-02-27 Thread Jonathan Lundell
On Feb 27, 2010, at 3:00 PM, Tiago Almeida wrote: Don't know why functions reset, reset_all are not called but they reference a form variable which is not in scope? Do you have any global form? The logic below can't work, for lots of reasons. One is the one Tiago mentions. Another is that

Re: [web2py] webform actions

2010-02-27 Thread Jonathan Lundell
to work well. -Thadeus On Sat, Feb 27, 2010 at 5:08 PM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 27, 2010, at 3:00 PM, Tiago Almeida wrote: Don't know why functions reset, reset_all are not called but they reference a form variable which is not in scope? Do you have any global

Re: [web2py] Re: strange traceback from db select's cache.disk with apache2 and wsgi

2010-02-28 Thread Jonathan Lundell
On Feb 28, 2010, at 4:45 AM, mdipierro wrote: You cannot store in a session the result of a select(). This seems to come up a lot. Would it be practical to have Session catch the exception and raise a more helpful (higher-level) one? On Feb 26, 2:39 pm, szimszon szims...@gmail.com wrote:

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Jonathan Lundell
On Feb 28, 2010, at 7:18 AM, mr.freeze wrote: +1 for slicehost and +1 for putting a message on web2py.com. Something like: We've been growing! As a result, we have had to move this site to another host. Please excuse any recent downtime. I don't have a useful opinion on hosting (I can't

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Jonathan Lundell
On Feb 28, 2010, at 11:53 AM, Kevin Bowling wrote: Linode is faster and more friendly. They aren't owned by a big conglomerate like rackspace so you will get personal support and they will take a vested interest in keeping the web2py site up. You should consider emailing them, they may even

Re: [web2py] Re: unfair trolling

2010-03-01 Thread Jonathan Lundell
with their support. They answer emails immediately and are helpful. They also provide ready made VMs from TurnKey Linux and was working on making a web2py one. I am not completely ready to give up on them but I will seek some explanations. Massimo On Feb 28, 11:29 am, Jonathan Lundell jlund

[web2py] T(html entity)

2010-03-01 Thread Jonathan Lundell
How do I include an html entity in a T() string? If I just do it, it appears to get escaped. -- 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

Re: [web2py] Re: T(html entity)

2010-03-01 Thread Jonathan Lundell
On Mar 1, 2010, at 2:35 PM, mdipierro wrote: XML(T()) Ah. I had tried T(XML(... and then gave up. On Mar 1, 4:04 pm, Jonathan Lundell jlund...@pobox.com wrote: How do I include an html entity in a T() string? If I just do it, it appears to get escaped. -- You received

[web2py] requires_membership vs has_membership

2010-03-02 Thread Jonathan Lundell
I've been implementing role/permission checking this week, and I'd like to propose an enhancement. requires_membership() takes a role, and unconditionally converts it to a group_id: group_id = self.id_group(role) (and then calls has_membership(). has_membership() takes a group_id It's a

[web2py] populating roles and permissions

2010-03-02 Thread Jonathan Lundell
I have a set of standard roles permissions that I need to pre-populate the appropriate tables with. For now, I've got an initialization function that I invoke manually, but I'd prefer to have happen automatically. What's the idiomatic way to do that? -- You received this message because you

Re: [web2py] Re: requires_membership vs has_membership

2010-03-02 Thread Jonathan Lundell
On Mar 2, 2010, at 11:21 AM, mdipierro wrote: What about we give has_membership two arguments (id=None, role=None) and use the one that is not None? Works for me. And the reverse for requires_membership? On Mar 2, 10:45 am, Jonathan Lundell jlund...@pobox.com wrote: I've been implementing

Re: [web2py] Problem with IS_IN_SET validator where valid list is dynamic

2010-03-02 Thread Jonathan Lundell
On Mar 2, 2010, at 10:46 AM, hschill...@nasa.gov wrote: I have a form with a string field that uses the IS_IN_SET validator. The set of strings that is allowed must be generated dynamically each time the form is generated. So I add the validator in the controller. ( See the snippet below. )

Re: [web2py] Re: requires_membership vs has_membership

2010-03-02 Thread Jonathan Lundell
On Mar 2, 2010, at 1:18 PM, mdipierro wrote: ok. I will take a patch. Have a look at this, please. It's completely untested. I made a couple of other changes along the way. http://web.me.com/jlundell/filechute/tools.diff.zip On Mar 2, 2:01 pm, Jonathan Lundell jlund...@pobox.com wrote

Re: [web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Jonathan Lundell
On Mar 3, 2010, at 9:22 AM, fadehelix wrote: Hi, I have the same problem as @IRV. I can't use mod_wsgi because on my shared hosting i haven't own apache configuration. I've been using mod_proxy in that situation, and it seems to work OK. It's straightforward, at least. Are there serious

Re: [web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Jonathan Lundell
, though I'm not sure that it's always obvious which files to delete. For the app I'm working on, it'd be everything in (controllers,models,modules,private,views,static). I think. But is that always the right list? On Feb 16, 11:08 am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 16, 2010

Re: [web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Jonathan Lundell
/ w2p file format giving way to /letting mercurial manage updates in these circumstances (which would probably not be bad). - Yarko On Feb 16, 11:08 am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 16, 2010, at 8:32 AM, DenesL wrote: Thanks (it is copy/paste of the original

Re: [web2py] Re: Problem with IS_IN_SET validator where valid list is dynamic

2010-03-03 Thread Jonathan Lundell
On Mar 3, 2010, at 11:29 AM, hschill...@nasa.gov wrote: Thanks for all the help again. It should have been obvious to me before but I am sure the problem is that values coming back from get_last_names() are different when the form is generated compared to when it is validated. So I really

Re: [web2py] Re: database is locked

2010-03-04 Thread Jonathan Lundell
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 not rely on

Re: [web2py] Re: copyright year

2010-03-05 Thread Jonathan Lundell
On Mar 5, 2010, at 7:22 PM, Iceberg wrote: On Mar6, 7:27am, Wes James compte...@gmail.com wrote: in admin the copyright year is just 2007. should it be 2007 - current year? no biggy - just wondrin' -wj +1 Should better be: Copyright 2007-{{=request.now.year}} There's no need, and

Re: [web2py] no more cherrypy wsgiserver

2010-03-11 Thread Jonathan Lundell
On Mar 11, 2010, at 8:59 AM, Timothy Farrell wrote: One at a time: Is Rocket a port of CherryPy? Or is made from zero? No, it's my own code from the ground up. I did consult wsgiserver code in some areas, but I think that anyone who would examine the code would be satisfied to say it

Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-11 Thread Jonathan Lundell
. If the problem is that the API is not stable, then call the current API 1.0, with a 2.0 in development. It's a small thing, but it'll save some of us a lot of grief. Massimo On Mar 11, 11:28 am, Jonathan Lundell jlund...@pobox.com wrote: On Mar 11, 2010, at 8:59 AM, Timothy Farrell

Re: [web2py] no more cherrypy wsgiserver

2010-03-11 Thread Jonathan Lundell
On Mar 11, 2010, at 10:24 AM, Timothy Farrell wrote: For a production system, I'm more interested in stability than performance. And despite the admitted arbitrariness of version-numbering choices, it's hard to make the case to management that moving to an 0.x server is safe. What do

Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-11 Thread Jonathan Lundell
On Mar 11, 2010, at 9:50 AM, mdipierro wrote: He explained it partially here: https://launchpad.net/rocket/+announcements We will stress-test it with different browsers anyway. Not just browsers, right, but backending other servers and server variations? (mod_wsgi, mod_proxy, nginx,

Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-11 Thread Jonathan Lundell
On Mar 11, 2010, at 2:07 PM, mdipierro wrote: mod_proxy yes. The other servers options do not use it. They do not use wsgiserver now. Right, thanks. On Mar 11, 4:02 pm, Jonathan Lundell jlund...@pobox.com wrote: On Mar 11, 2010, at 9:50 AM, mdipierro wrote: He explained it partially

Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-12 Thread Jonathan Lundell
On Mar 12, 2010, at 2:09 PM, Timothy Farrell wrote: OK, in testing mod_proxy I've hit a snag. I'd like for someone else to take a look. I have web2py running on port 8000. Here's the relevant section of my httpd.conf (this is Apache 2.2.14): IfModule proxy_module SetEnv

Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-13 Thread Jonathan Lundell
On Mar 13, 2010, at 7:21 AM, mdipierro wrote: Yarko, this is bad. Somebody should tell them. ca you do that? If not, can you point me to the installer and I will do so? Perhaps you should turn off access, or at least public access, to the svn repository. There's no good reason anyone should

Re: [web2py] Re: no more cherrypy wsgiserver

2010-03-13 Thread Jonathan Lundell
On Mar 13, 9:48 am, Jonathan Lundell jlund...@pobox.com wrote: On Mar 13, 2010, at 7:21 AM, mdipierro wrote: Yarko, this is bad. Somebody should tell them. ca you do that? If not, can you point me to the installer and I will do so? Perhaps you should turn off access, or at least public access

Re: [web2py] Re: define_tables(username=True)

2010-03-14 Thread Jonathan Lundell
On Mar 14, 2010, at 1:23 PM, mdipierro wrote: It is an excellent idea. It is in trunk, can you please check it. If you had something different in mind, please let me know. That looks good to me. Maybe give it a label, like the other fields? Massimo On Mar 14, 1:13 pm, Jonathan Lundell

Re: [web2py] Re: define_tables(username=True)

2010-03-14 Thread Jonathan Lundell
On Mar 14, 2010, at 1:34 PM, mdipierro wrote: done. Thanks. And a related question: why are the fields that are marked IS_NOT_IN_DB not also marked unique? (username, email, role) On Mar 14, 3:29 pm, Jonathan Lundell jlund...@pobox.com wrote: On Mar 14, 2010, at 1:23 PM, mdipierro wrote

Re: [web2py] Re: What is the url to access my web2py?

2010-03-15 Thread Jonathan Lundell
On Mar 15, 2010, at 5:14 AM, solom wrote: then in less than 2 or 3 minutes putty says: killed. Does that mean the severs closes after only 2 or 3 min.? This suggests that your hosting company imposes a limit on how long a program can run. The only way you can run web2py in such an

Re: [web2py] Re: What is the url to access my web2py?

2010-03-15 Thread Jonathan Lundell
/ RewriteCond %{REQUEST_URI} !(fcgihandler.py) RewriteRule ^(.*)$ fcgihandler.py/$1 [L] EOF You may need some tweaking of the above configuration files Massimo On Mar 15, 10:31 am, Jonathan Lundell jlund...@pobox.com wrote: On Mar 15, 2010, at 5:14 AM, solom wrote: then in less than 2 or 3

Re: [web2py] Re: What is the url to access my web2py?

2010-03-15 Thread Jonathan Lundell
for me, my web2py application runs on our corporate servers. I think I'll be looking at GAE for my hobby projects. (Speaking of which, is the current level of GAE+web2py experience collected somewhere?) On Mar 15, 11:21 am, Jonathan Lundell jlund...@pobox.com wrote: On Mar 15, 2010, at 8:54

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

2010-03-15 Thread Jonathan Lundell
On Mar 15, 2010, at 9:42 AM, Thadeus Burgess wrote: Ahah! One step closer to app level routes! Hmm, that's a good thought. I'm looking at the overall handling of URL parsing and routing, and hadn't been thinking about this. So what I'm thinking now is that the global routing would be only the

Re: [web2py] Rocket - windows binary issues

2010-03-15 Thread Jonathan Lundell
On Mar 15, 2010, at 9:20 AM, mdipierro wrote: Due to my lack of familiarity with Windows and my refusal to spend time on it I am running into a problem. I cannot build the web2py binary including ssl 1.15 in order to use rocket. A simple solution would be to make the window binary with Python

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

2010-03-15 Thread Jonathan Lundell
On Mar 15, 2010, at 12:54 PM, mdipierro wrote: Not at all. app level routes would be feasible and easy to implement. I just did not have the time. The issue is not implementing as much as designing the syntax. Should the main routes delegate? Should it be explicit? Should it be implicit?

Re: [web2py] Re: Migrating web2py to GAE

2010-03-17 Thread Jonathan Lundell
On Mar 17, 2010, at 9:10 AM, mdipierro wrote: replace http://... with https:// GAE has its own certificate. It works for me at https://web2py-crm.appspot.com/init/appadmin Where's the best approximation of a cookbook approach for running web2py on GAE? I looked at the deployment

Re: [web2py] Re: Migrating web2py to GAE

2010-03-17 Thread Jonathan Lundell
On Mar 17, 2010, at 9:59 AM, mdipierro wrote: There is no cookbook because there is nothing to be done other than: 0) register with gae and get an app_id 1) change the name in app.yaml (first line: replace web2py with your app_id) 2) run it locally dev_appserver.py web2py 3) make

[web2py] Set Set?

2010-03-17 Thread Jonathan Lundell
mrows = ((db(m.group_id == g.id)) (db(~(g.role.like('user_%').select(m.user_id, g.role) TypeError: unsupported operand type(s) for : 'Set' and 'Set' This doesn't seem right -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to

Re: [web2py] Set Set?

2010-03-17 Thread Jonathan Lundell
On Mar 17, 2010, at 4:58 PM, Jonathan Lundell wrote: mrows = ((db(m.group_id == g.id)) (db(~(g.role.like('user_%').select(m.user_id, g.role) TypeError: unsupported operand type(s) for : 'Set' and 'Set' This doesn't seem right Never mind; it's not that kind of Set. -- You

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