[web2py] Re: web2py 2.9.6 is out!
support for SAML2 (with pysaml2) in docs not found ( -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] new widgets from s-cubism.com
a beautifull widgets http://dev.s-cubism.com/web2py_plugins will be included in official pack? Form Widgets - Horizontal Radio Widget http://dev.s-cubism.com/plugin_hradio_widget http://dev.s-cubism.com/plugin_hradio_widget A radio widget arranging its buttons horizontally - Multiple Select Widget http://dev.s-cubism.com/plugin_multiselect_widget http://dev.s-cubism.com/plugin_multiselect_widget A user-friendly multiple options widget - Suggest Widget http://dev.s-cubism.com/plugin_suggest_widget http://dev.s-cubism.com/plugin_suggest_widget A refined autocomplete widget - Lazy Options Widget http://dev.s-cubism.com/plugin_lazy_options_widget http://dev.s-cubism.com/plugin_lazy_options_widget A lazy loading options widget triggered by a js event - Uploadify Widget http://dev.s-cubism.com/plugin_uploadify_widget http://dev.s-cubism.com/plugin_uploadify_widget A file upload widget using uploadify.js - elRTE WYSIWYG Widget http://dev.s-cubism.com/plugin_elrte_widget http://dev.s-cubism.com/plugin_elrte_widget A WYSIWYG editor widget using elRTE.js - Tight Input Widget http://dev.s-cubism.com/plugin_tight_input_widget http://dev.s-cubism.com/plugin_tight_input_widget A size-adjusted input widget - Color Widget http://dev.s-cubism.com/plugin_color_widget http://dev.s-cubism.com/plugin_color_widget A color picker widget using colorpicker.js - Rating Widget http://dev.s-cubism.com/plugin_rating_widget http://dev.s-cubism.com/plugin_rating_widget A rating widget using jquery.rating.js - Anytime Widget http://dev.s-cubism.com/plugin_anytime_widget http://dev.s-cubism.com/plugin_anytime_widget A date-time picker widget using anytime.js Form Customize - Solid Form http://dev.s-cubism.com/plugin_solidform http://dev.s-cubism.com/plugin_solidform A custom SQLFORM for denser layout - Not-Empty Marker http://dev.s-cubism.com/plugin_notemptymarker http://dev.s-cubism.com/plugin_notemptymarker Add not-empty markers to field labels Table Customize - Solid Table http://dev.s-cubism.com/plugin_solidtable http://dev.s-cubism.com/plugin_solidtable A custom SQLTABLE for denser layout - Paginator http://dev.s-cubism.com/plugin_paginator http://dev.s-cubism.com/plugin_paginator A standard paginator - Table Scope http://dev.s-cubism.com/plugin_tablescope http://dev.s-cubism.com/plugin_tablescope A scope selector for table records - Table Checkbox http://dev.s-cubism.com/plugin_tablecheckbox http://dev.s-cubism.com/plugin_tablecheckbox A table column composed of checkboxes - Table Permuter http://dev.s-cubism.com/plugin_tablepermuter http://dev.s-cubism.com/plugin_tablepermuter Make table rows permutable Content Management - Solid Grid http://dev.s-cubism.com/plugin_solidgrid http://dev.s-cubism.com/plugin_solidgrid A yet another grid. (EXPERIMENTAL) - Dialog http://dev.s-cubism.com/plugin_dialog http://dev.s-cubism.com/plugin_dialog A simple dialog - MPTT (Tree Model) http://dev.s-cubism.com/plugin_mptt http://dev.s-cubism.com/plugin_mptt Modified Preorder Tree Traversal (MPTT) implemntation original by django-mptt - Tree Crud http://dev.s-cubism.com/plugin_jstree http://dev.s-cubism.com/plugin_jstree A tree crud using jsTree, fully integrated with the MPTT plugin - -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] routes.py + route_in for Parameter-based system
How made Streaming virtual files in Parameter-based system in routes.py route_in=( ('.*.(php|PHP|asp|ASP|jsp|JSP)','jammer/default/jam'), ) I try: routers = dict( # base router BASE=dict( default_application='ipay', domains = { 'www.ipo-polza.ru' : 'polza', }, ), route_in = dict( # ('*.php|PHP|asp|ASP|jsp|JSP)','ipay/default/jam'), #php = 'ipay/default/jam', ) ) here is error (( -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')
How I may resolve this error mySQL? понедельник, 14 июля 2014 г., 16:44:41 UTC+4 пользователь Niphlod написал: so, you figured out that you can't connect to mysql. did you try to see if it's reachable ? On Monday, July 14, 2014 2:43:12 PM UTC+2, Copper Lark wrote: -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')
I found: Socket-Close(); but in web2py how to close mySQL connections? вторник, 15 июля 2014 г., 23:04:20 UTC+4 пользователь Copper Lark написал: How I may resolve this error mySQL? -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] error(10053, 'An established connection was aborted by the software in your host machine')
Versionweb2py™Version 2.9.5-trunk+timestamp.2014.03.29.21.54.41Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last): File C:\web2py-m\gluon\main.py, line 539, in wsgibase BaseAdapter.close_all_instances('rollback') File C:\web2py-m\gluon\dal.py, line 600, in close_all_instances db._adapter.close(action) File C:\web2py-m\gluon\dal.py, line 580, in close getattr(self, action)() File C:\web2py-m\gluon\dal.py, line 1923, in rollback return self.connection.rollback() File C:\web2py-m\gluon\contrib\pymysql\connections.py, line 640, in rollback self.errorhandler(None, exc, value) File C:\web2py-m\gluon\contrib\pymysql\connections.py, line 200, in defaulterrorhandler raise Error(errorclass, errorvalue) Error: (class 'socket.error', error(10053, 'An established connection was aborted by the software in your host machine')) In file: Framework -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')
i use apache type 'exceptions.RuntimeError' Failure to connect, tried 5 times: Traceback (most recent call last): File C:\web2py-m\gluon\dal.py, line 7848, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File C:\web2py-m\gluon\dal.py, line 688, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File C:\web2py-m\gluon\dal.py, line 2731, in __init__ if do_connect: self.reconnect() File C:\web2py-m\gluon\dal.py, line 669, in reconnect self.connection = f() File C:\web2py-m\gluon\dal.py, line 2729, in connector return self.driver.connect(**driver_args) File C:\web2py-m\gluon\contrib\pymysql\__init__.py, line 93, in Connect return Connection(*args, **kwargs) File C:\web2py-m\gluon\contrib\pymysql\connections.py, line 575, in __init__ self._connect() File C:\web2py-m\gluon\contrib\pymysql\connections.py, line 743, in _connect raise OperationalError(2003, Can't connect to MySQL server on %r (%s) % (self.host, e.args[0])) OperationalError: (2003, Can't connect to MySQL server on 'localhost' (10053))Versionweb2py™Version 2.9.5-trunk+timestamp.2014.03.29.21.54.41Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. Traceback (most recent call last): File C:\web2py-m\gluon\restricted.py, line 220, in restricted exec ccode in environment File C:/web2py-m/applications/ipay\compiled\models.db.py, line 28, in module File C:\web2py-m\gluon\dal.py, line 7870, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 5 times: Traceback (most recent call last): File C:\web2py-m\gluon\dal.py, line 7848, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File C:\web2py-m\gluon\dal.py, line 688, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File C:\web2py-m\gluon\dal.py, line 2731, in __init__ if do_connect: self.reconnect() File C:\web2py-m\gluon\dal.py, line 669, in reconnect self.connection = f() File C:\web2py-m\gluon\dal.py, line 2729, in connector return self.driver.connect(**driver_args) File C:\web2py-m\gluon\contrib\pymysql\__init__.py, line 93, in Connect return Connection(*args, **kwargs) File C:\web2py-m\gluon\contrib\pymysql\connections.py, line 575, in __init__ self._connect() File C:\web2py-m\gluon\contrib\pymysql\connections.py, line 743, in _connect raise OperationalError(2003, Can't connect to MySQL server on %r (%s) % (self.host, e.args[0])) OperationalError: (2003, Can't connect to MySQL server on 'localhost' (10053)) In file: C:\web2py-m\applications\ipay\compiled\models.db.pyc 1. code object module at 1AFB2188, file C:/web2py-m/applications/ipay\compiled\models.db.py, line 17 Powered by web2py http://www.web2py.com/™ created by Massimo Di Pierro ©2007-2014 - Admin language -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: error(10053, 'An established connection was aborted by the software in your host machine')
[Mon Jul 14 15:33:33 2014] [warn] pid file C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Jul 14 15:33:37 2014] [notice] Apache/2.2.25 (Win32) mod_wsgi/3.5-BRANCH Python/2.7.6 mod_ssl/2.2.25 OpenSSL/0.9.8y PHP/5.4.20 configured -- resuming normal operations [Mon Jul 14 15:33:37 2014] [notice] Server built: Jul 10 2013 01:52:12 [Mon Jul 14 15:33:37 2014] [notice] Parent: Created child process 2484 ... [Mon Jul 14 14:02:48 2014] [error] [client 91.220.93.136] IOError: failed to write data, referer: http://ipo-polza.ru/progs [Mon Jul 14 14:06:10 2014] [error] [client 91.220.93.136] mod_wsgi (pid=4332): Exception occurred processing WSGI script 'C:/web2py-m/wsgihandler.py'., referer: http://ipo-polza.ru/transs -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] unpickling stack underflow
Traceback (most recent call last): File C:\web2py-m\gluon\restricted.py, line 217, in restricted exec ccode in environment File C:/web2py-m/applications/ipay\compiled\models.db.py, line 69, in module File C:\web2py-m\gluon\dal.py, line 7935, in define_table table = self.lazy_define_table(tablename,*fields,**args) File C:\web2py-m\gluon\dal.py, line 7972, in lazy_define_table polymodel=polymodel) File C:\web2py-m\gluon\dal.py, line 1020, in create_table sql_fields_old = pickle.load(tfile) UnpicklingError: unpickling stack underflow HELP PLEASE! -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] DAL cooperate errors
cooperate not work in many cases grid = SQLFORM.grid(db7p.deals, left=db7p.deals.on(db.cl_deals.deal_id==db7p.deals.id)) # not work! or in table define: db.define_table('cl_deals', Field('deal_id', db.db7p_deals), # not 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 Issues) --- 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...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: DAL cooperate errors
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all']) from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth_db = DAL('sqlite://users.sqlite') auth = Auth(auth_db) # Not work! - DAL not found 'user_' crud, service, plugins = Crud(db), Service(), PluginManager() ## create all tables needed by auth if not custom tables auth.define_tables(username=False, signature=False) ## configure auth policy auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True db7p = DAL('sqlite://storage.sqlite', migrate=False, migrate_enabled=False, auto_import=True, folder=C:/web2py/applications/.../databases, ) DAl object not found any others DB objects in many functions ((( references not worked SQLFORM.grid not worked FORM not worked Here is error in web2py soft - not used other DAL objects среда, 11 декабря 2013 г., 23:54:43 UTC+4 пользователь Copper Lark написал: cooperate not work in many cases grid = SQLFORM.grid(db7p.deals, left=db7p.deals.on(db.cl_deals.deal_id==db7p.deals.id)) # not work! or in table define: db.define_table('cl_deals', Field('deal_id', db.db7p_deals), # not 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 Issues) --- 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...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: how show images from side sites?
воскресенье, 3 ноября 2013 г., 18:30:12 UTC+4 пользователь Anthony написал: {{ = XML('img src=%s' % 'https://some_url/image01.jpg') ) }} The above code is fine, except there is an extra ) at the end. Another option is to use the IMG helper: {{=IMG(_src='https://some_url/image01.jpg')}} https://money.yandex.ru/i/shop/mosenergosbut.gif If you are wondering why the above image in particular doesn't show up when you attempt to display it with an img tag, they are probably using some mechanism to prevent hotlinkinghttp://simple.wikipedia.org/wiki/Hotlinking(e.g., they check the HTTP_REFERER header and return a 302 not found error when external sites attempt to load the image). If you want to display the image (and doing so is not prohibited by copyright), you will have to download the image and serve it yourself. Anthony if I load they site by urllib2.urlopen(url) - how then load IMAGE to web2py DB? -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] how show images from side sites?
I save a image source url in my db and how I may show this image on my page? {{ = XML('img src=%s' % 'https://some_url/image01.jpg') ) }} this not work ( if I try ths url in browser - it showed for example https://money.yandex.ru/i/shop/mosenergosbut.gif -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] unique=True for complex fields?
db.define_table('tab', Field('exchg_id', 'reference exchgs', required=True), Field('xcurr_id', 'reference xcurrs', required=True), Field('key1', compute=lambda r: %s:%s % (r['exchg_id'], r['xcurr_id']), length=55, unique=True, required=True), ) not 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 Issues) --- 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...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.