I am creating a web2py application and I am using Auth for login.
Some of my controllers have functions that should be publicly accessible,
but may sometimes attempt to access data that requires authorisation, in
which case I raise HTTP 401. If the user is already logged in, it raises a
403.
I
an do it without changing the source
>
> db = DAL(...,driver_args={'unix_sock':'/tmp/.s.PGSQL.5432'})
>
> How common is this scenario?
>
> On Thursday, September 13, 2012 3:55:22 AM UTC-5, Liam wrote:
>>
>> Hi all,
>>
>> Due to a strange Postgres
nyone has a better solution, I'd like to hear about it.
By the way, there's a typo (diver -> driver) in the comment :)
Cheers,
Liam
--
s
not session.auth.user
Perhaps it should be?
not session.auth
On another much less important note, I thought the correct Pythonic way to
check for None is:
session.auth is None
;)
Cheers,
Liam
--
Thanks
On Thursday, August 30, 2012 5:41:34 AM UTC+2, Massimo Di Pierro wrote:
>
> After 5 months. It is done. This is the most waited and the most
> feature-packed release.
>
> I am sure we'll find some corners that need to be ironed but it is
> considerably better than 1.99.7. It adds lot of n
st give the reviews a code, create an account with
> username like "reviewer_for_bob" and password is the code. when they enter
> the code, match it with the username and use auth.login_bare() to log them
> in, and then you can use the auth mechanisms throughout your s
suggested in the comment).
>
> Anthony
>
> On Friday, July 13, 2012 5:20:19 AM UTC-4, Liam wrote:
>>
>> Unless this is expected behaviour...
>>
>> In the example below, I expected one DIV, one SPAN and maybe one P when
>> using the .elements() function. H
Unless this is expected behaviour...
In the example below, I expected one DIV, one SPAN and maybe one P when
using the .elements() function. However, the MARKMIN input always gets
included as a raw string, even when passing 'span' as an argument.
>>> test = DIV(MARKMIN('**a**'), SPAN('b'))
>>> t
Oh no! I had a great experience using Fluxglex. All the best in future.
On Wednesday, June 6, 2012 3:03:48 PM UTC+2, drelyn86 wrote:
>
> Fluxflex will be shut down and will be no longer available on June 30,
>> 2012.
>> =
>> From 2010, we have provided Fluxflex for about two years.
>> But bec
rator @auth.requires_login()
is now insufficient. However, I believe authentication mechanism would be
highly similar if not identical.
On Wednesday, May 30, 2012 5:55:06 PM UTC+2, Liam wrote:
>
> Hi LightDot,
>
> Thanks for the quick reply.
>
> The user is able to perform analyses on data that
er the code and will then be able to browse the necessary data. If
the publication is accepted, then the user is able to publish all the data,
which is now accessible to the public. I guess at this point it doesn't
matter if the reviewer code can still be used.
Cheers,
Liam
On Wednesday,
Dear all,
I'm looking for a way to allow non-users of my application to login given a
password (generated by a user) so they can view some of the user's data.
Does anyone know if web2py readily supports this? Or perhaps someone has an
idea on how to implement it.
Regards,
Liam
urllib2.Request(url, body, headers)
y = urllib2.urlopen(r)
else:
url = '%s?%s'%(url, '&'.join('%s=%s'%(key, val) for key, val inrequest
.vars.iteritems() if key != 'url'))
y = urllib2.urlopen(url)
msg = y.read()
y.cl
nome/fetchers/arabidopsis_thaliana.php"
Example variables: "?_dc=1331908909967&action=syndicate" (this should work
if typed directly into the web browser url).
Hopefully that was a little clearer than mud. Does anybody have any clues
how to get an AnnoJ instance up and r
an>')} );}
> );'''
>
> Anthony
>
>
>
>
>
>
>
> On Wednesday, January 11, 2012 12:02:29 PM UTC-5, Liam wrote:
>
> > web2py 1.99.4
>
> > plugin controller:
> > def overview():
> > if len(request.args) >
web2py 1.99.4
plugin controller:
def overview():
if len(request.args) > 0 and request.args[0] == 'refresh':
import time
time.sleep(4)
body = H2('Component header')
refresh = DIV(A('Refresh', _class='button replacewloading',
_href=URL(c='plugin_test', f='overview.load',
Sorry, that was a typo.
Even something as simple as response.js = 'alert("Here");' or response.js =
'alert("Here");' doesn't seem to work, although it does if
included in the view.
7;t working earlier, perhaps
I made a syntax error somewhere.
The refresh button should get replaced while the page reloads so the user
can't click it again, and they know that something is still happening in
the background.
Sorry for the confusion and thanks for the help from all o
ing.
4. I've also tried setting response.js in the component controller, but I'm
having trouble debugging this because nothing turns up in FireBug.
Does someone have any ideas? It doesn't need to deal directly with
javascript, but it does need to be a component plugin.
Cheers,
Liam
First up, I'm new to web2py and am enjoying using it very much. Thanks
Massimo!
I'm using SQLFORM.grid and would like to update the fields of a table
via AJAX without the user having to click edit then submit in a new
page.
eg. I have a table, one of the columns is a boolean value (this gets
displ
20 matches
Mail list logo