i found the root cause, it related with auth.signature
imho, the limitation for using before and after callback, it's not work
when using auth.signature.
e.g. 1
in models/db.py
*not work*
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
auth = Auth(db)
crud, service, plugins
hello, i tested with chrome and default browser.
My menus code do not work
for example my code
response.menu += [(A(I(_class='icon-search'),' Logins',
_href=URL('listalertuser')), False, None, [])]
adds another entry in the meny but if i press i get redirected to
/myapp/default/Logins ins
It is *possible* for email names to be case-sensitive, but this is not the
practice of at least 99% of users because of the reasons stated on
Stackoverflow.
Therefore it does make sense that the default for web2py should be what the
great majority would wish.
I appreciate that changing this d
You need pass a list of dict
links = [{'header':'', 'body': lambda row:
A('',_title='Procesar',_class='icon-refresh',_href=URL(c='planilla',
{'header':'', 'body': lambda row:
A('',_title='Mail',_class='icon-envelope',_href='index/pedircontadores/%
{'header':'', 'body': lambda r
actually, you can also define a table that links apply to. this way you
won't get the error, when applying functionality to a wrong table...
links=dict(purchase_order=[
lambda row:(_get_order_details(row)),
lambda ro
There are two questions in your email.
The first is about the security of data in session. By default web2py
sessions are stored in files. The data in those files is only accessible to
the application, not to the user. The user is linked to the session file
via a cookie. If somebody were to ste
Just completed a core system at nammuhats.com. Can't praise enough how
easy, (and rock solid) is to build systems with web2py :)
Once again, thanks Massimo and all contributors for the best framework!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com
Good presentation. But I misread Bruno's post originally and thought that
Jessica mentioned web2py, and watched the whole presentation and didn't see
any web2py specific comments. (because it was actually Bruno's comment) I
came back here to ask for the comment timestamp in the video, and rer
:-)
On Monday, 16 September 2013 09:30:19 UTC-5, Adi wrote:
>
> Just completed a core system at nammuhats.com. Can't praise enough how
> easy, (and rock solid) is to build systems with web2py :)
>
> Once again, thanks Massimo and all contributors for the best framework!
>
>
--
Resources:
- http
Hi All,
I heard about web2py following this question:
http://stackoverflow.com/questions/5899483/generate-rest-based-service-from-database-schema
My goal is to create a RESTful web service from a DB, such that when the DB
is modified, no code changes would be needed.
Questions:
1. When creating
from:
http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Database-validators
Validators with dependencies
Usually validators are set once for all in models.
Occasionally, you need to validate a field and the validator depends on the
value of another field. This can be done
Hey all,
I'm trying to use LOAD to load a webpage in the main division
{{block center}}
{{include}}
{{end}}
After I opened my website (index.html), I clicked the link rendered by my
layout file {{=A('Query',_href='query',cid="leftbar")}} (#leftbar is the
Hi Adi and Javier,
I can't get the syntax to work. Can you please baby me though the phrasing
and just copy the first button twice in this working example so that two
identical buttons appear?
def view_suggestions():
db.Idea.id.represent = lambda id, r: A('Post shared services idea',
_hr
I'm doing exactly that and not running into troubles.
Could it be something about your SSL certificate? If it's not a well
trusted certificate sometimes you need to install it on the client side.
Does it match the domain name you are calling?
I test my server with the following python code and I
I wanted to wish the "Marin" the best of luck in his brand new company.
I found him by putting a bounty out for some work to fix some "more
challenging" aspects of the InterestID too. He did a fantastic job. So
well, we continued to use him. Eventually, we actually brought him to Oulu
Finland wh
Dear community,
I'm trying to user ldap to authenticate against an MS AD as described in
the book but I keep getting "Invalid login". I can connect and verify my
login through the normal pyhton-console using simple_bind_s and whoami_s
just fine - not using web2py however :-( Apparently there's
OOPS , not as i wanted.
It works to create records but to edit records it does not
Editing records using admin, there is not request.vars.emp and my list
field is empty.
Any ideas?
2013/9/11 António Ramos
> I have the company id in my request.vars.emp variable
>
> So its easy
>
> IS_IN_DB(db
Hi Massimo,
Since the upgrade will most likely fix the issue I'm having (which can't be
fixed for the legacy widget): can you give me pointers so I can implement
it locally and if all is well, send the code to you?
Thanks...
On Sat, Aug 31, 2013 at 9:14 AM, molhokwai wrote:
> Done.
> Thanks.
Would you post your define ldap_auth method, you may miss some parameters,
for instance you need to pass "db", but this is not stated in the book I
think, I found this info on mailing list.
Richard
On Mon, Sep 16, 2013 at 1:06 PM, D. wrote:
> Dear community,
>
> I'm trying to user ldap to auth
I've been working in some modifications on the experimental imap dal
adapter after an issue with field types
https://groups.google.com/d/msg/web2py-developers/Jux_FikBQM4/r_3sDQABmGkJ
The next dal.py patch will have some relevant changes to the IMAP dal
interface so I thought it would be better
I can't reproduce it, I've just tested it and it works as expected.
On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote:
>
> hello, i tested with chrome and default browser.
>
> My menus code do not work
>
> for example my code
>
> response.menu += [(A(I(_class='icon-search'),' Logins',
looks like it's getting closer, but receive this error: 'str' object is not callable
On Monday, September 16, 2013 8:46:48 AM UTC-7, Adi wrote:
>
> if you replace the grid part, does this work:
>
>
> grid = SQLFORM.grid(db.Idea,editable=is_owner,
> deletable=is_owner,
Did you tested in android?
2013/9/16 Paolo Valleri
> I can't reproduce it, I've just tested it and it works as expected.
>
>
> On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote:
>>
>> hello, i tested with chrome and default browser.
>>
>> My menus code do not work
>>
>> for example m
Hi,
I'm trying to set up a RESTful API in web2py and have run into some
troubles with authentication. The server running the API is setup with
WSGI, forced HTTPS and the API controller actions have
the @auth.requires_login() decorators.
The problem is that I'm not able to make requests to the
Test in android 4.1 and work ..
2013/9/16 António Ramos
> Did you tested in android?
>
>
>
> 2013/9/16 Paolo Valleri
>
>> I can't reproduce it, I've just tested it and it works as expected.
>>
>>
>> On Monday, September 16, 2013 1:36:11 PM UTC+2, Ramos wrote:
>>>
>>> hello, i tested with chro
An HTML table listing works great, done as shown here:
http://code.google.com/p/pyfpdf/wiki/Web2Py
Generating the PDF version also works, and the font face and size are
controllable for headers and footers.
How can the font attributes be set or overridden for the body of the
listing? pdf.se
Also please note that in most AD environment you must pass a baseDN and
login password for any logins to work. This can be a service account with
simple read only permissions to the domain you are authenticating against.
On Monday, September 16, 2013 1:44:27 PM UTC-4, Richard wrote:
>
> Would yo
The way I have approached this is to enable web2py's manage_groups. With
this enables and configured any AD user who logs in will have thier AD
groups added to auth_groups. with corresponding permissions. From there you
can use the built in auth decorators to control access based on group
membe
The importance of definition order is in the book
--
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
I am having this strange issue in web2py where Jquery applications such as
the datepicker does not work. The Jquery file is present but nothing works.
I have tried replacing the Jquery file, commenting it out and adding
another from the Jquery CDN, but nothing works.
Any suggestions?
--
Resou
I added a slice with some rough notes in using jqGrid including edit mode.
http://www.web2pyslices.com/slice/show/1714/jqgrid-including-updating-data
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.c
+1
El lunes, 16 de septiembre de 2013 09:30:19 UTC-5, Adi escribió:
>
> Just completed a core system at nammuhats.com. Can't praise enough how
> easy, (and rock solid) is to build systems with web2py :)
>
> Once again, thanks Massimo and all contributors for the best framework!
>
>
--
Resources
On Tuesday, 17 September 2013 07:25:47 UTC+10, Horace Cunningham wrote:
>
> I am having this strange issue in web2py where Jquery applications such as
> the datepicker does not work. The Jquery file is present but nothing works.
> I have tried replacing the Jquery file, commenting it out and ad
I persevered with jqGrid and added a new slice on web2py slices, which
describes how to get a nice looking jqGrid working for editing records.
http://www.web2pyslices.com/slice/show/1714/jqgrid-including-updating-data
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Here are my auth-settings
auth = Auth(db, secure=True)
auth.define_tables(username=True)
auth.settings.create_user_groups=False
auth.settings.actions_disabled =
['register','change_password','request_reset_password','retrieve_username','profile']
auth.settings.create_user_groups = False
auth.setti
OK, I figured out the first part:
settings.domain_name used to be "ldap://domain.com"; -> changing this to
just "domain.com" makes web2py query the ldap-server.
There seems to be a problem in my case with get_user_groups_from_ldap:
The search for username in line 634 return the users full-name in
36 matches
Mail list logo