[web2py] make a fake request from URL(...)

2013-06-25 Thread Richard
Hello, How can I make a fake request in order I can retrieve my table name in request.args(0) like my app does... Thanks Richard -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiv

[web2py] detect end of stream

2013-07-11 Thread Richard
Hello, I would like to know when the browser have finish to receive a file with response.stream(file)... Is any one had implement something about that? First answer here explain a technic : http://stackoverflow.com/questions/1106377/detect-when-browser-receives-file-download Thanks Richard

[web2py] uploadseparate=True get folder name in order to generate thumbnail

2013-07-12 Thread Richard
return thumb def __find_image_dir__(name, path): for root, dirs, files in os.walk(path): if name in files: return root Thanks Richard -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe fr

[web2py] issue with autodelete=True and uploadseparate=True on update

2013-07-12 Thread Richard
autodelete=True should inforce it?! I didn't test this with a field that don't use uploadseparate=True thought, so maybe this issue only exist in this case. Richard -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] do I need a callback ?

2013-07-15 Thread Richard
efore_update.append(Set.delete_thumb()) db.auth_user._before_delete = [Set.delete_thumb()] form = SQLFORM(db.auth_user, request.args(1), ...) if form.process().accepted: response.flash = T('Profile updated') redirect(URL(c='directory',f=

[web2py] current.db = db

2013-07-18 Thread Richard
Hello, Is it safe to do : from gluon import current current.db = db And if so, why is db not already available in current by default? Thanks Richard -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this

[web2py] Improved SMARTHUMB

2013-07-18 Thread Richard
Hello, I just publish an improved version of SMARTHUMB here : http://www.web2pyslices.com/slice/show/1666/improved-smarthumb Has Bruno says, I think it should go in contrib/imageutils.py Thanks Richard -- --- You received this message because you are subscribed to the Google Groups

[web2py][share] ressources

2013-07-24 Thread Richard
Hello, I recently discover these two lib : http://johnny.github.io/jquery-sortable/ (avoid jquery ui just to get drag and drop capability) http://fgnass.github.io/spin.js/ (a spinner lib) :) Richard -- --- You received this message because you are subscribed to the Google Groups "w

[web2py][share] Select2.js

2013-07-30 Thread Richard
Hello, I just found this (select2.js) : http://ivaynberg.github.io/select2/index.html A kind of chosen on steroïd... It include a Tagging utility that let insert new tag on the fly like Tag-it but don't seem to require jQuery UI. Enjoy. Richard -- --- You received this message be

[web2py][book typo] book typo

2013-08-01 Thread Richard
ks/default/chapter/29/09/access-control#Customizing-Auth Thanks Richard -- --- 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...@g

[web2py][LDAP] once authenticated with LDAP I got "No fields to update"

2013-08-01 Thread Richard
hentication success? Does AD try to update auth_user data somehow? Or Does web2py is waiting for update data that don't arrive cause of my configuration of LDAP, so I should tell web2py to not try update anything? Thanks PS.: "ldap" tag could be good Richard -- ---

[web2py] LDAP with username=True can still login with email

2013-08-05 Thread Richard
in ldap_basedn.split(','): if "DC=" in x.upper(): domain.append(x.split('=')[-1]) username = "%s@%s" % (username, '.'.join(domain)) username_bare = username.split("@")[0]

[web2py] contrib IS_NOT_EMAIL()

2013-08-06 Thread Richard
e, None) Enjoy Here the recipe : http://www.web2pyslices.com/slice/show/1686/is-not-email-validator Richard -- --- 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,

[web2py] bizzard issue with postgres web2py select IMPORTANT

2013-08-07 Thread Richard
ble WHERE mytable.id = 1 AND mytable.mybool IS NOT TRUE I get my record. The issue seems to occure only when the "mybool" is NULL other then that (TRUE or FALSE) I got my record... Thanks Richard -- --- You received this message because you are subscribed to the Google Gr

[web2py] PyCharm 3.0 EAP web2py support!!

2013-08-08 Thread Richard
Hello, http://blog.jetbrains.com/pycharm/2013/06/meet-pycharm-3-0-eap/ :) Richard -- --- 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 web2p

[web2py] particular IS_IN_DB need advice

2013-08-13 Thread Richard
stead of the text of the represent. I must need a custom validator... But I think that a more advanced IS_IN_SET could be welcome in this kind of situation... Thanks Richard -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] issue with redirect to login page, the .load propagate in case of component NOT AUTHORIZED

2013-09-18 Thread Richard
e link look like that : http://127.0.0.1:8000/app/default/user*.load* /login?_next=url... This occure in web2py 2.4.7 Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issue

[web2py] how to set a pycharm project with web2py as interpreter

2013-09-19 Thread Richard
el is more reflecting the way web2py users develop considering that web2py evolve rapidly and that you have to move your app from one web2py version to another regularly. Thanks. Richard PS.: IDE as tags in google group could be interresting! -- Resources: - http://web2py.com - http://web2p

[web2py] request.url with scheme

2013-09-25 Thread Richard
r, args=request.args, vars=request.vars, scheme=True) Thanks Richard -- 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][ANN] ago.py integration to web2py of ago lib (human readable timestam) to allow use of T()

2013-10-18 Thread Richard
Like the object!! Here : http://www.web2pyslices.com/slice/show/1746/ago-for-web2py-with-magic-t-human-readable-timestamp Enjoy Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] **{'data-something': '...'} with A() helper in w2p 2.4.7 not working

2013-10-25 Thread Richard
urn_chart', args=request.args(0), vars=dict(file_format='ps', LI(A('dot', _href=URL('directory', 'return_chart', args=request.args(0), vars=dict(file_format='dot', _class='dropdown-menu'), _cl

[web2py] Do welcome still use superfish.js ? If not book is wrong

2013-10-29 Thread Richard
quot;* menu, and some additional JavaScript functions based on jQuery. http://web2py.com/books/default/chapter/29/11/jquery-and-ajax?search=ajax#jQuery-and-Ajax Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

[web2py] add / append to db() set?

2013-10-31 Thread Richard
s_list.append(k) if len(where_clauses_list) == 2: test123 = db(where_clauses[where_clauses_list[0]] & where_clauses[where_clauses_list[1]]) myselect = test123.select(db.auth_user.ALL) But I would like to know it there is a better/simpler way to create a db() set fo

[web2py] -p or --port from command line not seems to work

2013-11-01 Thread Richard
python web2py.py -a 'asdf' -i 127.0.0.1:8001 -S myapp -M auto And it's the same. I use web2py 2.4.7 and I try with 2.4.6 and it's the same. Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] is this possible db.table(id).field.represent

2013-11-08 Thread Richard
} Thanks Richard -- 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-u

[web2py] web2py vs asp

2013-11-15 Thread Richard
Hello, Someone send my this : http://vschart.com/compare/web2py/vs/asp-net-mvc-framework It seems to miss info for web2py at the end though :) Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] multiple forms components issues

2016-06-21 Thread Richard
that why I didn't pasted here... Thanks Richard -- 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

[web2py] Re: multiple forms components issues

2016-06-21 Thread Richard
As you which!! # Controllers Form 1 def phone_numbers_form(): """ phone_numbers_form() allow to create/update/display phone(s) number(s). Args (vars): readonlyform: If set to "True" the function only display phones numbers in row, no create form and buttons

[web2py] orderby part of a string...

2016-07-08 Thread Richard
Can we do that : http://stackoverflow.com/questions/8989098/postgres-order-data-by-part-of-string ? Maybe like this ? orderby='substring(tablename.fieldname, ...)' ?? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Trojan exploit Redis

2016-08-11 Thread Richard
Hello, Found this, thought it should be spread : https://linux.slashdot.org/story/16/08/10/237230/linux-trojan-mines-for-cryptocurrency-using-misconfigured-redis-servers -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] web2py version and application version management

2016-08-18 Thread Richard
nd of deployment server, so app and framework at least are attached together, I just have to point over the rigth/last git tag my deployment fabric function... But how are you doing it ? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Securing admin doc still accurate?

2016-10-13 Thread Richard
Hello, Is this section still accurate? : http://web2py.com/books/default/chapter/29/13/deployment-recipes#Securing-sessions-and-admin Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] convert request.vars to set default value in a custom .factory() form

2016-11-01 Thread Richard
ought _filter_fields() would do it, but it only filter field that are member of a table, it doesn't act over the value of the field... I thought of using requires/validator, but I am not sure how to use them. Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

[web2py] Re: strip characters str.translate()

2017-01-26 Thread Richard
Python 3 would look like that : import string translator = str.maketrans('', '', string.punctuation) 'test(),./'.translate(translator) VS Python 2.7 would look like this : import string strip_chars = string.punctuation 'test(),./'.translate(None, strip

[web2py] strip characters str.translate()

2017-01-27 Thread Richard
? I would like to implement into IS_NOT_IN_DB() a "bare" unique constraint that would strip all specials charaters (and space) before make search in the records values to be unique. Would it works better with regexp?? Thanks Richard -- Resources: - http://web2py.com - ht

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Richard
Le lundi 2 décembre 2013 15:46:41 UTC-5, Richard a écrit : > > Hello, > > I set a label True/False flag for checkbox widget like so : > > class CheckboxesWidget(OptionsWidget): > > @classmethod > def widget(cls, field, value, **attributes): > "

Re: [web2py] RFC Proposal checkbox widget

2013-12-04 Thread Richard
:) Le mercredi 4 décembre 2013 13:21:43 UTC-5, Massimo Di Pierro a écrit : > > Too late. I patched trunk already. ;-) > > On Wednesday, 4 December 2013 11:13:28 UTC-6, Richard wrote: >> >> >> >> Le lundi 2 décembre 2013 15:46:41 UTC-5, Richard a écrit : >&

[web2py] hyperlink address when page print with browser seems coming form boostrap

2013-12-04 Thread Richard
design of the page and make the printed page ununderstandable. Thanks Richard -- 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

Re: [web2py] urlify - no char mapping

2013-12-09 Thread Richard
Hello, What's happen with this? Is unidecode been added to contrib? Thanks Richard Le lundi 19 août 2013 14:35:12 UTC-4, Niphlod a écrit : > > it would be the first time we ship a zip archive of a module... > a) do we want to update a zip from a module with 118 files? >

[web2py] byte compile web2py itself

2013-12-19 Thread Richard
Hello, It possible to speed thing with byte compile app with admin... But could it be possible to byte compile web2py itself for more improvement? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py][share] gluttony for graph python project dependencies

2014-01-07 Thread Richard
Hello, I was looking to find a way to compile the dependencies of my project and I falled on this : https://bitbucket.org/victorlin/gluttony It might be an interesting addon to web2py? Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] rname and xml?

2014-01-27 Thread Richard
Hello, What's going to happen with rname in xml? Richard -- 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 yo

[web2py] can custom.form be used from the controller and pass to the view??

2014-02-04 Thread Richard
this?? Thanks Richard -- 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 "w

[web2py] Acces to row object with widget (widget=lambda field, value, row: ...)

2014-02-06 Thread Richard
ue=value, _type='hidden', _name=field.name, _id=self._hidden_el_id, requires=field.requires), _id=self._el_id) And passing the vars into the URL... Thanks Richard -- Resources: - http://web2py.com - htt

[web2py] cache issue

2014-02-17 Thread Richard
missing key value pairs for id and it representation. I think the issue is that even if I call the factory after form submit the dict get recreated at each request by the factory call in models or there is something else going on that I don't understand (maybe issue with cache in web2py

[web2py] Re: Column width

2014-03-09 Thread Richard
Hello, I have restarted developing a full-screen app. We want to use the full 1900 pixels of a HD screen. My idea is to increase the 95px column width of a large bootstrap column. @Annet , I do use the default left-middle-right layout. How can I do this? Thank you, Richard On Friday, August

[web2py] Re: Column width

2014-03-15 Thread Richard
hi, fluid works better, thank you. Richard On Monday, March 10, 2014 1:34:14 AM UTC+1, Kiran Subbaraman wrote: > Instead of tweaking the column widths, did you try ? > > On Monday, March 10, 2014 12:17:25 AM UTC+5:30, Richard wrote: >> >> Hello, >> >> I have r

[web2py] calling download function page by ajax

2014-03-18 Thread Richard
xml;' % request.now.strftime('%Y-%m-%d_%H-%M-%S-%f') response.write(final.getvalue(), escape=False) raise HTTP(200, str(final.getvalue()), **response.headers) Thanks for any pointer! Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:/

[web2py] Re: Published my collection of plugins

2014-04-01 Thread Richard
uy a licence > to get the full source code. I will look for other solutions. > > Kenji > > On 9月8日, 午前2:59, Richard Vézina wrote: > > Hello Kenji, > > > > You will maybe find the code of the actual datepicker here : > http://www.dynarch.com/projects/calendar/

[web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2014-04-01 Thread Richard
Hello, I want to get rid of python entirely. As you probably know, I don't see great future in Python 3000 and since we can't fighting the Javascript dominance in webapp development world, I resign... I want to port web2py to javascript by rewriting all piece of it except the DAL because it too

[web2py] Prevent response.flash when there is a session.flash in case of multiples components

2015-11-13 Thread Richard
was just a test, but as said above session.flash seems always empty once there in the code execution. Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

Re: [web2py] LDAP Auth

2015-11-16 Thread Richard
may not be acceptable... What do you think? Richard Le lundi 16 novembre 2015 17:42:05 UTC-5, Richard a écrit : > > Could it be possible to not provide Certificate path? > > I use Redmine and the only thing required is specifying that we use LDAPS > by checking a box and speci

[web2py] RBAC and group of role management

2015-11-23 Thread Richard
C for instance? In web2py the membersphip don't allow to represent that a role is a member of another role... So how to avoid a repetitive assignment by using group assignment? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

[web2py] web2py and page load time showing to end user

2015-12-03 Thread Richard
-load-a-page-on-every-page Thanks Richard -- 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

[web2py] Instruct session.connect to keep using the same table name despite the appname change

2015-12-06 Thread Richard
Hello, Is there a way to tell session.connect that it should keep using a give web2py_session_APPNAME table, because when I am testing before deployment app name change... I need to keep the same name... Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] launch web2py from python interpreter

2015-12-08 Thread Richard
Hello, Is there a way to launch web2py from within python interpreter? Like pytest : https://pytest.org/latest/usage.html#calling-pytest-from-python-code Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] simple update of an cache.ram python dict

2015-12-21 Thread Richard
failed, but when we want to access page which user id_represent[some_id], they all failed for a couples of minutes... Like if the cached dict not get update immediately... Thanks for any pointer... Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://g

[web2py] 2.13.4 and routes.py

2016-01-11 Thread Richard
this : routers = dict( # base router BASE=dict( default_application='default_app_name', ), ) It seems to work properly but I am not sure if it still allowed to set default app like this.. Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] 2.13.4 ESCAPE '\\' present in SQL output of db(...)._select(...)

2016-01-15 Thread Richard
Hello, I notice that the web2py query below : db(db.auth_user.first_name.lower().like('%r'))._select(db.auth_user.ALL) Return that : "SELECT * FROM auth_user WHERE (LOWER(auth_user.first_name) LIKE '%r' *ESCAPE '\\'*);" Never see this before, ma

[web2py] Re: Duplicate entries in Auth_user DB table upon sign in

2016-02-04 Thread Richard
Hello Michael, Which version of web2py are you using and which version of python interpreter?? Thanks Richard Le mardi 2 février 2016 10:46:02 UTC-5, Michael Messmer a écrit : > > Yes it does. Submitted: https://github.com/web2py/web2py/issues/1178 > > On Wednesday, January 27,

[web2py][Off topic] Python 3.5 technology award

2016-02-11 Thread Richard
http://www.infoworld.com/article/3023050/open-source-tools/infoworlds-2016-technology-of-the-year-award-winners.html#slide18 Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py][OT] ZeroDB An open-source end-to-end encrypted database

2016-03-07 Thread Richard
Hello, Anyone eard about ZeroDB? https://www.zerodb.io/ I found this really recently and interresting in it. Curious to know how can web2py support it since it NoSQL and encrypted... Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] issue when import from one web2py module into another

2016-03-20 Thread Richard
Hello, Is there any thing to consider when trying to import from one module to another? I try import a specific fonction like so : from other_module import function cannot import name "function" Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] setup-web2py-nginx-uwsgi-ubuntu.sh

2016-03-29 Thread Richard
Hello, I was happy when I try setup-web2py-nginx-uwsgi-ubuntu.sh with Ubuntu 16.04 beta 2... It worked flawlessly, thanks... Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] testing Recaptcha failed on bizzard error

2016-04-06 Thread Richard
E: Test is passing locally... Richard -- 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 Group

[web2py] Re: Double left join syntax

2018-02-28 Thread Richard
Here some progress : https://github.com/web2py/pydal/issues/521 Le mercredi 8 avril 2015 08:40:26 UTC-4, Lieven Van Acker a écrit : > > > Hello all, > > > I'm trying to perform a double left join, but can't seem to figure out the > right syntax. Maybe someone could shed some light... > > > This i

[web2py] Annoncement - web2py_lazy_options_widget.py

2018-03-20 Thread Richard
. py3 portage help is welcome Thanks Richard -- 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

[web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard
? Thanks Richard -- 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-

[web2py] bulk update...

2018-04-23 Thread Richard
.id).update(...) ??? Thanks Richard -- 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 &q

[web2py] [web2py-users] pygraphviz

2018-11-22 Thread Richard
can barely analysing it with the live instance of the 3djs created graph... I search in the 3djs examples didn't find anything already doing something similar to what pygraphviz was doing... To me there is an usability regression here... Any plan to improve that? Thanks Richard -- Reso

[web2py] share AlaSQL

2019-01-16 Thread Richard
Hi All, Fall on this new JS database in browser, SQL/NoSQL : https://github.com/agershun/alasql Seems promissing for simple application, or maybe local storage to speed app. Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] deployment error

2014-04-13 Thread Richard
Gooed evening, When I call an app on my domain the index view is returned. But having an SSL connection In Chrome I do get the following error (In IE 11 I do not get an error) Any clus what may cause this? I run from the latest source version of web2py. Thank you in advance TICKET ID 213.10.

[web2py] possible issue (read bug) with web2py controllers parser

2014-04-14 Thread Richard
pen. If only the commented triple double quote is there and no docstring in the following functions the issue is not happening. Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: deployment error

2014-04-15 Thread Richard
a zip and extract in the application directory. Creating a new app from scratch thru the admin interface gives an app that works. I have also put permisions to 777, so permissions is also excluded as possible cause. Any clu? thanks Richard On Sunday, April 13, 2014 10:12:46 PM UTC+2

[web2py] Re: deployment error

2014-04-15 Thread Richard
directory > ownership / permissions. By compare, I mean compare *exactly*, file for > file, dir for dir... > > Regards > > On Tuesday, April 15, 2014 11:01:08 AM UTC+2, Richard wrote: >> >> The issue was an admin app from an older version. >> >> The si

[web2py] Re: deployment error

2014-04-15 Thread Richard
SOLVED :) The print statements in the controller appear to be deadly and causing the error [an error occurred while processing this directive]. Thanks for the support ! On Tuesday, April 15, 2014 1:56:09 PM UTC+2, Richard wrote: > It has to do with the controller or starting the v

[web2py] experimental rname feature documentation compendium

2014-04-15 Thread Richard
/web2py/pull/296 Hope it helps other... Richard -- 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

[web2py] too many values to unpack

2014-04-16 Thread Richard
I have a working app and added a list of form in the response variables from the controller tot the view. Now the app comes with the error "too many values to unpack". I can imagine that there is a limit tot the response size. Is there and how can I increase this. Background info: I want to ad

[web2py] 'Table' object has no attribute 'attr'

2014-04-16 Thread Richard
I have used a form in a view and want to update a record after submit: View: {{=SQLFORM(db.activity, record = a.id, deletable = True, hidden=dict(attr='chgact'))}} controller: if (request.vars['attr'] == 'chgact') and (request.vars['delete_this_record'] != 'on'): db(db.ac

[web2py] SQLFORM.grid() simple search vs complex search

2014-04-23 Thread Richard
Hello, Is there a way to tell SQLFORM.grid to only allow simple search? I mean, not have the query constructor to appear, just the search box where we can search in all the fields? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] .grid() my own search widget possible? How?

2014-04-24 Thread Richard
Hello, Is it possible to create my own search widget? How does I get the grid to use it? Thanks Richard -- 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] expert_search=True

2014-04-24 Thread Richard
Query('#%s').val('');" %skeywords_id ), _method="GET", _action=url), search_menu) So the search query is easier to write for an "expert"... But I didn't find where the search form get parsed... We need to strip line break of th

[web2py] extract file from blob/bytea to store it on file system

2014-05-04 Thread Richard
ew_field_upload/HERE_IN_SUB_RANDOM_FOLDER_NAMES Notting get write to disk... Is .store() method not suppose to doing just that? I will make a slice about that if I can get it to work properly. I was despointed this snippet wasn't there already. :( Thanks Richard -- Resources: - http

[web2py] db query with join and left join final SQL not respect the order of the joins declaration

2014-05-06 Thread Richard
join was required to be before the join... Is there a reason why web2py change the order of join and left join ? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] .with_alias() and SQLFORM.grid

2014-05-13 Thread Richard
== db.mygridtable.myjointable_id) fields=[..., db.myjointable.field_represent.with_alias('new_field_name')] ...) Thanks Richard -- 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] how string_agg for groupby?

2014-05-14 Thread Richard
Hello, Is there a way to do string_agg() with in web2py for a query that have groupby clause? Richard -- 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] SQL string as a query (about Anthony presentation)

2014-05-14 Thread Richard
Hello Anthony, You mention briefly that this is possible : db("mytable.myfield == 'something'").select(db.mytable.ALL) Is this possible : db(db.mytable.myfield == 'something').select("*") Or db(db.mytable.myfield == 'something').select(&quo

[web2py] URL() and HTTPS

2014-05-21 Thread Richard
ect to HTTP and never to HTTPS... That may reduce performance, I had read long time ago that reducing redirection is "rule number 1" for improving loading speed... Maybe it could be a good idea to add a flag that let generate URL() with HTTPS instead of only HTTP?? Richard -- Resou

[web2py] json to D3 graph

2014-06-11 Thread Richard
Dear fellow Web2py user, I am trying to get a json variable into a D3 graph. This was successfull with a simple list of dictionaries within the python/JS vairable. But nof I want to get the famous flare data structure into my view. In the controller I have: def view_dendo(): import json

[web2py] Re: json to D3 graph

2014-06-11 Thread Richard
Andrew, When I respond with flare=flare I get the & issue, solved by XML() Uncaught SyntaxError: Unexpected token & My script starts with:

[web2py] Re: web2py & IronPython status

2014-06-16 Thread Richard
Hi, Why would you have IronPython support for Web2py? I am planning a web2py app within a .NET applications landscape and will create .NET classes for communication with the other applications. These classes will are accessible by the web2py server. I'll call it best of both worlds. Ri

[web2py] Re: multiple functions in one view

2014-06-26 Thread Richard
Hi, I try to do exactly the same and have the following in my app: controller: def index(): response.js = '$.web2py.component("%s", target="graph1");' % URL('default', 'graph1.load') index.html: graph1.load contains a graph in pure JS What am I overlooking? KInd regar

[web2py] response.js does not load div

2014-06-30 Thread Richard
Dear web2py colleague, I am struggling with the response.js in order to load a component. Loading a component through {{=LOAD}} works fine. We want to load that component after accepting and processing a form. So i put a named div in the view and let response.js do the loading by the form

[web2py] Re: response.js does not load div

2014-06-30 Thread Richard
Anthony, Thank you for the clu: an ajax call is needed, I tried without, just pushing javascript and HTML to the view. Regards, Richard On Monday, June 30, 2014 4:43:06 PM UTC+2, Anthony wrote: > > Note, response.js only works with Ajax requests, so it will have no effect > in

[web2py] Re: response.js does not load div

2014-07-03 Thread Richard
7;).accepted: response.js= '$web2py.component("%s", target="navigation_div");' % URL('default', 'navigation.load') In other words I want to load a component bij accepting a form in another component. These components are part of index.html.

[web2py] Can not import copy_reg

2014-07-22 Thread Richard
py", line 92, in custom_importer return base_importer(pname, globals, locals, fromlist, level) ImportError: No module named copy_reg I can import copy_reg from the python prompt and adding the import copy reg from Dal.py (suggested in a thread by Massimo) has no effect. I use Python

[web2py] Re: Can not import copy_reg

2014-07-22 Thread Richard
Yes, I can import copy_reg from the Python prompt on the remote server. On Tuesday, July 22, 2014 1:21:36 PM UTC+2, Massimo Di Pierro wrote: > > Copy reg is a python module. Can you import it from the normal python > shell? > > On Tuesday, 22 July 2014 06:05:06 UTC-5, Richard

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
: #!/home4/mamplcom/python/Python-2.7.8/python On Tuesday, July 22, 2014 1:21:36 PM UTC+2, Massimo Di Pierro wrote: > > Copy reg is a python module. Can you import it from the normal python > shell? > > On Tuesday, 22 July 2014 06:05:06 UTC-5, Richard wrote: >> >> Hi,

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
Massimo, importing copy_reg from the console works fine :) Richard On Wednesday, July 23, 2014 11:20:06 AM UTC+2, Massimo Di Pierro wrote: > > I understand but can you open a web2py shell. from the console type: > > > $ cd web2py > $ python web2py.py -S welcome -P >

[web2py] Re: Can not import copy_reg

2014-07-23 Thread Richard
14 11:40:14 AM UTC+2, Richard wrote: >> >> Massimo, >> >> importing copy_reg from the console works fine :) >> >> Richard >> >> On Wednesday, July 23, 2014 11:20:06 AM UTC+2, Massimo Di Pierro wrote: >>> >>> I understand but ca

<    4   5   6   7   8   9   10   11   12   13   >