[web2py:18347] Re: affordable web2py hosting with support for Numpy

2009-03-19 Thread Michael Wales
I've always been a fan of ASmallOrange (http://www.asmallorange.com/) - I am unsure if these libraries come preinstalled on the shared hosting, but you can always install them yourself (via SSH) or submit a trouble ticket. ASO's support is top-notch. Virtually every request I have made has been s

[web2py:18081] Re: File Uploads w/o SQLFORM

2009-03-15 Thread Michael Wales
ote that SQLForm does all - sets up the required form content (business > logic) to pass on to the view to render, sets up validation (business > logic),  and more... > > On Sun, Mar 15, 2009 at 11:58 AM, Michael Wales wrote: > > > > > Does web2py handle file

[web2py:18074] File Uploads w/o SQLFORM

2009-03-15 Thread Michael Wales
Does web2py handle file uploads when not using SQLFORM? I submit the form, the request.vars.file variable contains the original filename of the file, but nothing gets placed in the uploads directory. I guess my question is - I want to handle the file upload, movement to a directory, and database

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

2009-03-12 Thread Michael Wales
Certificate is invalid - can eventually get to the site, but requires some manual labor in Firefox. On Mar 12, 7:35 am, Jonathan Benn wrote: > 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 fe

[web2py:17927] Re: how to set which application is default?

2009-03-12 Thread Michael Wales
The main domain will always open default/index unless you use some form of rewrite. mod_rewrite, in Apache, is the preferred method but web2py does offer a routes.py file in its root directory which will allow you to point root to any of your applications. On Mar 12, 8:54 am, Jurgis Pralgauskis

[web2py:17883] Re: Returning A() from a Module

2009-03-11 Thread Michael Wales
ings within are). When a string is dispalyed {{=A(...).xml()}} it > is escaped, unless marked up accordingly {{=XML(A(...).xml())}}. > > Hope this helps > > On Mar 11, 10:39 am, Michael Wales wrote: > > > I have the following function in a module - this function performs a &

[web2py:17875] Returning A() from a Module

2009-03-11 Thread Michael Wales
I have the following function in a module - this function performs a Regex search and attempts to replace matches with a link (generated with the A() helper). The regex and replacement is working correctly - if I change the value of the replace variable to something other than the A() helper, it w

[web2py:17834] Re: cookbook view

2009-03-10 Thread Michael Wales
You are missing the closing apostrophe for the function parameter of the URL() method - interesting though, since I just reported a bug that completely locked up the server when the same thing occurs. Are you on Windows? On Mar 10, 2:53 pm, martin wrote: > here is the spelled out stuff > > Ticke

[web2py:17824] Re: routes.py - I must be missing something

2009-03-10 Thread Michael Wales
01 pm, Michael Wales wrote: > Changing the - to _ inroutes.py(and of course, altering the data in > the table, to correspond) still results in an "invalid function" > error. > > I want to say myroutes.pyisn't being seen/used at all! For instance, > routes_out doesn&#x

[web2py:17823] Re: Custom View Helpers

2009-03-10 Thread Michael Wales
self,*components,**attributes): >          self.components,self.attributes=components,attributes >     def xml(self): return serial representation > > On Mar 9, 6:07 pm, Michael Wales wrote: > > > What is the standard way to go about creating your ownviewhelpers? I > > would like t

[web2py:17821] Re: routes.py - I must be missing something

2009-03-10 Thread Michael Wales
is that web2py does not '-' in URL and replaces > them with '_'. the replacement should happen after the URL mapping and > before your action is called. Your actions sees "quake_like" instead > of "quake-live". Does this help? > > Massimo >

[web2py:17805] Re: routes.py - I must be missing something

2009-03-10 Thread Michael Wales
ontroller contains an action > >     def view(): >           > > which parses "quake-live" from request.args[0] > > Is this really what your app does? If not, how is the action called? > > On Mar 10, 7:56 am, Michael Wales wrote: > > > No luck - I'

[web2py:17796] Re: routes.py - I must be missing something

2009-03-10 Thread Michael Wales
wrote: > I think the problem is that - musy be escaped \- > You do not need the .*: > > On Mar 9, 7:00 pm, Michael Wales wrote: > > > I've created aroutes.pywith the following (yes, these will become > > RegEx, but I am just trying to get it to work at this point):

[web2py:17765] routes.py - I must be missing something

2009-03-09 Thread Michael Wales
I've created a routes.py with the following (yes, these will become RegEx, but I am just trying to get it to work at this point): routes_in = (('.*:/shooterhero/games/quake-live', '/shooterhero/games/ view/quake-live')) My thinking is, if I link to /shooterhero/games/quake-live/ it will send thi

[web2py:17762] Custom View Helpers

2009-03-09 Thread Michael Wales
What is the standard way to go about creating your own view helpers? I would like to wrap a content area within a word_limiter() method but not sure what the community standard practice is in accomplishing this. def word_limiter(content, limit = 100, suffix = '...'): if len(content) <= limit:

[web2py:17730] Bug Report: Malformed URL() parameters leads to Win32 service crash

2009-03-09 Thread Michael Wales
If the file/function parameter of a URL() statement within the view is missing its final quote, the Win32 service will crash - no user friendly error message is returned to the user. To reproduce: {{= URL(r = request, c = 'static', f = 'home.png }} Recommend a regular expression to confirm all s