[web2py:28949] Re: WSGI apache -- WSGIScriptAlias as /python and not just plain /

2009-08-19 Thread Jonathan Benn
I'm curious to know the answer to this as well. Did you ever figure it out? If yes, can you please post the Apache .conf file you used? Thanks --Jonathan On Jul 24, 3:01 am, Arvind wrote: > Hello, > > I am trying to configure my WSGIScriptAlias to be not /, but /python. > > The reason is, I

[web2py:28560] Which Python library does web2py require for MySQL access?

2009-08-13 Thread Jonathan Benn
Hi all, I'm trying to get web2py running on OpenSolaris. When I try to connect the DAL to MySQL, I get the following error message: Traceback (most recent call last): File "/var/apache2/2.2/htdocs/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/var/apache

[web2py:18343] Advertising the Wiki

2009-03-19 Thread Jonathan Benn
Hi Massimo, Can you please add a link to the Wiki on the web2py documentation page? http://web2py.com/examples/default/docs Thanks, --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework

[web2py:17924] The web2py wiki is now ready for your input!

2009-03-12 Thread Jonathan Benn
Hi all, The web2py documentation wiki is now ready to go. So if you're interested in helping to document web2py's new features, or if you're a feature developer, then please add to the wiki and help improve web2py! The wiki is here (you need to accept Massimo's self-signed security certificate

[web2py:17526] Trouble creating Bazaar branch

2009-03-04 Thread Jonathan Benn
Hi all, I tried creating a new Bazaar branch of the web2py development trunk, using Bazaar v.1.12-2, and I got the following error: bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/.bzr/repository/packs/38541ced633419b0d0b3fe01435b12ff.pack: Expected a

[web2py:17471] Patch complete: adding configurability to EditArea

2009-03-04 Thread Jonathan Benn
Hi Massimo and all, Pursuant to our discussion regarding EditArea: http://groups.google.com/group/web2py/browse_thread/thread/652990a0d96342b0?hl=en I have create a new patch that allows web2py end users to easily modify some of the settings for EditArea, including the font size, full screen mo

[web2py:17391] Default font size and fullscreen for EditArea in Admin interface

2009-03-03 Thread Jonathan Benn
Hi all, A long-standing issue I've had with the EditArea in web2py's Admin interface is the default font size. I don't have the best eyes, and so in Firefox I set the minimum font size to be 12. The default font size for EditArea is 10. As a result, Firefox ends up garbling the code in EditArea.

[web2py:16494] Re: web2py on GAE step by step guide?

2009-02-18 Thread Jonathan Benn
Hi Cephire, On Feb 18, 10:48 am, Cephire wrote: > Is there any step-by-step guide for a newbie? Try these sources: http://mdp.cti.depaul.edu/AlterEgo/default/show/186 http://mdp.cti.depaul.edu/AlterEgo/default/show/138 http://mdp.cti.depaul.edu/AlterEgo/default/show/199 If those don't answe

[web2py:16493] Re: Help with PyCon internationalization

2009-02-18 Thread Jonathan Benn
Hi all, I've completed a French translation and emailed it to Massimo. This translation should cover fr, fr-fr and fr-ca. P.S. I got the language-country codes from these sources: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes http://en.wikipedia.org/wiki/List_of_NATO_country_codes Sin

[web2py:16483] Re: IDN support for IS_URL has been implemented

2009-02-17 Thread Jonathan Benn
Hi Massimo, On Feb 17, 6:29 pm, mdipierro wrote: > In trunk. Thank you! You're welcome. I checked the trunk for the changes. It looks good except that there is an additional file that needs to be updated: gluon/tests/test_is_url.py The file can be downloaded from here: http://bitbucket.org

[web2py:16445] Re: Help with PyCon internationalization

2009-02-17 Thread Jonathan Benn
On Feb 16, 11:29 pm, mdipierro wrote: > Do you speak a language other than english? I can try the French translation tomorrow. --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" gro

[web2py:16444] IDN support for IS_URL has been implemented

2009-02-17 Thread Jonathan Benn
Hi all, This is just to let you know that I've finished implementing Internationalized Domain Name (IDN) support IS_URL. You can now attempt to validate unicode URLs. If they are valid, the returned value will be the compliant US-ASCII version of the unicode URL. e.g. The command: print IS_

[web2py:15312] Re: IS_URL and Unicode URLs

2009-01-23 Thread Jonathan Benn
Hi Massimo, On Jan 22, 5:22 pm, mdipierro wrote: > Thank you Jonathan. Are you proposing inclusion in 1.56? You're welcome. I will submit to whichever the next version is when I get back from vacation in 3 weeks. :-) I've made an early preview release (http://bitbucket.org/Demiurge11/ patch/

[web2py:15259] Re: IS_URL and Unicode URLs

2009-01-22 Thread Jonathan Benn
Hi all, I've completed a preliminary version of the code, available here: http://bitbucket.org/Demiurge11/patch/changeset/7719b580ce83/ IS_URL basically works just like it did before, except that now you can optionally input a unicode string instead of a regular string. If you input a unicode U

[web2py:15249] Re: IS_URL and Unicode URLs

2009-01-22 Thread Jonathan Benn
Hi all, With further research, I was able to determine that IDNA has been implemented in Python since version 2.3. I'm therefore proceeding with implementing my patch, since it's not a lot of work and not a lot of new code is required. Sincerely, --Jonathan --~--~-~--~~---

[web2py:15237] Re: IS_URL and Unicode URLs

2009-01-21 Thread Jonathan Benn
Hi all, On Jan 21, 4:55 pm, Timothy Farrell wrote: > There's no place for a web framework in Python 3 yet Ok, thanks for that information. I wrote: > The Java implementation of libidn is 14,467 lines of code (including > comments and tests), so this is a substantial code base to be adding >

[web2py:15184] Re: patches

2009-01-21 Thread Jonathan Benn
Hi Massimo, On Jan 20, 8:36 pm, mdipierro wrote: > Make sure they apply to the latest trunk since we have a completely re- > factored template engine, a new SQLFORM that uses widgets, new > SQLField attributes, and cross-platform cron job functionality. Are the web2py syntax/library changes d

[web2py:15183] IS_URL and Unicode URLs

2009-01-21 Thread Jonathan Benn
Hi all, About 2 months ago we were discussing allowing the IS_URL validator to validate Unicode URLs. I did some research, and learned that Python 3.0 supports the necessary codecs to do this. In Python 3, implementing Unicode URLs in IS_URL would require only a few extra lines of code in IS_URL

[web2py:15181] Re: future of T2 is *almost* here

2009-01-21 Thread Jonathan Benn
On Jan 21, 12:46 pm, mdipierro wrote: > also I would like to change the name of the file from utils.py to > something more catchy. Any suggestion? high_level_enhancements.py ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[web2py:15148] Re: CAS on GAE

2009-01-20 Thread Jonathan Benn
On Jan 20, 1:05 am, "Sebastian E. Ovide" wrote: > Internal errorTicket issued: > unknown > > and cannot find any way to read the tickets.. To get at your tickets, login to http://appengine.google.com Then select your application, and go to

[web2py:15122] Re: DAL subset supported by GAE

2009-01-19 Thread Jonathan Benn
Thanks Robin. It sounds like you have a really good idea here. --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To

[web2py:15114] Re: DAL subset supported by GAE

2009-01-19 Thread Jonathan Benn
Hi Robin and Massimo, Ok, I read up on how transactions work in Google Big Table and I think I finally understand what you two are talking about. http://code.google.com/appengine/docs/python/datastore/transactions.html http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.ht

[web2py:15077] Re: DAL subset supported by GAE

2009-01-18 Thread Jonathan Benn
Hi Robin, On Jan 18, 3:30 pm, Robin B wrote: > Calling the txn(...) returns whether the txn suceeded or failed, so > you do not have to handle any custom exceptions outside the dal.  For > SQLDB the txn(...) will allways return True. Sorry, I don't quite understand. Would implementing GAE tr

[web2py:15070] Re: DAL subset supported by GAE

2009-01-17 Thread Jonathan Benn
On Jan 15, 5:10 pm, Robin B wrote: > Transactions and list properties are also not supported, until > transactions are officially added to web2py, you can still do > transactions this way: Woah, transactions are not supported in GAE? That's news to me! >From what you're writing, it sounds lik

[web2py:15069] Re: Questions and Introduction

2009-01-17 Thread Jonathan Benn
Hi Mick, Here's a helpful bit of advice: As a beginner with programming, you should always buy the manual if there is one. :) If you don't have it already, here's a free Python book to help you learn Python: http://www.diveintopython.org/ In my view, using purely online sources is something f

[web2py:14874] Re: CSV Import/Export issues

2009-01-12 Thread Jonathan Benn
Hi Fran, Which platform are you running web2py on? Using which database? I've found that CSV import does not work on Google App Engine. --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Frame

[web2py:14716] Re: Cacheing makes web2py "forget" tenmplates sporadically

2009-01-08 Thread Jonathan Benn
On Jan 7, 6:33 pm, DenesL wrote: > Sorry, I was trying to read Tim's post, why can't I see his text past > the right edge? Taking a look at the page's HTML source, he said the following: "The first argument in your cache decorator ( request.env.path_info ) is the key that the cache system use

[web2py:14606] Re: Debugging GAE

2009-01-05 Thread Jonathan Benn
Hi Notabene, On Jan 4, 6:25 pm, notabene wrote: > The log only has warnings of "no cache.disk". Sorry! It sounds like something is seriously broken in your code base. Here's what I suggest: try downloading a fresh copy of web2py and uploading it without modification to GAE. If there is a prob

[web2py:14605] Re: gae - web2py performance

2009-01-05 Thread Jonathan Benn
Hi Sudhakar, On Jan 4, 3:25 pm, "sudhakar m" wrote: > > > *Here's my results* > > > time/request : 1.02669 sec > > > time/request : 0.81934 sec > So the processing time is in ms. I guess 52ms is the db response time. Ah, that sounds much better. I only have database experience with Oracle, a

[web2py:14604] Re: findT() doesn't handle %s substitions

2009-01-05 Thread Jonathan Benn
On Jan 4, 5:26 pm, Fran wrote: > On Jan 4, 1:08 pm, mdipierro wrote: > > There is no way you ca translate 'Add %s' % single because at the > > moment of translation you do know know the value of the variable > > single. > > Is there no possibility of creating an EarlyT type (vs LazyT) so that >

[web2py:14498] Re: gae - web2py performance

2009-01-04 Thread Jonathan Benn
Hi Sudhakar, On Jan 3, 5:37 pm, "sudhakar m" wrote: > *Here's my results* > time/request : 1.02669 sec > time/request : 0.81934 sec Thanks for running those tests. Since my application is pretty database intensive, this might be a showstopper for me on GAE. :( I had assumed that Big Table wo

[web2py:14497] Re: Debugging GAE

2009-01-04 Thread Jonathan Benn
Hi Notabene, On Jan 3, 6:10 pm, notabene wrote: > > > Any ideas on this? Ideas for debugging? I haven't encountered this issue myself. Have you looked at the logs? Try logging in to http://appengine.google.com and then look up Main -> Logs. This should give you some hints as to what's goin

[web2py:14176] Re: app on GAE account a "admin disabled because unable to access password file" issue

2008-12-27 Thread Jonathan Benn
On Dec 27, 2:04 pm, mdipierro wrote: > by the way... new in trunk... if db(db.table.id==None).select() no > longer gives an error but returns an empty SQLRows. Thanks! Great idea. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[web2py:14159] Re: app on GAE account a "admin disabled because unable to access password file" issue

2008-12-27 Thread Jonathan Benn
On Dec 27, 11:11 am, mdipierro wrote: > GAE does not allow sorting by id because id is not treated as a field > of the record. You should timestamp the records when you create them > and use the timestamp for sorting. Ok, thanks. I noticed this issue as well when I was playing around with sortin

[web2py:14152] Non-ascii URLs Revisited

2008-12-26 Thread Jonathan Benn
Hi all, Today, I was intending to get started enhancing IS_URL to handle non- latin URLs, however, because of the undersea cable cut (http:// news.bbc.co.uk/1/hi/technology/7792688.stm) my Internet is too slow to access the Bitbucket repository. I'll hopefully be able to get started after the h

[web2py:14106] Re: Performance tips

2008-12-24 Thread Jonathan Benn
Hi Vince, Dr. DiPierro wrote: > db['_execute']=lambda *a,**b: timer(db,lambda:db._execute(*a,**b)) Look carefully at the line above, I believe that there may be an infinite recursion. When you try to call db._execute, the method will itself call db._execute and then once the thread tries to obt

[web2py:14105] Re: Performance tips

2008-12-24 Thread Jonathan Benn
On Dec 23, 4:41 pm, mdipierro wrote: > in latest trunk, _lastsql on GAE is a string but only says "select" , > "delete", "insert" etc. Better than nothing for now. Thanks Massimo, and Happy Holidays! --Jonathan --~--~-~--~~~---~--~~ You received this message be

[web2py:14061] Re: Performance tips

2008-12-23 Thread Jonathan Benn
On Dec 23, 10:54 am, mdipierro wrote: > oh! You didn't say this was about GAE. I'm sorry for not being specific--I didn't realize that there was such a big difference between SQLDB and GQLDB. But it's ok, I have a solution in place for profiling the database. I just think that it would be very

[web2py:14043] Re: Performance tips

2008-12-22 Thread Jonathan Benn
Hi all, On Dec 22, 12:43 pm, mdipierro wrote: > db=SQLDB(...) > def timer(db,f): >       import time,os >       import gluon.portalocker >       myfile=open(os.path.join > (request.folder,'databases','sql.log'),'a') >       gluon.portalocker,lock(myfile, gluon.portalocker.LOCK_EX) >       t0=ti

[web2py:14016] Re: Performance tips

2008-12-22 Thread Jonathan Benn
I tried adding the code to AlterEgo, but I messed up the Markdown syntax and now I can't edit the original. :-( --Jonathan On Dec 22, 3:41 pm, Jonathan Benn wrote: > On Dec 22, 1:20 pm, mdipierro wrote: > > > db['_execute']=lambda *a,**b: timer(db,lambda:db._

[web2py:14015] Re: Performance tips

2008-12-22 Thread Jonathan Benn
On Dec 22, 1:20 pm, mdipierro wrote: > db['_execute']=lambda *a,**b: timer(db,lambda:db._execute(*a,**b)) Thanks Massimo. I made an entirely new class as a Proxy around the database to accomplish the same thing... I think your solution will work better and more cleanly. Sincerely, --Jona

[web2py:13994] Re: Performance tips

2008-12-21 Thread Jonathan Benn
Hi, On Dec 22, 4:52 am, vince wrote: > also is it possible to enable logging for all SQL query execution? Logging with a timer included would be really handy. Sincerely, --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:13977] Re: Performance tips

2008-12-21 Thread Jonathan Benn
Hi Voltron, On Dec 21, 12:47 am, voltron wrote: > The live domain running on port 8000 runs very [slowly] compared to the test > domain running on port 8002. The only difference is that the live > server is being accessed by over 600 visitors a day. If you want some more specific help from us

[web2py:13959] Re: accepting space charaters as %20 on request.args

2008-12-20 Thread Jonathan Benn
Hi guys, On Dec 20, 3:18 pm, mdipierro wrote: > I am proposing of making > > this is a test > this%20is%20a%20test > this+is+a+test > this_is_a_test > > equivalent. When you generate the URLs you will be able to choose > which one to display. web2py will read them always with '_'. This sounds

[web2py:13729] Re: SQLDB variable name as string

2008-12-17 Thread Jonathan Benn
Hi DenesL, On Dec 17, 7:55 am, DenesL wrote: > is there an easy way to get 'db'? I believe that you're saying that you want to somehow get the string 'db' from the assigned variable db. This is a bit tricky in Python, but it can be done. Here's a function that does it: def getName(obj, nam

[web2py:13540] Re: T3 is out!!!!!!!!!

2008-12-13 Thread Jonathan Benn
Hi Yarko, On Dec 10, 3:20 am, "Yarko Tymciurak" wrote: >     applications/modules/t2/rev12345 > > and a way for migrating modules - that is, only keeping around [1] newest > version, and [2] legacy versions that apps still used (but provide a way to > migrate).   I can think of a couple of sch

[web2py:13164] Re: new T3 and appadmin on GAE

2008-12-08 Thread Jonathan Benn
Hi Massimo, On Dec 8, 4:42 am, mdipierro <[EMAIL PROTECTED]> wrote: > All in favor? All opposed? I'm strongly in favour of making this the standard appadmin. Thanks! --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[web2py:13085] Re: T3 is out!!!!!!!!!

2008-12-07 Thread Jonathan Benn
Hi Massimo, On Dec 5, 10:26 am, mdipierro <[EMAIL PROTECTED]> wrote: > http://web2py.appspot.com/t3 Wow, this is pretty cutting edge stuff. So if I understand correctly, T3 is a web2py application that lets you interactively transform it into whatever application you want. This seems really han

[web2py:12798] Re: Downside / Critique of web2py

2008-12-02 Thread Jonathan Benn
Thanks for the great post, Timothy. You've made me feel good about my decision to use web2py!! I can't believe that CherryPy and FormEncode would break backward- compatibility after only a minor version number change. That's not acceptable for a library. I mean look at Python. It has a million cl

[web2py:12797] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-02 Thread Jonathan Benn
Hi Massimo, On Dec 2, 3:36 am, mdipierro <[EMAIL PROTECTED]> wrote: >  A list of validators will not give you a dropdown. When you say that a list of validators will not give a dropdown, is this a fundamental limitation of web2py, meaning that it cannot be done within the architecture? Or is

[web2py:12796] Re: IS_IN_SET doesn't produce dropdown if IS_NOT_IN_DB also required

2008-12-02 Thread Jonathan Benn
Hi Fran, On Dec 2, 10:56 am, Fran <[EMAIL PROTECTED]> wrote: > Suggestions welcomed :) It sounds to me like you need to mess with this line of code until it gives you the result you want: options=[x for x in ['google','multimap','yahoo'] if not db (db.gis_key.sevice==x).count()] I'm not s

[web2py:12711] Re: non-ascii chars URL

2008-12-01 Thread Jonathan Benn
Thanks, Achipa. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

[web2py:12673] Re: non-ascii chars URL

2008-11-30 Thread Jonathan Benn
Hi Achipa, On Nov 30, 4:46 pm, achipa <[EMAIL PROTECTED]> wrote: > Ah, ok, sorry if that was the original way of doing it, if it's done > internally, I wholeheartedly support it. The only thing that bothers > me in that case is unicode in the *domain* part of the URI. If you're > doing the conve

[web2py:12671] Re: non-ascii chars URL

2008-11-30 Thread Jonathan Benn
Hi Massimo, On Nov 30, 7:49 am, mdipierro <[EMAIL PROTECTED]> wrote: > I think this thread has changed subject. Jonathan, I have no objection > to your patch (use unicode_to_latin internally). If you send it to me > I will include it. Ok, I will add this to my TODO list. Sincerely, --Jonatha

[web2py:12670] Re: non-ascii chars URL

2008-11-30 Thread Jonathan Benn
Hi Achipa, On Nov 30, 2:03 pm, achipa <[EMAIL PROTECTED]> wrote: > The idea of unicode is not to care about encodings, a ж should be a ж > no matter what is ithe underlying encoding, utf8, cp1251 or anything > else capable of actually displaying that glyph. This is where people > start mixing t

[web2py:12654] Re: non-ascii chars URL

2008-11-29 Thread Jonathan Benn
Hi Achipa, On Nov 29, 9:20 pm, achipa <[EMAIL PROTECTED]> wrote: > Storing and validating URI's should be pretty straightforward with the > RFC's, the trouble comes when you have to decide how do you the URI to > *appear* to the user/developer. Obviously looking at a bunch of %XY-s > or xn--es i

[web2py:12628] Re: non-ascii chars URL

2008-11-29 Thread Jonathan Benn
Here's a quote from section 1.5 of RFC 2396: "The URI syntax was designed with global transcribability as one of its main concerns. A URI is a sequence of characters from a very limited set, i.e. the letters of the basic Latin alphabet, digits, and a few special characters." Here are the releva

[web2py:12554] Re: your recommended way of calling controllers from the command line ?

2008-11-27 Thread Jonathan Benn
Hi Yarko, On Nov 26, 6:45 pm, Yarko <[EMAIL PROTECTED]> wrote: > Could you write this up?  Some (me?!) might find it interesting / useful. Sure! Here's an example: This is your controller, say "test.py" ###

[web2py:12552] Re: non-ascii chars URL

2008-11-27 Thread Jonathan Benn
Hi Massimo, On Nov 27, 6:13 am, mdipierro <[EMAIL PROTECTED]> wrote: > Does anybody have any objection to this patch? I object, on the grounds that the URL standard does *not* support unicode. As Achipa points out, a unicode URL needs to be escaped in order to pass validation. If we want to s

[web2py:12499] Re: your recommended way of calling controllers from the command line ?

2008-11-26 Thread Jonathan Benn
Hi Achipa, On Nov 25, 1:55 pm, achipa <[EMAIL PROTECTED]> wrote: > The subject says it all. I know a couple of methods (python -R > wrapper, the older -S patch, piping, etc), but was wondering which you > think is the cleanest (and cross platform) as I'd like to integrate it > into my cron patch

[web2py:12493] Re: Using database and session in a user-defined class

2008-11-25 Thread Jonathan Benn
Hi, Ok, thanks for the responses. On Nov 25, 5:30 pm, mdipierro <[EMAIL PROTECTED]> wrote: > You should look into the T2 source code. The class T2 is defined in a > module. When the module is imported and instantiated you pass request, > response, session, cache, T and db to it and store refer

[web2py:12468] Re: "No databases in this application" on GAE

2008-11-25 Thread Jonathan Benn
On Nov 24, 5:16 pm, mdipierro <[EMAIL PROTECTED]> wrote: > In principle I would like to move t2.search into appadmin and thet > would solve the problem. How do people fill about it? If it allows the appadmin to work fine on GAE, then I'm totally in favour. :-D --Jonathan --~--~-~--~---

[web2py:12467] Re: "No databases in this application" on GAE

2008-11-25 Thread Jonathan Benn
On Nov 25, 5:01 am, sharekey <[EMAIL PROTECTED]> wrote: >     I try your code, it work well, I can select records > fromhttp://127.0.0.1:8080/myapp/appadmin/select/db/mytablenow. I find the > two modifications in select function is : >     1) Replace "query='%s.id>0' % table" with "query = dbnam

[web2py:12466] Using database and session in a user-defined class

2008-11-25 Thread Jonathan Benn
Hi all, Is there a simple way to access the dynamic web2py global variables (db, session, request, response) from inside a user defined class? If I were to define the class inside the controller, then I'd have no trouble. However, if I define the class in a separate module (i.e. in the "modules

[web2py:12435] Re: "No databases in this application" on GAE

2008-11-24 Thread Jonathan Benn
On Nov 23, 6:27 pm, mdipierro <[EMAIL PROTECTED]> wrote: > appadmin needs to be improved. Right now it expects a SQL string and > dumbly passes it to the DB. The string should be parsed and passed to > the DAL instead. Thanks, this is what I suspected. --Jonathan --~--~-~--~~---

[web2py:12434] Re: Appengine / Bulk Loader

2008-11-24 Thread Jonathan Benn
Hi Daniel, On Nov 22, 8:56 pm, "Daniel Contag" <[EMAIL PROTECTED]> wrote: > does anyone have a suggestion how to use the bulk loader for Google > Appengine with a web2py > model?http://code.google.com/appengine/articles/bulkload.html I haven't tried doing this at all yet, since it's still too

[web2py:12396] Re: Python newbie question about deployment server requirements

2008-11-23 Thread Jonathan Benn
Hi Systemic, On Nov 22, 11:11 pm, SystemicPlural <[EMAIL PROTECTED]> wrote: > Thinking about learning python for a new project as it looks > v.interesting. (currently a .net and php developer) > I am trying to workout what kind of requirements the deployment server > will need. My current servi

[web2py:12392] Re: issues deploying latest web2py to GAE

2008-11-22 Thread Jonathan Benn
Thanks for the helpful information, Massimo. That doesn't sound very hard. --Jonathan On Nov 20, 4:58 pm, mdipierro <[EMAIL PROTECTED]> wrote: > You only need to edit the gluon/restricted.py > > and replace this line in log(...): > >         cPickle.dump(d,open(os.path.join > (request.folder,

[web2py:12391] Re: "No databases in this application" on GAE

2008-11-22 Thread Jonathan Benn
Hi Massimo, On Nov 22, 10:15 am, mdipierro <[EMAIL PROTECTED]> wrote: > This is normal  http://127.0.0.1:8080/myapp/appadmin/select/db/mytable > is not supposed to work on GAE. > You can use the GAE web interface to access your data. Can I ask why the table select does not work on GAE? I unde

[web2py:12390] Re: "No databases in this application" on GAE

2008-11-22 Thread Jonathan Benn
Hi Sharekey, On Nov 21, 5:41 am, sharekey <[EMAIL PROTECTED]> wrote: >     I try my test follow your steps, but it still doesn't work yet. > The browser print "No databases in this application" message as > before. howerver, thanks for your help! Here is the full code, with all modifications i

[web2py:12389] Re: "No databases in this application" on GAE

2008-11-22 Thread Jonathan Benn
Hi Yarko and Massimo, On Nov 20, 5:08 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote: > yes - but good for local development _only_ Yes, that was my intention. Thank you for clarifying. :-) --Jonathan --~--~-~--~~~---~--~~ You received this message because you

[web2py:12201] Re: issues deploying latest web2py to GAE

2008-11-20 Thread Jonathan Benn
On Nov 20, 2:15 am, BigBaaadBob <[EMAIL PROTECTED]> wrote: > Isn't the ticket feature one of the key features of web2py?  It is > listed on the features page. I'll implement the ticketing feature on GAE if nobody else gets to it before I do. It's not a super high priority for me, but I'll probab

[web2py:12202] Re: "No databases in this application" on GAE

2008-11-20 Thread Jonathan Benn
I have the same issue with appadmin. Here is my *very* quick & dirty solution (use at your own risk!). There are 3 modifications to make to appadmin.py (in the controllers folder): 1) At the beginning I disable the credentials check: #try: hosts=(http_host, socket.gethostbyname(remote_addr)) #e

[web2py:12130] Re: Way to generate atom feed

2008-11-18 Thread Jonathan Benn
On Nov 17, 3:38 pm, pigmej <[EMAIL PROTECTED]> wrote: > Sure, if I made it to work as a module ;) > When I'll find some free time, I'll write it ;) Thanks! --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:12129] Re: Possible bug in IS_URL

2008-11-18 Thread Jonathan Benn
Hi pigmej, On Nov 17, 8:21 pm, pigmej <[EMAIL PROTECTED]> wrote: > db.pages.original_link.requires=IS_NULL_OR(IS_URL > (error_message="...")) > > it returns error forhttp://domain.com/file.html > but it works forhttp://domain.com > > Is it bug or "feature" ? I just tried testing this with the

[web2py:11941] Re: Way to generate atom feed

2008-11-16 Thread Jonathan Benn
Hi Pigmej, On Nov 16, 2:03 am, pigmej <[EMAIL PROTECTED]> wrote: > I think for atom better is pyatom :) > I use it always :) So this time too :) If you create a web2py atom feed handler, could you please post it for the rest of us? Thanks, --Jonathan --~--~-~--~~~

[web2py:11868] Re: Patch Proposal - Custom Exception Handling

2008-11-14 Thread Jonathan Benn
Hi all, On Nov 13, 3:34 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Not yet since this as introduced by Tim in 1.48. You can find an > example in routes.examples.py in the source distribution. Thanks, I found it here: web2py/routes.examples.py --Jonathan --~--~-~--~~~-

[web2py:11770] Re: Patch Proposal - Custom Exception Handling

2008-11-13 Thread Jonathan Benn
Hi guys, This routes_onerror sounds useful, especially since the standard exception handling doesn't work on Google App Engine (the errors are logged to the console). I can't seem to find routes_onerror anywhere though--is there any documentation on how to use it? Thanks, --Jonathan --~--~--

[web2py:11769] Re: Alwaysdata.com, first FREE (10MB) web2py host

2008-11-13 Thread Jonathan Benn
On Nov 12, 7:26 pm, "Yarko T" <[EMAIL PROTECTED]> wrote: > I think a separate deployment topics FAQ  (perhaps including topics on > building custom exe and app distributions) might be useful, and this > information is different from many of the other topics. > > What does everybody think? It sou

[web2py:11764] Re: Possible bug in IS_URL

2008-11-12 Thread Jonathan Benn
Hi Yarko, On Nov 12, 7:41 pm, "Yarko T" <[EMAIL PROTECTED]> wrote: > I suggest  you "follow" the "web2py" branch > onhttp://www.bitbucket.org/yarko/web2py/- that way, you'll get notices when > I've mirrored new changes (like just now) - and you can update / evaluate if > it affects your patch.

[web2py:11730] Re: Possible bug in IS_URL

2008-11-12 Thread Jonathan Benn
Hi Yarko and Massimo, On Nov 11, 10:39 pm, "Yarko T" <[EMAIL PROTECTED]> wrote: > FYI - For those working w/ mercurial: > I've mirrored this morning's latest changes from Massimo > tohttp://bitbucket.org/yarko/web2py Wow, that was *very* usable!!! :-D I'm really impressed. The only snag I ra

[web2py:11729] Re: Possible bug in IS_URL

2008-11-12 Thread Jonathan Benn
Hi all, It took another day of work but I think it was well worth it. As requested, I reimplemented IS_URL() to incorporate both IS_HTTP_URL() and IS_GENERIC_URL(). I'll be uploading my changes just as soon as I figure out how... --Jonathan --~--~-~--~~~---~--~

[web2py:11723] Re: Possible bug in IS_URL

2008-11-11 Thread Jonathan Benn
Hi Achipa, On Nov 12, 1:54 am, achipa <[EMAIL PROTECTED]> wrote: > Maybe it would be worth generalizing it a bit, a sort of > IS_URI(schema=['generic'|'http'|'ftp'|'mailto']) and have http as the > default? Good idea. I will do so. For the moment, IS_URL will only support 'generic' and 'http'

[web2py:11631] Re: CSS layout specs

2008-11-11 Thread Jonathan Benn
On Nov 10, 9:36 pm, mdipierro <[EMAIL PROTECTED]> wrote: > We should act on this! > > http://www.w3.org/TR/css3-layout/ > > Comments? Suggestions? Volunteers? Does anyone know if there are browsers that support CSS3 yet? I've been out of the loop for a little while, but last I checked CSS2 still

[web2py:11629] Re: Possible bug in IS_URL

2008-11-11 Thread Jonathan Benn
Hi everyone, It took me a few days but I managed to implement and thoroughly test two new validator functions for web2py: IS_GENERIC_URL: this precisely follows the URL specs (RFC 2396). It screens out strings with funny characters, and checks the inputed scheme against an authoritative list of

[web2py:11506] Re: Web2Py mirrored on BitBucket

2008-11-09 Thread Jonathan Benn
On Nov 9, 12:27 pm, yarko <[EMAIL PROTECTED]> wrote: > http://www.bitbucket.org/yarko/web2py/wiki > If you want to do your bug fixes, enhancements, development using > mercurial, take a branch of this, and work there.  When you're ready > to submit your work for merging, see guidelines there. >

[web2py:11489] Re: Possible bug in IS_URL

2008-11-08 Thread Jonathan Benn
Thanks again everyone for your help. I'll try my best to put together a good unit test, and then post it here for comments. --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py:11486] Re: About patches

2008-11-08 Thread Jonathan Benn
Hi Yarko, "Yarko T" <[EMAIL PROTECTED]> wrote: > Also, I expect that it is one-way: from Launchpad (where Massimo does his > development) to SVN (where he took it from). Ok, thanks for that clarification. > If you have changes to make, consider making an account on either Launchpad > or Bitb

[web2py:11483] Re: How to include html in a view?

2008-11-08 Thread Jonathan Benn
On Nov 9, 7:19 am, billf <[EMAIL PROTECTED]> wrote: > Many thanks.  As you can see I'm still missing some Python basics.  I > wonder sometimes that any of my code works :-) I'm fairly new to Python myself, but my understanding is that this use of the asterisk (*) has to do with how the web2py fu

[web2py:11478] Re: About patches

2008-11-08 Thread Jonathan Benn
Hi Yarko, On Nov 6, 9:32 pm, yarko <[EMAIL PROTECTED]> wrote: > web2py is mirrored to Google Code / SVN for the convenience of all > those who already use SVN. Is this a two-way mirroring? In other words, can people make commits via Subversion to the Google Code mirror? Or is it one-way, mean

[web2py:11272] Re: About patches

2008-11-06 Thread Jonathan Benn
On Nov 5, 12:45 am, "Yarko T" <[EMAIL PROTECTED]> wrote: > Should I just try a mercurial site, and see if that would work better? :-) Yes please! I've started using Mercurial for my project, and it's working great. It has TortoiseHg as a front-end, which is very handy and with it you don't need

[web2py:11271] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
P.S. I think it might be nice for web2py to provide some sort of feedback to let the end-user know why the form.accept() call rejected the db insertion. Otherwise, the next time someone runs into this issue they will again have to load the debugger (assuming they have one) to diagnose why they my

[web2py:11270] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
Hi Voltron and Massimo, On Nov 6, 8:10 am, voltron <[EMAIL PROTECTED]> wrote: > SQLField('Jons_blob'    ,  'blob', default = ""), Yes, thank you for that! This worked and fixed the issue. Consequently, I've found an erratum for the web2py manual! :-) The line in the web2py manual on p.220:

[web2py:11262] Re: Important typo found in web2py manual

2008-11-05 Thread Jonathan Benn
Hi Massimo, On Nov 5, 7:01 pm, mdipierro <[EMAIL PROTECTED]> wrote: > I think the http header are case independent but anyway, I agree that > should be fixed. It will be in the next verision of the manual. > > Thanks for reporting this. You're welcome. I reported it because Firefox and/or the

[web2py:11261] Re: Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
Hi Massimo, On Nov 5, 7:00 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Sorry that is not the proper thing to do. The problem is that some > database do no allow NULL values in blobs. I didn't think it was the correct fix, but it worked! ;) > You just need to make sure that 'blob' files have d

[web2py:11197] Important typo found in web2py manual

2008-11-05 Thread Jonathan Benn
On p.220, for this line: response.headers['Content-type']=contenttype(request.args[0]) Very important: that should be a capital 'T' for Content-Type! The corrected line should be: response.headers['Content-Type']=contenttype(request.args[0]) --Jonathan --~--~-~--~~~

[web2py:11196] Re: Possible bug in IS_URL

2008-11-05 Thread Jonathan Benn
On Nov 5, 3:12 pm, achipa <[EMAIL PROTECTED]> wrote: > Agree with the spec :) > > http://www.faqs.org/rfcs/rfc1738.html Thanks for the handy link. --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:11195] Bug found loading images into DB + a fix! :-)

2008-11-05 Thread Jonathan Benn
Hi all, I tried implementing the code seen on p.220 of the web2py manual (the cut version of the manual at any rate) so that I could still upload documents to my Google App Engine app and ran into problems. The bug: I could no longer create new rows in the database Analysis: The reason for

[web2py:11192] Re: Getting a Warning straight out of the box for web2py + GAE

2008-11-05 Thread Jonathan Benn
Hi James, On Nov 5, 1:30 am, James Ashley <[EMAIL PROTECTED]> wrote: > This means you don't have the PIL module installed.  The GAE SDK uses > it to simulate google's image API.  If you won't be using that, no big > deal.  If you need to, google PIL and install it.  It's > straightforward on Wi

[web2py:11191] Re: newbie question about Google Application Engine

2008-11-05 Thread Jonathan Benn
On Nov 4, 5:23 pm, mdipierro <[EMAIL PROTECTED]> wrote: re: formatting system for AlterEgo > markdown Ok, thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group,

  1   2   >