Anthony thank you very much for your answer.
As Leonel's answer partially worked I will try it first before going with
yours.
Anyway thank you very much.
Kind regards
El jueves, 12 de febrero de 2015, 17:41:00 (UTC+1), Anthony escribió:
>
> For now you'll probably have to write some custom JS to
Thank you very much Leonel.
It worked!!
The only thing is that if I click on a picture it doesn't open as a picture
but as raw data.
Any idea?
Thank you very much.
Kind regards.
El jueves, 12 de febrero de 2015, 17:38:31 (UTC+1), Leonel Câmara escribió:
>
> You could make the links in the loade
One option might be to have the link trigger an ajax request that sends the
ID. That action that receives that request could append the ID to a list
stored in the session (which you can clear after the email has been sent).
Anthony
On Thursday, February 12, 2015 at 10:37:18 PM UTC-5, Alex Glaro
when link is clicked, I'd like the auth_user.id from that row to go into a
dictionary that holds a single id or growing list of email recipients' ids
for this message.
After that, user will compose an internal message and send it to the list
of email recipients captured above
--
Resources:
-
Hey,
The url is wrong so web2py thinks you're calling index (the default
function) with a 'newscb' request.args(0).
It should be
var handler = function() {
ajax("{{=URL('default', 'newscb')}}", [], 'text');
}
Also consider using the LOAD helper for this usage.
--
Resources:
The body of a links item is HTML that will get inserted in the grid for
that row. The function (which doesn't have to be a lambda) is called when
the grid is generated. It sounds like maybe you instead want something to
happen when the link is clicked. Can you explain what exactly you are
tryin
do you need to have a URL redirect in order to have a grid lambda do
something?
can you do anything within the grid lambda itself?
E.g.
potentialEmailRecipientsQuery = ((auth.user_id ==
db.VerifiedConnection.personID) & (db.auth_user.id ==
db.VerifiedConnection.connectedTo))
arglist=[]
grid =
no problem. mssql is to blame for some things, but this is definitely not
one of them ^_^
On Thursday, February 12, 2015 at 10:38:55 PM UTC+1, Jose wrote:
>
> SOLVED.
>
> I changed the "text size" of the connection, the configuration of FreeTDS
> (freetds.conf).
> I tried with large files and it
No commits for the past year.
On Thursday, February 12, 2015 at 4:41:12 PM UTC-5, Richard wrote:
>
> Anyone know if SpiffWorflow is fonded in any way? Is it backed by big
> player?
>
> Richard
>
> On Tue, Mar 12, 2013 at 10:25 AM, dlypka wrote:
>
>> Workflow typically stores its state in very co
A decorator is just a special type of function that takes a callable and
returns another callable. You typically use it via the "@" syntax, but you
don't have to use it that way.
@auth.requires_login()
def myfunc():
return dict()
is equivalent to:
def myfunc():
return dict()
myfunc = a
Anyone know if SpiffWorflow is fonded in any way? Is it backed by big
player?
Richard
On Tue, Mar 12, 2013 at 10:25 AM, dlypka wrote:
> Workflow typically stores its state in very complex sql tables.
> If something goes wrong the tables are easily corrupted and then it is
> very hard to fix. (b
SOLVED.
I changed the "text size" of the connection, the configuration of FreeTDS (
freetds.conf).
I tried with large files and it works great
Thank you very much for the help
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source co
>
> To take advantage of the decorators at a file level, you can also do this
> at the top level of a file:
>
> auth.requires_login()(lambda: None)()
>
> The decorators ultimately call auth.requires, which itself returns a
> decorator. The above passes a dummy function to that decorator and then
Are you able to edit and save despite that error?
I use the binary of v2.9.12 on Windows 7 and it creates an error ticket
each minute while editing, but I'm still able to edit and save normally.
The bug is already solved, probably to be included in the next version:
https://github.com/web2py/web
>
> this model is correctly tied to the underlying structure (and web2py
> "conventions"). Read my previous post on TEXTSIZE setting throughout your
> middlewares.
>
OK, I'm going to try.
Thank You
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.c
Could this be a permission issue? which user owns the files? is that the
same user running web2py?
On Saturday, 7 February 2015 08:59:31 UTC-6, MihaW wrote:
>
>
> I have installed version w2p 2.9.12 with Python 2.7.6 - on 127.0.0.1 with
> FF browser. O/s is W7. Example works! But attempts to edi
Hi,
I've observed an unexpected behavior when I link to the index site of the
default controller using a site parameter: index.html*/SOMEPARAMETER*
Then, the index.html is rendered first showing the correct "SOMEPARAMETER"
but starts to redirect to itself infinitely (You will see that the sessio
My case I just copy default-both.conf (attached in previous post) to
/etc/apache2/sites-enabled/
and restart apache. It work as aspect after done that.
thank you for sharing.. :)
เมื่อ วันพุธที่ 11 กุมภาพันธ์ ค.ศ. 2015 8 นาฬิกา 30 นาที 12 วินาที UTC+7,
tim spear เขียนว่า:
>
> I tried similar
I am storing the session data in a database.
I am using the latest web2py.
I have deleted everything, reinstalled fresh, deleted the database and
rebuilt it and I still get this error.
The error occurs when I reboot the system. I can fix it by restarting
apache2 service once the server has re
For now you'll probably have to write some custom JS to catch link clicks
and load the URL into the component div via Ajax. We could probably add an
Ajax trap option to Expose to handle this automatically. Feel free to
submit a github issue with this feature request.
Anthony
On Thursday, Febru
You could make the links in the loaded component have a cid with the same
id so they will load in the same place. I have never used Expose so this
may not be entirely correct
{{
related_html = DIV(
H2(related_media.breadcrumbs(related_media.basename)),
related_media.parag
mind that there's even another "angle": given that usually a city resides
in the same place (same goes for regions, countries, etc etc etc) you can
carefully cache the "computationally expensive" resultset and update it
once a week (or once modifications are made).
That's what we - dba - call a
Hi guys, I have a problem that I don't really know how to deal with.
I will explain the context:
I have an *index.html* that calls two components (LOAD)
One of the components is a controller with an index function and within
this function I put the following code:
def index():
path = os.path.
It should did you try ?
There is no better then try...
:)
I am not an expert in AD, but there is sometimes new fields or duplicated
fields that store the same information... So, if it not working don't
conclude hasty that it not working...
Richard
Richard
On Tue, Feb 10, 2015 at 6:12 PM, Gary
How did you install it?
-Jim
On Saturday, February 7, 2015 at 8:59:31 AM UTC-6, MihaW wrote:
>
>
> I have installed version w2p 2.9.12 with Python 2.7.6 - on 127.0.0.1 with
> FF browser. O/s is W7. Example works! But attempts to edit any file at all
> result in this error. "(could not get sour
To take advantage of the decorators at a file level, you can also do this
at the top level of a file:
auth.requires_login()(lambda: None)()
The decorators ultimately call auth.requires, which itself returns a
decorator. The above passes a dummy function to that decorator and then
simply calls
I removed wizard from extra filed.
At least there is only one record inserted into organization table (before
that it inserted two), but wizzard still returns 0
On Thursday, February 12, 2015 at 11:28:20 AM UTC+1, mcamel wrote:
>
> Hi,
>
> It seems wizard is returning id=0 instead of the actual
> a webpage holding 200 locations and requiring 800 queries is not a webpage a
> user would need.
That’s actually a very good point !
This page is actually designed for SEO, but even SEO doesn’t go well with
hundreds of links.
I think I should build a navigation architecture that maps the dr
I basically agree you. I use auth decorators with my functions.
This is just an extra security mechanism, set once in one single place.
Then you forget about it. It only has sense in some kind of applications.
It could be used instead of auth decorators only in extremelly simple apps
where you
I think the first one (with more exceptions for register, lost password,
etc) is an acceptable solution.
However, when you start making more exceptions then it just starts being
messy, unreadable, and I would just start decorating my controller
functions (all of them if necessary). That's why i
if your model is a single table with 4 fields, what's the expected
resultset ? a nested dict ? if yes, no queries needed, just python.
BTW: a webpage holding 200 locations and requiring 800 queries is not a
webpage a user would need.
In other words, what's the maximum number of leaves you want
ok... let me rephrase.. where is this stuff on the "live version"
on http://web2py.com/book ?
On Thursday, February 12, 2015 at 9:44:09 AM UTC+1, Tom Campbell wrote:
>
> To the printed book index.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://gith
Hello,
You can use @auth* decorators to force authentication to single functions,
but how you can force authentication to your whole application?.
I use this, just after defining auth:
if not auth.is_logged_in():
# avoid infinite recursion
if request.url != auth.settings.login_url:
Hi,
It seems wizard is returning id=0 instead of the actual organization id.
Try removing the wizard from extra fields to guess more.
Just in case, you can try this other syntax:
auth.settings.register_onvalidation.append(lambda form: add_organization(
form))
Regards.
El jueves, 12 de f
Hello
I have a question regarding adding extra fields to auth_user table
now I saw a couple of posts but none answers my question
I have a table organization. On user registration user adds organization
name in form. this value should be inserted into table organization and id
of the record i
To the printed book index.
--
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
"web
I haven’t timed the queries but there’s way more than 4 queries to be done.
For instance if I build a drill-down to zoom in on my city (Bordeaux), I would
need to build something like this :
Aquitaine (administrative_area_level_1)
Gironde (administrative_area_level_2)
Bordeaux (locality)
Talence
where ?!?!?!
On Thursday, February 12, 2015 at 8:46:48 AM UTC+1, Tom Campbell wrote:
>
> Stuff like this:
>
> Between "Web Services" and "websockets" I'd put web2py_ajax_component
>
> Between "load" and "Lotus Notes" I'd put locals()
>
> Between "Expression" and "extent" I'd put extend (or insert
38 matches
Mail list logo