[web2py] Re: How do I import `gluon.dal` from Python shell?

2013-01-27 Thread Emilius Omeen
import sys sys.path.append('/home/www-data/web2py') from gluon import DAL, Field --

[web2py] Re: Server konfigurations basics redirects

2013-02-10 Thread Emilius Omeen
rename your application to "init" or edit /web2py/routes.py default_application = 'your application name'# ordinarily set in base routes.py default_controller = 'default' # ordinarily set in app-specific routes.py default_function = 'index' # ordinarily set in app-specific routes.py

[web2py] Re: Server konfigurations basics redirects

2013-02-11 Thread Emilius Omeen
my english not so good, but maybe I suggest way to solve http://web2py.com/books/default/chapter/29/04#URL-rewrite So you can now have language-specific static files, including images, if you need to. Domain mapping is supported as well: routers = dict( BASE = dict( domains = {

[web2py] Re: How do I deploy an application to a linux server ?

2013-02-12 Thread Emilius Omeen
some useful information you can find in /web2py/scripts folder or in http://web2py.com/books/default/chapter/29/13 Deployment recipes @debi:/home/www-data/web2py/scripts$ ll . .. autoroutes.py bench.py cleancss.py cleanhtml.py cl

[web2py] SQLFORM.grid(db.mydb, fields=['name', 'info'] generate error 'str

2012-10-27 Thread Emilius Omeen
hello when use in controller default.py def sql_form(): sqlform=SQLFORM.grid(db.mydb, fields=['name','info']) return dict(sqlform=sqlform) generate ERROR ticket 'str' object has no attribute '_tablename' web2py™ (2, 0, 6, datetime.datetime(2012, 9, 2, 4, 44, 23), 'stable') Python Python

[web2py] Re: SQLFORM.grid(db.mydb, fields=['name', 'info'] generate error 'str

2012-10-29 Thread Emilius Omeen
solved > > when use in controller default.py > def sql_form(): > sqlform=SQLFORM.grid(db.mydb, fields=[db.mydbname.name, > db.mydbname.info]) > return dict(sqlform=sqlform) > > > --

[web2py] db.define_tabl('mytable', Field('call-limit')) error when use simbol "-" minus in Field name

2012-10-31 Thread Emilius Omeen
Hello thanks Massimo for web2py models/db.py db.define_table('cdr', Field('call-limit', 'integer', notnull=True, default='3')) Error invalid table or field name: call-limit raise SyntaxError, 'invalid table or field name: %s' % text SyntaxError: invalid table or field name: call-limit 9. 10.

[web2py] web2py for realtime asterisk

2012-11-04 Thread Emilius Omeen
hello may be this app will be interesting somebody. this app for Asterisk sql database then in asterisk use realtime module. addititonal CDR will be accessible from DB. source https://github.com/OEmilius/asterisk http://emilius.pythonanywhere.com/asterisk - see demo add sip peers, control state o

Re: [web2py] web2py for realtime asterisk

2012-11-05 Thread Emilius Omeen
in current realization web2py app connect only with mysql db, and Asterisk get sip peers configuration from DB, Asterisk get dialplan configuration from DB too. In next versions I think need to add possibility to change asterisk conf files using Asterisk AMI. Asterisk qery sql db for check sip

Re: [web2py] diffrence between web2py and django framework...

2013-08-18 Thread Emilius Omeen
deference between web2py - full-stack framework & django - non full-stack framework, but high-level Python Web framework (and nobody knows what it means high-level :-) who call high-level ? where low -level framework ? -- --- You received this message because you are subscribed to the Go

[web2py] rest of the programming

2013-09-02 Thread Emilius Omeen
in video: During the holidays, I made a spatula and etched inscription. estimated steel 80CrV2 (a circular saw) thickness of 3.3 mm poisoned with the charger from nokia 3310 as insulation used nail polish. http://www.youtube.com/watch?v=mv2TjmPhZ9E

[web2py] rest of the programming

2013-09-02 Thread Emilius Omeen
During the holidays, I made a spatula and etched inscription. estimated steel 80CrV2 (a circular saw) thickness of 3.3 mm poisoned with the charger from nokia 3310 http://www.youtube.com/watch?v=mv2TjmPhZ9E