[web2py] Re: Rendering 'raw' HTML for AngularJS with Web2py

2013-12-23 Thread rppowell
There are several ways to overcome the syntax collision with handlebars: 1. Change web2py's delimiter syntax to something other than double-curly-braces. 2. Have custom web2py html-helpers 3. Change handlebars's delimiter syntax. 4a. Have separate files for the handlebars templates - ng-include. 4

[web2py] Re: Scaffold-Integration-Apps for client-side frameworks

2013-11-23 Thread rppowell
I've done a bit of playing with Ember.js and web2py a while back and posted up notes here: * http://www.web2pyslices.com/slice/show/1641/web2py-and-emberjs-starterkit This was a starting attempt to play and learn Ember.js. Please note that I am not proficient in Ember/javascript frameworks. Th

[web2py] Re: Setting SELECT to request.vars with value/_value?

2013-06-04 Thread rppowell
I verified that using 'deepcopy()' resolves issue in my example; Thanks! -Rob Powell -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@go

[web2py] Setting SELECT to request.vars with value/_value?

2013-06-03 Thread rppowell
Hello; I am using SELECT in a FORM and I noticed this behavior. Using the following in a controller, such as default.py: def selector_test(): items = [ OPTION('One', _value=1), OPTION('Two', _value=2), OPTION('Three', _value=3), ] form = FORM( SEL

[web2py] Re: IS_IN_DB orderby natural sort?

2013-05-13 Thread rppowell
ey(x.name)) db.item.item_type.widget = lambda f, v: SELECT(['']+[OPTION(i.name, _value=i.id) for i in sorted_items], _name=f.name, _id="%s_%s" % (f._tablename, f.name), _value=v, value=v) Also note the addition of [''] and IS_EMPTY_OR(...); this will also handle th

[web2py] Re: IS_IN_DB orderby natural sort?

2013-05-12 Thread rppowell
o I put in the 'orderby' parameter to make the item type list like the following: Type1 Type2 Type3 Type10 Type20 Type30 Type99 [Please use the above code to show in example what to do] -rppowell On Saturday, May 11, 2013 4:47:34 AM UTC-7, Niphlod wrote: > > IS_IN_DB accepts a "o

[web2py] IS_IN_DB orderby natural sort?

2013-05-10 Thread rppowell
in re.split(r'(\d+)', string_)] items = [ 'Item99', 'Item1', 'Item10', 'Item20', 'Item2', 'Item3', 'Item30' ] items.sort(key=natural_key) print ' '.join(items) How do I do this with the db in web2py?

[web2py] Re: how to get MySQLdb working with web2py source distribution?

2010-03-13 Thread rppowell
python.org/pypi/setuptools And then use easy_install to install MySQL-python. -rppowell On Mar 13, 12:59 pm, Igor Gassko wrote: > Hello, > > I have set up web2py source distribution on Windows 7 x64 with Python > 2.6. This distribution comes without preinstalled MySQL driver. I >

[web2py] Re: Dream Host Deployment

2010-03-04 Thread rppowell
I use Dreamhost but I got things working with FastCGI. I have documented the steps here: http://www.web2pyslices.com/main/slices/take_slice/68 This is not the best/only way to do it, but I got it working (and in a sub-directory/sub-url too). -rppowell -- You received this message because you

[web2py] Re: WSGI, Apache2, and web2py NOT at root

2010-02-13 Thread rppowell
eRule ^(.*)$ dispatch.fcgi/$1 [L] (this is similar to the WSGIScriptAlias configuration) I had to then fix the URLs generated by web2py to put in the '/ web2py/' directory. I rename routes.example.py (in web2py directory) to routes.py and edit: routes_out=(('/(?P.*)','/web

[web2py] Making auth_user Field optional

2010-01-26 Thread rppowell
e user (or option). Can someone help me figure this out? -rppowell -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+uns

[web2py:31123] Re: Dreamhost subdirectory via FastCGI

2009-09-16 Thread rppowell
borked. I think this is something internal to web2py that can be fixed: simpley prepend 'web2py/' to all the web2py URLs. How do I do that? -rppowell PS: I'm figuring out WSGI setup too, but the documentation has the same premise as setting up FastCGI: Everything seems to be s

[web2py:31085] Dreamhost subdirectory via FastCGI

2009-09-15 Thread rppowell
eb2py base, it redirects to "/welcome/default/ index". I need to have "/web2py" included in the URL base. How do I configure web2py to work in the web subdirectory? -rppowell --~--~-~--~~~---~--~~ You received this message because you are subscr

[web2py:28914] web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-18 Thread rppowell
;, line 3, in zipimport.ZipImportError: can't find module 'gluon' F:\PortableDev\web2py> Is the web2py_win.zip archive missing something/corrupted? -rppowell --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups