Re: [web2py] Re: IIS 8.5 static file using rewrite problem

2015-08-18 Thread Dmitri Ermolaev
how you start web2py under IIS ? 2015-08-18 11:07 GMT+03:00 Remco Boerma remco.boe...@gmail.com: Solved. While gathering information about my setup I found the solution. Setting Default web site Authentication Anonymous Authentication (keep enabled) to Application Pool Identity

[web2py] folders structure for ajax requests

2015-08-24 Thread Dmitri Ermolaev
If I use ajax - it willl load all in /model - menus too but for what? ajax requests need in db + settings - and not need in menu My idea: - make separate folder /menus - it will be laded as layout.html -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
in models - 0.py or menu.py I declare: CONST1 = 1 conts2 = 2 in controller I use this constatns - all work, BUT if I call an ajax function: onclick=''' //$(this).css('z-index','0'); $('#tag%s').hide('fast');

[web2py] Re: error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
in models/0.py that code work: if request.cookies.has_key('gift_code'): ## если онн уже дежжит в кукиях то берем его а не новый из запроса MY_GIFT_CODE = request.cookies['gift_code'].value #print 'in cookies gift_code:', MY_GIFT_CODE else: # если в кукиях нет кода то возможно он

[web2py] Re: error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
solved: I declare consts in IF block but need in main list exanlpe1: if condition1: CONST1=a else: CONST1=b --- will raise error right: CONST1 = None if condition1: CONST1=a else: CONST1=b пятница, 28 августа 2015 г., 7:38:56 UTC+3 пользователь Dmitri Ermolaev написал

[web2py] Re: error with CONTS in models

2015-08-27 Thread Dmitri Ermolaev
nor worked again (( I declare const GIFT_CODE: GIFT_CODE = None if ...: GIFT_CODE=1 else: GIFT_CODE=0 then in any ajax call print GIFT_CODE - raise error (( пятница, 28 августа 2015 г., 7:38:56 UTC+3 пользователь Dmitri Ermolaev написал: in models - 0.py or menu.py I declare: CONST1

[web2py] perfomance - import vs (vars)

2015-08-28 Thread Dmitri Ermolaev
best perfomance in modules?? 1 def get_gift_code(): from gluon import current request = current.request v = request.vars... 2 def get_gift_code(request): v = request.vars -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: error with CONTS in models

2015-08-28 Thread Dmitri Ermolaev
no - it not work too (( for ajax call I use session (( пятница, 28 августа 2015 г., 8:32:29 UTC+3 пользователь Dmitri Ermolaev написал: in models/0.py that code work: if request.cookies.has_key('gift_code'): ## если онн уже дежжит в кукиях то берем его а не новый из запроса

[web2py] Re: 2.12.1 is out

2015-08-28 Thread Dmitri Ermolaev
may be set some key for web2py? web2py.exe --pickle_high_off - will off pickle.highprotocol anywhere воскресенье, 16 августа 2015 г., 23:45:19 UTC+3 пользователь Massimo Di Pierro написал: Fine with most of these. Can you send PR requests and I will review/accept/reject? Massimo On

[web2py] Re: 2.12.1 is out

2015-08-30 Thread Dmitri Ermolaev
ok may be do it in wsgihandle.py - for apache ? пятница, 28 августа 2015 г., 15:47:47 UTC+3 пользователь Anthony написал: On Friday, August 28, 2015 at 5:34:50 AM UTC-4, Dmitri Ermolaev wrote: may be set some key for web2py? web2py.exe --pickle_high_off - will off pickle.highprotocol

[web2py] Re: 2.12.1 is out

2015-09-05 Thread Dmitri Ermolaev
UTC+3 пользователь Massimo Di Pierro написал: > > Once again, I would like to understand what is this problem with the > HIGH_PROTOCOL. Can you explain to me again what the problem is? > > Massimo > > On Sunday, 30 August 2015 10:19:08 UTC-5, Dmitri Ermolaev wrote: >

[web2py] Re: appconfig.ini

2015-09-05 Thread Dmitri Ermolaev
migrate_enabled = False => migrate_enabled = "False" all in .ini - converted to STRING суббота, 5 сентября 2015 г., 9:21:21 UTC+3 пользователь Annet написал: > > In appconfig.ini I have the following settings: > > ; db configuration > [db] > uri =

[web2py] Re: error with CONTS in models

2015-09-05 Thread Dmitri Ermolaev
, 2015 at 11:29:15 AM UTC+2, Dmitri Ermolaev wrote: >> >> no - it not work too (( >> >> for ajax call I use session (( >> >> пятница, 28 августа 2015 г., 8:32:29 UTC+3 пользователь Dmitri Ermolaev >> написал: >>> >>> >>> in mode

[web2py] DAL SQLFORM.grid sort error

2015-09-14 Thread Dmitri Ermolaev
DAL error h = CAT( SQLFORM.grid(db.gifts, deletable=False, editable=False, details=False, selectable=None, create=False, csv=False, ), error 2467. 2468. 2469. 2470. 2471. 2472. 2473. 2474. 2475.

[web2py] model structure

2015-09-14 Thread Dmitri Ermolaev
When the model is loaded, all files are downloaded in the order their name my suggestion: im /moder folder use names: 0_set[tings].py - any settings for application: from gluon import current current.PARTNER_MIN = PARTNER_MIN = 10 PARTNER_GO = 77 ## app configuration made easy. Look

[web2py] tablet samsung not detected

2015-09-11 Thread Dmitri Ermolaev
I have tablet sansung andriod TAB E it not detected as current.IS_TABLET = IS_TABLET = request.user_agent().is_tablet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

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

2015-09-14 Thread Dmitri Ermolaev
new error in cache with *HIGHEST_PROTOCOL (((* Traceback (most recent call last): File "C:\web2py-m\gluon\restricted.py", line 227, in restricted exec ccode in environment File "C:/web2py-m/applications/ipay3/controllers/default.py"

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

2015-09-14 Thread Dmitri Ermolaev
:17:35 UTC+3 пользователь Dmitri Ermolaev написал: > > new error in cache with *HIGHEST_PROTOCOL (((* > > Traceback (most recent call last): > File "C:\web2py-m\gluon\restricted.py", line 227, in restricted > exec ccode in environment > File "C:/web2py-m/appli

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

2015-09-14 Thread Dmitri Ermolaev
in admin -> db -> cache: web2py™Version 2.11.2-stable+timestamp.2015.05.30.16.33.24PythonPython 2.7.6 : C:\Python27\python.exe (prefix: C:\Python27)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "C:\web2py-m\gluon\restricted.py", line 227, in

[web2py] Decimal fields error as float

2015-09-09 Thread Dmitri Ermolaev
in db: Field('bal', 'decimal(16,8)', default = Decimal(0)), Field('fee', 'decimal(5,3)', default = Decimal(0)), in appadmin I set values in controller: t.fee =0.3 t.bal - t.fee -> error! float and decimal operation -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: impossible to convert decimal

2015-09-09 Thread Dmitri Ermolaev
fff = round( float (t.decimal_val), 2) четверг, 13 февраля 2014 г., 14:49:44 UTC+3 пользователь Robin Manoli написал: > > Hey, > I have a decimal in db, for which I tried numerous ways to round to two > decimal points, and also to calculate with other numbers. Basically I want > to convert it

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

2015-09-20 Thread Dmitri Ermolaev
pickle error web2py™Version 2.11.2-stable+timestamp.2015.05.30.16.33.24PythonPython 2.7.6: C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe (prefix: C:\Python27)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Traceback (most recent call last): File

[web2py] how in Parameter-based system set favicon URL

2015-09-24 Thread Dmitri Ermolaev
If I use Parameter-based system http://web2py.com/books/default/chapter/29/04/the-core?search=favicon how make route for http:/my_site.com/favicon.ico ??? that nnot worked routes_in = ( ('/favicon.ico', '/examples/static/favicon.ico'), ('/robots.txt', '/examples/static/robots.txt'), )

[web2py] appadmin 10 roew show - not 100!

2015-09-21 Thread Dmitri Ermolaev
appadmin work slowly!!! please limit rows in list to 10 or make input for set LIMIT rows in DB view in appadmin controller -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] default routes.py

2015-09-23 Thread Dmitri Ermolaev
may be make default routes in main app folder routes.py: # -*- coding: utf-8 -*- routes_in = ( (r'/favicon.ico', r'/main_app/static/images/favicon.png'), (r'/robots.txt', r'/main_app/static/robots.txt'), (r'/', r'/main_app/default/index/'), (r'/index/$anything',

[web2py] globals() in application

2015-12-05 Thread Dmitri Ermolaev
WARNING! if you define some globals in model files then it can not be assigned any where else example in models/ in 0.py or meny.py or db.py I define: _SOME_GLOBAL = 123 in any other controller or view _SOME_GLOBAL = 222 - ERROR! This global willbe deleted! globals()['_SOME_GLOBAL'] = 333 -

[web2py] Re: web2py 2.13.3 is OUT

2016-01-03 Thread Dmitri Ermolaev
hey - do you see cryptocurrency Auth? in NEXT - http://nxt.org/ - it have token by user account in cryptocurrency четверг, 24 декабря 2015 г., 18:21:42 UTC+3 пользователь Massimo Di Pierro написал: > > web2py 2.13.3 is out. MERRY CHRISTMAS EVERYBODY!!! > > It contains some bug fixes for bugs

[web2py] how find %s error in languages file?

2016-02-21 Thread Dmitri Ermolaev
in code : T('some text %s ...') in lang: 'some text ...' 09.106.143.35.2016-02-21.02-16-01.e334476f-4130-4466-9ac4-a0de4ddc1de5 need more than 1 value to unpackВерсия web2py™ Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 Python Python 2.7.6: C:\Program Files (x86)\Apache Software

[web2py] Re: how find %s error in languages file?

2016-02-21 Thread Dmitri Ermolaev
., 11:51:46 UTC+3 пользователь Dmitri Ermolaev написал: > > in code : T('some text %s ...') > > in lang: 'some text ...' > > > > 09.106.143.35.2016-02-21.02-16-01.e334476f-4130-4466-9ac4-a0de4ddc1de5 > need more than 1 value to unpackВерсия > web2py™ V

[web2py] Re: how find %s error in languages file?

2016-02-21 Thread Dmitri Ermolaev
no! in gifts records only UTF-8 text in russian воскресенье, 21 февраля 2016 г., 11:51:46 UTC+3 пользователь Dmitri Ermolaev написал: > > in code : T('some text %s ...') > > in lang: 'some text ...' > > > > 09.106.143.35.2016-02-21.02-16-01.e334476f-4130-4466-9ac4-a0de4d

[web2py] Re: how find %s error in languages file?

2016-02-21 Thread Dmitri Ermolaev
all work https://7pay.in/gifts/list but than raise error - why - data in table is static воскресенье, 21 февраля 2016 г., 11:51:46 UTC+3 пользователь Dmitri Ermolaev написал: > > in code : T('some text %s ...') > > in lang: 'some text ...' > > > > 09.106.143.35.2016-02-2

[web2py] Re: deploying web2py on IIS

2016-04-02 Thread Dmitri Ermolaev
I do it! Its work: http://web2py.com/books/default/chapter/29/13/deployment-recipes#IIS IIS much quicker than Apache - Apache load a processor at 100% for AJAX requests (( thanx вторник, 6 сентября 2011 г., 13:03:42 UTC+3 пользователь Hassan Alnatour написал: > > how can i deploy web2py on

[web2py] Re: deploying web2py on IIS

2016-04-03 Thread Dmitri Ermolaev
*wfastcgi.py for IIS and web2py* воскресенье, 3 апреля 2016 г., 7:56:03 UTC+3 пользователь Dmitri Ermolaev написал: > > I do it! Its work: > http://web2py.com/books/default/chapter/29/13/deployment-recipes#IIS > > IIS much quicker than Apache - Apache load a processor a

[web2py] Re: deploying web2py on IIS

2016-04-19 Thread Dmitri Ermolaev
Yes! not need to downlad full MS Visual C вторник, 5 апреля 2016 г., 4:59:40 UTC+3 пользователь Massimo Di Pierro написал: > > are you proposing this for including in web2py? > > On Sunday, 3 April 2016 03:51:20 UTC-5, Dmitri Ermolaev wrote: >> >> *wfastc

[web2py] session error

2016-07-16 Thread Dmitri Ermolaev
I use if not request.env.web2py_runtime_gae: migrate = 0 fake_migrate = myconf.take('db.fake_migrate') and True or False migrate = (myconf.take('db.migrate') or migrate) and True or False ## if NOT running on Google App Engine use SQLite or other DB ## folder="../databases"

[web2py] Re: web2py resources

2016-08-22 Thread Dmitri Ermolaev
web2py application foe bets portal in bitcoin payments https://github.com/icreator/web2py_bets_bitcoin -- 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) ---

[web2py] sqlite3 driver not found ((

2016-09-16 Thread Dmitri Ermolaev
Failure to connect, tried 5 times: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pyDAL-16.8-py2.7.egg/pydal/base.py", line 455, in __init__ self._adapter = adapter(**kwargs) File

[web2py] Re: sqlite3 driver not found ((

2016-09-16 Thread Dmitri Ermolaev
I install pyDALL https://github.com/web2py/pydal but same error (( in python command line - erro is same - not found driver! пятница, 16 сентября 2016 г., 21:34:57 UTC+3 пользователь Dmitri Ermolaev написал: > > I try to install on Unix server - unpack .zip > and run apps - error: &

[web2py] Re: sqlite3 driver not found ((

2016-09-17 Thread Dmitri Ermolaev
пятница, 16 сентября 2016 г., 21:34:57 UTC+3 пользователь Dmitri Ermolaev написал: > > I try to install on Unix server - unpack .zip > and run apps - error: > Failure to connect, tried 5 times: Traceback (most recent call last): > File > "/usr/local/lib/python

[web2py] how make repository on github for windows users?

2016-08-22 Thread Dmitri Ermolaev
What steeps? -- 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-users"

[web2py] Re: Table doesn't exist - in mySQL migrate

2018-03-01 Thread Dmitri Ermolaev
:52:50 UTC+3 пользователь Dmitri Ermolaev написал: > > *Error in string:* > * format='%(name)s',* > > *db.define_table('systems',** Field('name', length=25, readable=False, > comment='name of tokenized system'),** Field('from_block', 'integer', > comment='block was test

[web2py] Table doesn't exist - in mySQL migrate

2018-03-01 Thread Dmitri Ermolaev
*Error in string:* * format='%(name)s',* *db.define_table('systems',** Field('name', length=25, readable=False, comment='name of tokenized system'),** Field('from_block', 'integer', comment='block was tested'),* * #migrate=False,** format='%(name)s',** )* (1146, u"Table

[web2py] Re: exceptions.KeyError

2018-03-04 Thread Dmitri Ermolaev
And when I rty to SAVE I see::: failed to reload module because: SyntaxError('invalid syntax', ('', 1, 21, 'import applications.7pay_in.modules.serv_block_proc\n')) воскресенье, 4 марта 2018 г., 11:58:51 UTC+3 пользователь Dmitri Ermolaev написал: > > see line 463 - "return&q

[web2py] Re: exceptions.KeyError

2018-03-04 Thread Dmitri Ermolaev
how I may reload module manual? воскресенье, 4 марта 2018 г., 12:08:11 UTC+3 пользователь Val K написал: > > It happens when module was changed but not reloaded > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] exceptions.KeyError

2018-03-04 Thread Dmitri Ermolaev
see line 463 - "return" - but error below! why? Error ticket for "7pay_in"Ticket ID __1.2018-03-04.11-56-18.c0a358b4-b24b-4968-be91-5b80d853bed1 '1'Версия web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25 Python Python 2.7.5: /usr/bin/python (prefix: /usr)Traceback 1. 2. 3. 4. 5. 6.

[web2py] Re: exceptions.KeyError

2018-03-04 Thread Dmitri Ermolaev
I think - permissions is wrong воскресенье, 4 марта 2018 г., 12:26:03 UTC+3 пользователь Val K написал: > > Look for 'track_changes' in the chapter "The core" of the book, or just > restart web2py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -