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
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
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
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
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
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
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?
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
>
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
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
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
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
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
;, 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
14 matches
Mail list logo