[web2py] Re: AppConfig vs SETTINGS

2015-07-10 Thread Dmitry Ermolaev
why print myconfig['db']['uri']['any2'] why not use dots? print myconfig.db..url.any2. in Storage it work -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issue

[web2py] AppConfig vs SETTINGS

2015-07-10 Thread Dmitry Ermolaev
new: in /private new file myconf = AppConfig(reload=True) if not request.env.web2py_runtime_gae: ## if NOT running on Google App Engine use SQLite or other DB db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', cast=int), check_reserved=['all']) old: in /model 0.

[web2py] calendar not cliced

2015-07-09 Thread Dmitry Ermolaev
I update web2py to 2.11 but calendar widget not worked: Field('run_dt', 'datetime',... when click on date - erro on page Uncaught TypeError: Cannot read property 'length' of nullDate.c_print @ calendar.js:22Calendar.callHandler @ calendar.js:22Calendar.cellClick @ calendar.js:22Calendar.tableMou

[web2py] Re: cron - not work?

2015-07-09 Thread Dmitry Ermolaev
I need open an some url (app/controller/function) time by time why cron not do that? why it need locking files? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issu

[web2py] cron - not work?

2015-07-09 Thread Dmitry Ermolaev
I use Windows and Apache 2.2 in crontab: #crontab */1 * * * * root *cron/ws_run in controller cron.py: if not request.is_local: raise HTTP(200,'error') def ws_run(): print 'ws_run' rec = db.my_recs[1] rec.update_record( ref_id = (rec.ref_id or 0) + 1 ) db.commit() retu

[web2py] idea: in admin db mare ref url

2015-07-08 Thread Dmitry Ermolaev
When I edit the record in some table - if field is referenced to another table - need to show url to that reference record show field as: Label: Field - Comment and Ref_URL below -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: @cache lose response

2015-07-08 Thread Dmitry Ermolaev
> HTML response that is sent to the browser, then you must call > response.render() inside the action. This is explained here: > http://web2py.com/books/default/chapter/29/04/the-core#cache. > > Anthony > > On Wednesday, July 8, 2015 at 2:21:10 AM UTC-4, Dmitry Ermolaev wrote:

[web2py] Re: @cache lose response

2015-07-07 Thread Dmitry Ermolaev
exp_time = request.is_local and 3 or 360 @cache(request.env.path_info, time_expire=exp_time) not work properly - 1st call if good but all other calls is bad with response.any_my_vars is null -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/we

[web2py] Re: @cache lose response

2015-07-07 Thread Dmitry Ermolaev
if cache_model not et - all work good среда, 8 июля 2015 г., 8:59:19 UTC+3 пользователь Dmitry Ermolaev написал: > > if > @cache.action(time_expire=exp_time, cache_model=cache.disk, vars=False, > public=False, lang=True) > def contacts(): > response

[web2py] @cache lose response

2015-07-07 Thread Dmitry Ermolaev
if @cache.action(time_expire=exp_time, cache_model=cache.disk, vars=False, public=False, lang=True) def contacts(): response.title=T('Контакты') response.not_show_func = True h = CAT( H3(T('Отзывы, Обсуждение, Жалобы, Благодарности')), T('Можно найти в ветке на'),' ',

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-06 Thread Dmitry Ermolaev
This error in sessions and then raise in pickle пятница, 3 июля 2015 г., 23:50:25 UTC+3 пользователь Dmitry Ermolaev написал: > > I continue tests... > > Any request with some PORT (for example http://mydom:PORT) after > restarting Apache will take this PORT as success but all

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-03 Thread Dmitry Ermolaev
:43 UTC+3 пользователь Dmitry Ermolaev написал: > > in 2.11 error: > > Traceback (most recent call last): > File "C:\web2py-m\gluon\main.py", line 436, in wsgibase > session.connect(request, response) > File "C:\web2py-m\gluon\globals.py", l

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-07-03 Thread Dmitry Ermolaev
in 2.11 error: Traceback (most recent call last): File "C:\web2py-m\gluon\main.py", line 436, in wsgibase session.connect(request, response) File "C:\web2py-m\gluon\globals.py", line 960, in connect session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) File "C:\web2py-m\gluon

[web2py] Re: Apache on Windows + many applications

2015-07-03 Thread Dmitry Ermolaev
https://7pay.in/ - worked http://7pay.in/ - error in rockets server all OK in Apache - errors (( pickle with Apache rise error -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/li

[web2py] Apache on Windows + many applications

2015-07-03 Thread Dmitry Ermolaev
I have Windows Server and Apache 2.2 and many apps: applications/app1 applications/app2 applications/app3 in Apache config: Include conf/includes/*.conf localhost:80 ### # кто-то стучится черз

[web2py] Re: languages.py", line 914 - error

2015-06-27 Thread Dmitry Ermolaev
is translated with "Ciao" without the "%s" than > > "Ciao" % "Dmitry" results in an error. > > The problem is the omission of a %s or or the addition of a %(name)s in > the translation, possibly a misspelling of he (name)? > > > On Sat

[web2py] languages.py", line 914 - error

2015-06-27 Thread Dmitry Ermolaev
Traceback (most recent call last): File "C:\web2py-m\gluon\restricted.py", line 224, in restricted exec ccode in environment File "C:\web2py-m\applications\ipay\views\buy/index.html", line 184, in File "C:\web2py-m\gluon\html.py", line 612, in __init__ text = str(text) File "C:\

[web2py] Re: views: {{include var}}

2015-06-24 Thread Dmitry Ermolaev
not actually include and > parse the "page" template when the condition is False, so it should be > faster in that case. The above also works with {{extend}}: > > {{extend 'my_layout.html' if some_condition else None}} > > Anthony > > On W

[web2py] Re: views: {{include var}}

2015-06-24 Thread Dmitry Ermolaev
e" template when the condition is False, so it should be > faster in that case. The above also works with {{extend}}: > > {{extend 'my_layout.html' if some_condition else None}} > > Anthony > > On Wednesday, June 24, 2015 at 2:43:21 AM UTC-4, Dmitry Ermolaev

[web2py] Re: views: {{include var}}

2015-06-24 Thread Dmitry Ermolaev
est.folder + spath + rec.file_, dict(sp=spath1))) Введите код... среда, 24 июня 2015 г., 9:43:21 UTC+3 пользователь Dmitry Ermolaev написал: > > {{if 'page' in globals():}} > {{include page}} > {{else:}} > {{=list}} > {{pass}} > > erro - > > File &

[web2py] views: {{include var}}

2015-06-23 Thread Dmitry Ermolaev
{{if 'page' in globals():}} {{include page}} {{else:}} {{=list}} {{pass}} erro - File "C:\web2py-m\gluon\template.py", line 684, in parse self.include(top, value) File "C:\web2py-m\gluon\template.py", line 462, in include text = self._get_file_text(filename) File "C:\web2py-m\gluon\

Re: [web2py] utf8 decode encode

2015-06-06 Thread Dmitry Ermolaev
\xd1\x81\xd1\x80\xd0\xb5\xd0\xb4\xd1\x81\xd1\x82\xd0\xb2 \xd1\x81\xd0\xbe > \xd1\x81\xd1\x87\xd0\xb5\xd1\x82\xd0\xb0 \xd0\xb2 > \xd0\xbe\xd1\x87\xd0\xb5\xd1\x80\xd0\xb5\xd0\xb4\xd1\x8c' > >>> s1=s.encode('utf-8') > >>> type(s1) > > >>> pr

[web2py] utf8 decode encode

2015-06-06 Thread Dmitry Ermolaev
I recive answer from some site in utf8 and when I store it in db I see: u'\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0441\u043e \u0441\u0447\u0435\u0442\u0430 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c' if print it to html:in controller (by re

[web2py] TAG select and parsing

2015-06-05 Thread Dmitry Ermolaev
To parsing A tag: h = ''' Show this ''' h = TAG(h) op_id = h.element('div.operations a.cheque') op_id = '%s' % op_id op_id = TAG(op_id) op_id1 = op_id[0]['_href'] op_id2 = op_id[0

[web2py] Re: update_record not working but not failing.

2015-06-02 Thread Dmitry Ermolaev
db.commit() пятница, 22 мая 2015 г., 12:51:00 UTC+3 пользователь peter написал: > > I am using sqlite 3. > > I have a ticket booking system. Transaction.status is set to 'pending' in > the database, when the transaction is initiated. > When the paypal payment completes: > > transaction.sta

[web2py] JSON-LD how to?

2015-06-02 Thread Dmitry Ermolaev
JSON-LD http://www.w3.org/TR/json-ld/ nice tool but how use it instead I need input values: event name description end date -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/lis

[web2py] Re: Navbar icon

2015-05-25 Thread Dmitry Ermolaev
auth.navbar(CAT(XML(''), 'Welcome'),... понедельник, 18 мая 2015 г., 17:47:50 UTC+3 пользователь Carla Raquel написал: > > How can one add an icon before the 'Welcome' message in the navbar,just > like the one next to the 'Profile' in the drop-down? I tried using > something like in > auth.na

[web2py] Re: ajax callback update css value

2015-05-23 Thread Dmitry Ermolaev
If you return JQuery script - not need to use any view template DIV( ... _onclick = "ajax(%s, [name1, name2, ...], ':eval');" % URL(controller, 'calback_0') def callback_0(): return '$(...)' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: great system login

2015-05-23 Thread Dmitry Ermolaev
I use registration by email - send secret token in post and save token in session It not need any 3-d side services пятница, 22 мая 2015 г., 8:30:11 UTC+3 пользователь about.me/diazluis/ написал: > > greetings, one has implemented a system > Login using the following code?: https://peterhudec.g

[web2py] Re: mobile admin - how switch off?

2015-04-29 Thread Dmitry Ermolaev
I restore layout.html in admin app! четверг, 30 апреля 2015 г., 9:39:40 UTC+3 пользователь Dmitry Ermolaev написал: > > Now I open admin and see - mobile wersion!!! > > how it switch off? > > now it work on: > http://127.0.0.1:8000/admin/default/site > > (((

[web2py] mobile admin - how switch off?

2015-04-29 Thread Dmitry Ermolaev
Now I open admin and see - mobile wersion!!! how it switch off? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you ar

[web2py] Re: Janrain: NEW OpenID connect

2015-04-24 Thread Dmitry Ermolaev
I use only email.registration it simple - not logins not passwords! example: http://lite.cash/bets/man/greet def set_session(sess, man): sess.man_id = man.id sess.man_name = man.name # confirm - подтверждение по почте получено def greet_conf(): key = request.args(0) if not key: re

Re: [web2py] LOAD component inside component

2015-04-24 Thread Dmitry Ermolaev
yes вторник, 21 апреля 2015 г., 22:17:38 UTC+3 пользователь Dave S написал: > > > > On Tuesday, April 21, 2015 at 6:14:35 AM UTC-7, Dmitry Ermolaev wrote: >> >> before to reload a sub-LOAD need stop it auto-loading - for preventing >> from double loads of sub-LO

[web2py] Re: LOAD() problem: Yes, I am bungling the world's smallest web2py app.

2015-04-24 Thread Dmitry Ermolaev
index.html: {{extend 'layout.html'}} {{=LOAD('default', 'showtasks',ajax=True)}} In default.py def index(): return dict() # will take no view def showtasks(): return SQLFORM.grid(db.task,user_signature=False) четверг, 23 апреля 2015 г., 20:00:50 UTC+3 пользователь Tom Campbell написа

Re: [web2py] LOAD component inside component

2015-04-21 Thread Dmitry Ermolaev
l(statement, %s000); // start reloading ''' % (timeout, timeout) or '') ) воскресенье, 19 апреля 2015 г., 19:54:31 UTC+3 пользователь Dmitry Ermolaev написал: > > # -*- coding: utf-8 -*- > > AJ_FROM_SERVER = True > UPD_TIMEOUT = 6000 > > def rel

[web2py] Re: Web2py ckEditor

2015-04-21 Thread Dmitry Ermolaev
How use ckeditor in FORM - not SQLFORM ?? среда, 18 июня 2014 г., 12:56:48 UTC+3 пользователь Sharjeel Ali Shaukat написал: > > i m using ckeditor here i want to show runtime preview in div and also > using its options like Bold button dont highlights the text and are not > working perfectly

[web2py] MENU - active element

2015-04-20 Thread Dmitry Ermolaev
active element in MENU insert in documentation and in layout.html =MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu', *active_url=URL()*) and in css: .web2py-menu-active a { color:#C8FF7B; } -

[web2py] Re: question about components

2015-04-19 Thread Dmitry Ermolaev
aj = "ajax('%s',[],'main')" response.menu = [ (T('Home'), URL('default', 'index')==URL(), URL('default', 'index'), []), (T('Menu1'), URL('default', 'menu1')==URL(), dict(_onclick=aj % URL('default', 'menu1')), []), (T('Menu2'), URL('default', 'menu2')==URL(), dict(_onclick=aj % URL('

Re: [web2py] LOAD component inside component

2015-04-19 Thread Dmitry Ermolaev
# -*- coding: utf-8 -*- AJ_FROM_SERVER = True UPD_TIMEOUT = 6000 def reload_btn(s): return DIV(T('RELOAD'), _onclick = 'ajax("%s", [], "reload_tag")' % URL('aj_load2','reload'), _class='btn btn-info') def reload(): session.counter = (int(session.counter or 0)) + 1

Re: [web2py] LOAD component inside component

2015-04-19 Thread Dmitry Ermolaev
simple use *.html view - not *.load and use URL for set controller/function in LOAD() I not use same views - onlu generic.html by: def load_func_2(): h = CAT() h += ... ... return h def load_func(): ... h = CAT() h += LOAD(URL('contloller','load_func_2', args=[], vars={}), ) retu

[web2py] my site as example for web2py + bitcoin

2015-04-18 Thread Dmitry Ermolaev
Hi I use web2py and make - http://lite.cash/bets/ + bitcoin payment gateway - http://lite.cash may be you want use bitcoin payments on ours sites? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] bootstrap.min.css container

2015-04-18 Thread Dmitry Ermolaev
in origin - .container, .navbar-static-top .container, .navbar-fixed-top .container, . navbar-fixed-bottom .container { 1. width: 940px; } when resize window to small size it not correct show container I replace in my.css with: div.container { * width: inherit;* max-width: 1000px; } --

[web2py] readable / writable nott worked

2015-04-14 Thread Dmitry Ermolaev
ignore_rw. Normally, for a create/update form, only fields marked as writable=True are shown, and for readonly forms, only fields marked as readable=True are shown. Field('trust','integer', default = 0, readable=True, writable=False, comment='level of Trust to You'), rec = man_id and d

[web2py] Re: where to set up localization in web2py

2015-04-13 Thread Dmitry Ermolaev
I use settings in models/0.py from gluon.storage import Storage LANGS = Storage({ 'ru': ['Русский', 'ru.png'], 'en': ['English', 'gb.png'], 'ge': ['German', 'ge.png'], 'tr': ['Türkçe', 'tr.png'], }) settings = Storage( develop = True, migrate = True, title = 'b..', subtitle = 'G

[web2py] Re: form.accepts for many buttons

2015-04-07 Thread Dmitry Ermolaev
solved: insert _name='selected' in BUTTON then catch request.vars.get('selected') вторник, 7 апреля 2015 г., 10:26:25 UTC+3 пользователь Dmitry Ermolaev написал: > > how check what button is pressed? > > form = FORM( > DIV(LABEL(T(' a

[web2py] form.accepts for many buttons

2015-04-07 Thread Dmitry Ermolaev
how check what button is pressed? form = FORM( DIV(LABEL(T(' as:')), INPUT(_name='numbs', _class='numb'), BUTTON(T(' Team '), _class='btn-primary', _value='team'),' ', BUTTON(T(' Color '), _class='btn-primary', _value='color'),' ',

[web2py] ERROR on clear cash fron admin DB

2015-04-05 Thread Dmitry Ermolaev
I store in cash connection: # покажем если был вызов а не из кэша def conn_1(curr, xcurr): print 'try connect to ',curr.abbrev # def __init__(self, service_url, service_name=None, timeout=HTTP_TIMEOUT, connection=None): cn = ServiceProxy(xcurr.connect_url, None, 40) #print cn

[web2py] Re: routes_app

2015-04-03 Thread Dmitry Ermolaev
for localhost and admin: routes_app += ( # admin(r'(.+)admin/$anything', r'admin'), # worked! (r'(.+)admin/$anything', r'admin'), # local (r'(.+)8000/(?P.*)', r'\g'), # defaults #(r'(.*)', r'shop'), #(r'/?(.*)', r'shop'), ) -- Resources: - http://web2py.com - http://web2p

Re: [web2py] routes_app

2015-04-03 Thread Dmitry Ermolaev
in DOCs I see: > > Application-Specific URL rewrite > When using the pattern-based system, an application can set its own routes in > an application-specific routes.py file located in the applications base > folder. This is enabled by configuring routes_app in the base routes.py > to determine f

[web2py] error: generic_patterns = []

2015-04-02 Thread Dmitry Ermolaev
When I make new app by Wizard if make in db.py response.generic_patterns = ['*'] if request.is_local else [] and all others controllers is disabled! please insert this code instead in db.py: response.generic_patterns = ['*'] if request.is_local else ['html'] -- Resources: - http://web2py.com -

[web2py] idea: new helpers

2015-03-31 Thread Dmitry Ermolaev
DIV( _class='row my_class') => ROW(_class='my_class') DIV( _class='col-sm-4 my_class') => COL4(_class='my_class') -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Is

[web2py] Re: DAL negate a query - error

2015-03-09 Thread Dmitry Ermolaev
исал: > > for the same exact reason. > > NOT field = True > > in t-sql means just FALSE, not FALSE and NULL > > On Monday, March 9, 2015 at 2:37:46 PM UTC+1, Dmitry Ermolaev wrote: >> >> I use negate - why this not worked? >> >> воскресенье, 8 марта

[web2py] Re: DAL negate a query - error

2015-03-09 Thread Dmitry Ermolaev
but db((db.progs.promo==True)).select(): is work! понедельник, 9 марта 2015 г., 16:58:26 UTC+3 пользователь Niphlod написал: > > for the same exact reason. > > NOT field = True > > in t-sql means just FALSE, not FALSE and NULL > > On Monday, March 9, 2015 at 2:37:46 P

[web2py] Re: DAL negate a query - error

2015-03-09 Thread Dmitry Ermolaev
> > On Sunday, March 8, 2015 at 7:23:54 PM UTC+1, Dmitry Ermolaev wrote: >> >> db((db.progs.promo==True) & (db.progs.closed!=True)).select(): >> or >> db((db.progs.promo==True) & ~(db.progs.closed==True)).select(): >> >> >> not worked ((

[web2py] DAL negate a query - error

2015-03-08 Thread Dmitry Ermolaev
db((db.progs.promo==True) & (db.progs.closed!=True)).select(): not worked (( if exist record wirh promo=True and closed=None or False - it not selected! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] SQL.grid - cvs=true

2015-03-02 Thread Dmitry Ermolaev
make table view: t = t and SQLFORM.smartgrid(db[t], maxtextlengths = { 'fonds.name': 60, 'fonds.info': 200 }, upload=URL('download'), links_in_grid=False, csv=False, ) open url: members/memb_goods.memb_id/5?keywords=1&order=memb_goods.amo&_expo

[web2py] insecure string pickle

2015-02-02 Thread Dmitry Ermolaev
Error ticket for "admin"Ticket ID 127.0.0.1.2015-02-03.07-40-32.4dc31e25-5b8c-4c78-b525-2a58b4ff7015 insecure string pickleВерсияweb2py™Version 2.9.12-stable+timestamp.2015.01.17.06.11.03PythonPython 2.7.6: C:\Python27\python.exe (prefix: C:\Python27)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11

[web2py] WebSocket as pusher.com

2015-01-31 Thread Dmitry Ermolaev
good idea: https://pusher.com/docs/pusher_protocol how insert same into web2py ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: [video] websockets com web2py e tornado

2015-01-29 Thread Dmitry Ermolaev
In curent version it not exist? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] idea: Internationalization

2015-01-28 Thread Dmitry Ermolaev
There will be good to split strıngs to admın and work sıde * and localıze ıt separate all T() in appadmin.py and views - separate from others T() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/

[web2py] Re: web2py 2.9.12 is OUT

2015-01-26 Thread Dmitry Ermolaev
solved! replase all pickle.dumps *session_pickled = pickle.dumps(self) ##, pickle.HIGHEST_PROTOCOL)* понедельник, 26 января 2015 г., 8:15:42 UTC+3 пользователь Dmitry Ermolaev написал: > > > Traceback (most recent call last): > File "C:\web2py-m\gluon\main.py",

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
solve^^ replace all pickle.dumps with: session_pickled = pickle.dumps(self) , pickle.HIGHEST_PROTOCOL) понедельник, 13 октября 2014 г., 20:22:57 UTC+3 пользователь Dmitry Ermolaev написал: > > I use apache 2.2 > > If use 2 and more apps - error will be raise for each that n

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
not worked (( I clear all cookies - error again понедельник, 13 октября 2014 г., 21:00:32 UTC+3 пользователь Leonel Câmara написал: > > You need to delete your browser cookies too. That said, this may also be a > web2py error because it shouldn't break just because the browser gives him > a non

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
why no error if rocked-server used and error if apache used ? why first aplication that got request HTTP worked but all others error? почему под сервером строенным все приложения работают а под сервером Апачи - нет почему работает только то приложение, которое получило первым HTTP-запрос, а все

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
oensdag 19 november 2014 15:54:13 UTC+1 schreef Edwin van de Ven: >> >> >> >> Op maandag 13 oktober 2014 19:22:57 UTC+2 schreef Dmitry Ermolaev: >>> >>> I del al files in /sessions and update to 2.9.11 >>> >>> Traceback (most recent call las

[web2py] Re: web2py 2.9.12 is OUT

2015-01-25 Thread Dmitry Ermolaev
try Ermolaev написал: > > > session_pickled = pickle and pickle.dumps(self, > pickle.HIGHEST_PROTOCOL) > response.session_hash = session_pickled and > hashlib.md5(session_pickled).hexdigest() > > понедельник, 26 января 2015 г., 8:15:42 UTC+3 пользователь

[web2py] Re: web2py 2.9.12 is OUT

2015-01-25 Thread Dmitry Ermolaev
session_pickled = pickle and pickle.dumps(self, pickle.HIGHEST_PROTOCOL) response.session_hash = session_pickled and hashlib.md5(session_pickled).hexdigest() понедельник, 26 января 2015 г., 8:15:42 UTC+3 пользователь Dmitry Ermolaev написал: > > > Traceback (most re

[web2py] Re: web2py 2.9.12 is OUT

2015-01-25 Thread Dmitry Ermolaev
Traceback (most recent call last): File "C:\web2py-m\gluon\main.py", line 435, in wsgibase session.connect(request, response) File "C:\web2py-m\gluon\globals.py", line 934, in connect session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) TypeError: 'NoneType' object is not ca

[web2py] how resend html element data from server?

2015-01-24 Thread Dmitry Ermolaev
Hi I wrote example foe change timeout in LOAD http://www.web2pyslices.com/slice/show/2009/change-timeout-interval-in-ajax-load but that not need if i can reload data from server Сделал изменение интервала обновления на лету в LOAD НО если мой сервер сам сможет посылать обновленные данные клиенту

[web2py] Re: error: load module

2015-01-21 Thread Dmitry Ermolaev
I delete all *.pyc files prom all apps Then run app2 - *.pyc files is made then run app1 - all impots sucess четверг, 22 января 2015 г., 9:11:05 UTC+3 пользователь Dmitry Ermolaev написал: > > if in app2 delete all *.pyc files - all work > > четверг, 22 января 2015 г., 8

[web2py] Re: error: load module

2015-01-21 Thread Dmitry Ermolaev
if in app2 delete all *.pyc files - all work четверг, 22 января 2015 г., 8:42:45 UTC+3 пользователь Dmitry Ermolaev написал: > > in vers 2.9.12 error (in vers 2.5 all worked): > > in app1 I use import module from app2: > from applications.app2.modules.cp_api import check_ars &

[web2py] error: load module

2015-01-21 Thread Dmitry Ermolaev
in vers 2.9.12 error: in app1 I use import module from app2: from applications.app2.modules.cp_api import check_ars in app2 code: import module1 rise error - Cannot import module 'applications.bs3b.modules.orders_lib'Versionweb2py™Version 2.9.12-stable+timestamp.2015.01.17.06.11.03Python

[web2py] error: no such table

2015-01-21 Thread Dmitry Ermolaev
no such table: cp_mods Versionweb2py™Version 2.9.12-stable+timestamp.2015.01.17.06.11.03PythonPython 2.7.8: C:\Python27\python.exe (prefix: C:\Python27)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. Traceback (most recent call last): File "C:\web2py-9-12\gluon\re

[web2py] auto_import make new recs without defaults !

2015-01-21 Thread Dmitry Ermolaev
If I use auto_import - and add new record - than receive None values instead default db = DAL("mysql:/s", # folder='applications/shop/databases', pool_size=3, auto_import=True, migrate_enabled = SETS.migrate_enabled, migrate=SETS.migrate, f

[web2py] error in db admin

2015-01-21 Thread Dmitry Ermolaev
I use auto_import: db = DAL("mysql://...", folder='applications/shop/databases', pool_size=3, auto_import=True, migrate_enabled = SETS.migrate_enabled, migrate=SETS.migrate, fake_migrate=SETS.fake_migrate, check_reserved=['all']

[web2py] Re: SQLFORM - field_id - not work

2015-01-21 Thread Dmitry Ermolaev
d as an argument. > > On Tuesday, January 20, 2015 at 6:15:21 AM UTC+1, Dmitry Ermolaev wrote: >> >> I need that ID become URL on view info of this record - same as View field >> >> понедельник, 25 августа 2014 г., 14:56:25 UTC+3 пользователь Anthony >> написал: >&g

[web2py] Re: helper LOAD() - how forse reload it?

2015-01-20 Thread Dmitry Ermolaev
solved "jQuery('#sel_curr').get(0).reload(); and target= in LOAD среда, 21 января 2015 г., 8:49:27 UTC+3 пользователь Dmitry Ermolaev написал: > > I use helper LOAD: > > DIV(LOAD('bill', 'show_update', args=[so_secr_id], ajax=True, >

[web2py] helper LOAD() - how forse reload it?

2015-01-20 Thread Dmitry Ermolaev
I use helper LOAD: DIV(LOAD('bill', 'show_update', args=[so_secr_id], ajax=True, times = UPD_TIMES, timeout=UPD_TIMEOUT), _class='row', _id='sel_curr') and helper BUTTON: BUTTON(TAG.i(_class='fa fa-refresh'), _name='want_pay', _class='btn btn-primary', _id

[web2py] Re: trying to add a second button to a form but before the submit button

2015-01-20 Thread Dmitry Ermolaev
def form_test(): #controller function form = SQLFORM(db.person, _id='form-1') btns = CAT( BUTTON('Save', _name='btn', _value='save', _form='form-1', _type="submit"), BUTTON('Save and Close', _name='btn', _value='close', _form='form-1', _type="submit"), BUTTON('Rese

[web2py] Re: how to select the last row in sql database using dal

2015-01-20 Thread Dmitry Ermolaev
>>> rows = db(query).select().last() >>> rows = db(query).select() >>> first_row = rows.first() >>> last_row = rows.last() вторник, 20 января 2015 г., 0:35:19 UTC+3 пользователь chuan написал: > > I would like to access last row of any database table in a general way, > do I have to first count

[web2py] http://www.web2pyslices.com/ - how download as application?

2015-01-20 Thread Dmitry Ermolaev
It is free? It is powered by web2py? why It not in examples apps? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you a

[web2py] Apache + web2py.exe as daemon or servise + nssm

2015-01-19 Thread Dmitry Ermolaev
Apache 2.2 + wsgi_mod in http.conf:: LoadModule wsgi_module modules\mod_wsgi.so if I use web2py/wsgihandler.py in apache config: ServerName dom1 ServerAlias www.dom1 DocumentRoot"C:/web2py-m" AllowOverride All Order allow,deny allow from all Order deny,allow Allow from all Or

[web2py] Re: Decimal( error )

2015-01-19 Thread Dmitry Ermolaev
; 'decimal(16,8)' ? > > On Thursday, 24 July 2014 06:02:41 UTC-5, Dmitry Ermolaev wrote: >> >> in db: >> ... >> Field(ddd, 'Decimal(16.8')), >> ... >> >> than in admin db update >> http://127.0.0.1:8000/polza/appadmin/updat

[web2py] Re: forum by web2py - freelance work

2015-01-19 Thread Dmitry Ermolaev
> > pyForum is built on web2py. As for CMS, it's trivial to make your own on > web2py, and there are a couple already. > > On Friday, August 1, 2014 3:42:10 AM UTC-7, Dmitry Ermolaev wrote: >> >> Any may make forum on python? >> may be on web2py? >>

[web2py] Re: SQLFORM - field_id - not work

2015-01-19 Thread Dmitry Ermolaev
I need that ID become URL on view info of this record - same as View field понедельник, 25 августа 2014 г., 14:56:25 UTC+3 пользователь Anthony написал: > > What do you expect it to do, and what is happening instead? > > On Monday, August 25, 2014 3:00:47 AM UTC-4, Dmitry Er

[web2py] Re: models - session.py

2015-01-19 Thread Dmitry Ermolaev
I found it in C:\web2py\applications\examples\\models воскресенье, 4 января 2015 г., 20:33:36 UTC+3 пользователь Niphlod написал: > > don't know. it's not a file shipped with the scaffolding app > > On Sunday, January 4, 2015 2:26:54 PM UTC+1, Dmitry Ermolaev wrote: >

[web2py] Re: models: markmin.py

2015-01-19 Thread Dmitry Ermolaev
ll you > what they do. They do not come with web2py. > > On Sunday, 4 January 2015 07:25:15 UTC-6, Dmitry Ermolaev wrote: >> >> >> Hi >> >> what does markmin.py >> <http://127.0.0.1:8000/admin/default/peek/lite_merch/models/markmin.py?id=models__markm

[web2py] Re: helper function BUTTON - insert in documentation

2015-01-19 Thread Dmitry Ermolaev
print BUTTON (_name='btn', '_value=123) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google

[web2py] Re: auto_import + folder

2015-01-19 Thread Dmitry Ermolaev
solved: folder='applications/bs3b/databases', # it work! понедельник, 19 января 2015 г., 15:31:29 UTC+3 пользователь Dmitry Ermolaev написал: > > how connet to app bs3b databese without absulute path? > > db = DAL("sqlite://storage.sqlite", # --> >

[web2py] auto_import + folder

2015-01-19 Thread Dmitry Ermolaev
how connet to app bs3b databese without absulute path? db = DAL("sqlite://storage.sqlite", # --> in web2py\applications\bs3b\databases\ folder='../../bs3b/databases', # auto_import=True, pool_size=0, migrate=True, check_reserved=['all'], ) print db

[web2py] helher BUTTON - insert in documentation

2015-01-17 Thread Dmitry Ermolaev
helher BUTTON - insert in documentation -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google

[web2py] LOAD helper with AJAX - run twice!

2015-01-16 Thread Dmitry Ermolaev
2.9.11-stable+timestamp.2014.09.15.23.35.11 in controller: === def show_update(): r = CAT() session.UPD_TIMES -= 1 r += DIV(T('Upadating'), ' ', session.UPD_TIMES) return r def show() session.UPD_TIMES = 100 r = CAT() r += LOAD('bill', 'show_up

[web2py] db.some_table(request.args(0,cast=int)) or redirect(some_URL)

2015-01-16 Thread Dmitry Ermolaev
not worked... I see instead on error : 404 NOT FOUND Why I can't rise some error message? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received th

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-11 Thread Dmitry Ermolaev
in editor auto-Indent not worked (( shit-tab - not worked (( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are s

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-09 Thread Dmitry Ermolaev
try define Field as Field('balance', 'decimal(16,8)', default = Decimal('0.0')), then try insert default value - 0+e00 it rise error! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/i

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-09 Thread Dmitry Ermolaev
Field(..) work db.Field(..) not work пятница, 9 января 2015 г., 23:54:58 UTC+3 пользователь Dmitry Ermolaev написал: > > I use _src.zip > >> 'DAL' object has no attribute 'Field' >> Versionweb2py™Version 2.9.12-beta+timestamp.2015.01.07.16.40.02Pytho

[web2py] Re: Please help us test the 2.9.12 binaries

2015-01-09 Thread Dmitry Ermolaev
I use _src.zip > 'DAL' object has no attribute 'Field' > Versionweb2py™Version 2.9.12-beta+timestamp.2015.01.07.16.40.02PythonPython > 2.7.8: C:\Python27\python.exe (prefix: C:\Python27)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > > Traceback (most recent call last): > File "C:\

[web2py] Re: New release of pyForum

2015-01-07 Thread Dmitry Ermolaev
I make some category and try open foums menu > Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > > Traceback (most recent call last): > File "C:\web2py\gluon\restricted.py", line 224, in restricted > exec ccode in environment > File "C:/web2py/applications/pyfo

[web2py] Re: Reload .load file

2015-01-06 Thread Dmitry Ermolaev
try .html extension instead .load вторник, 6 января 2015 г., 16:26:10 UTC+3 пользователь Gael Princivalle написал: > > Hello all. > > In a .load file I have some products. > When the user click on one of them I would like to reload the .load file > with the product id, for showing only this prod

[web2py] Re: routes_app

2015-01-06 Thread Dmitry Ermolaev
routes_in = ( (r'/', r'/bs3b/default/index'), (r'/about', r'/bs3b/default/about'), (r'/what', r'/bs3b/default/what'), (r'/download', r'/bs3b/default/download'), (r'/support', r'/bs3b/default/support'), (r'/$anything', r'/bs3b/$anything'), ) routes_out = [(x, y) for (y, x) in routes_in] my app is b

  1   2   >