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
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
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
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.
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=
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
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
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
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
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
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
--
---
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]
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,
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
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
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.
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
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
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
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
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
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
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
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
}
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
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
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
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
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.
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)
-
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
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
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
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
?
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
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):
> "
:)
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 :
>&
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
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?
>
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
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
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
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
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
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
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
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
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:/
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/
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
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
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
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
-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
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
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
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
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
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
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,
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
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
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
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
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
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
.
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
?
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-
.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
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
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
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.
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
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
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
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/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
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
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
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
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
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
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
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
== 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
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
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
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
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
Andrew,
When I respond with flare=flare I get the & issue, solved by XML()
Uncaught SyntaxError: Unexpected token &
My script starts with:
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
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
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
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
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.
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
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
: #!/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,
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
>
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
801 - 900 of 4436 matches
Mail list logo