Is there a good tutorial or example for an editable treeview interacting
with Web2py
For example, I'd like to create an application where the user primarily
interacts with a tree view (e.g. jstree) and can do the following:
- Add a node to the tree
- Delete a node from the tree
- Chang
If I use the builtin wiki feature and turn on record versioning, I get
error when I delete a wiki page which has a tag. Is there a way around this
issue?
Recipe to duplicate the error in web2py 2.9.5:
1) Create a new application. Call it 'test_wiki'.
2) Make the following modifications:
add th
I am able to cause an error trying to delete a wiki page for the built-in
wiki if I turn versioning on.
This example causes an error in web2py 2.9.5:
Starting with a new application, name it "wiki_test" and do the following:
# in db.py, add
auth.wiki(resolve=False)
auth.enable_record_versionin
oes not have a module named connections yet it runs on
his Ubuntu box without issue.
I had a similar issue with "rq", but I simply removed the relevant queue.py
and everything was fine? The problem here is that there is noe
"connections" module?
Could somebody please point m
I was happy to find that I could do 'from gluon import current' in my
modules, and get access to the various treasures that lie within ;)
Recently I went to try and run epydoc on my modules directory, so that I
could have some doc while writing code, and discovered that epydoc gets an
error imp
ption, (m,s):
I just can't catch the durned thing.
Ed
lasses match, yet I cannot catch the exception.
I hope somebody can point out the error of my ways...
Ed Greenberg
class, I use them as self.settings.foo (or whatever)
Is there a good way to make more of the environment available to my
module, or am I doing the right thing?
Thanks,
Ed
"belongs()" Thanks.
On Feb 11, 7:09 am, Marin Pranjić wrote:
> http://web2py.com/books/default/chapter/29/6#belongs
>
> Marin
>
> On Sat, Feb 11, 2012 at 12:34 PM, Ed Greenberg wrote:
>
>
>
>
>
>
>
> > I feel like I should know this. I'
I feel like I should know this. I've searched, but Google doesn't
really allow for the word "in" as it's too short and common.
I'd like to do "select column in ("a","b")" in the dal. Any idea how?
Thanks,
Ed
ns. Is
there any way to have a default controller function?
Thanks,
Ed
raw sql?
Thanks,
Ed
Tried again. The link to www.box.com is definitely returning 404. If
you see content there, related to web2py, could you help me retrieve
it?
Thanks,
Ed
On Nov 20, 11:04 pm, Vineet wrote:
> I can access that link.
> You may try to hit the link again.
>
> --- Vineet
>
> On N
what had previously been found at http://www.box.com/shared/dtm0dhgze9
Did it work?
Many thanks
Ed Greenberg
Thank you both, Massimo and Anthony. This is exactly the kind of
pointer I was looking for.
Ed
On Oct 8, 3:37 pm, Anthony wrote:
> I think he wants to check to make sure the cleaned number isn't already in
> the database, so if defining a custom validator for the cleaning, woul
ATABASE(...) to make sure that I don't
get duplicates.
How can I get the validator to run the values through cleanUpNumber()
before looking in the database?
Ed
I've tried and tried, but can't find a google search term that answers
this.
I have a FORM(), not a SQLFORM(), with a SELECT and a bunch of
options in it, and I need to set the _selected attribute on one of
them. When I construct the SELECT, I don't know which one needs to be
selected until late
Looking at the code to gluon.dal.Rows.export_to_csv(), it does not
seem possible to suppress the header on the first line. Is there a
way to do this?
.
It's working now.
So if this happens to anybody else, look at your db.py and see if
mail.settings.login is defined twice.
Ed
On May 11, 9:23 am, Massimo Di Pierro
wrote:
> gluon/tools.py contains this code:
>
> if self.settings
When trying to send registration or lost password email, web2py
flashes that it cannot send email (so registration fails) and logs
[Wed May 11 10:07:31 2011] [error] 2011-05-11 10:07:31,049 - web2py -
WARNING - Mail.send failure:login() takes exactly 3 arguments (2
given)
My app's db.py says:
mai
I found my log messages. When using consoleHandler with apache/WSDL,
apparently, the logging messages go to the server error log, not the
console.
t that in a separate post.
Thanks,
Ed
My user had success (and closed his issue) after removing all Firefox
add-ons. Thank you.
On Apr 27, 12:06 pm, pbreit wrote:
> Is this the standard login code or has it been customized in any way?
It's the standard login code. Other than a few syslog calls, my entire
gluon directory is absolutely the way it came from web2py.
reset within my
code.
Can anybody tell me how to enable this user/browser? Or where else to
look?
Thanks,
Ed G
the large frame loads the
source code, the CSS highlights the function, but the window is left
at the bottom, not at the function. Then I have to go find the
function.
It's a trivial thing, but the few other epydoc pages I have don't
behave this way.
Anybody seen this?
Ed G
Following the book, I do this in db.py, after auth has been
instantiated.
from gluon.tools import Recaptcha
auth.settings.captcha =
Recaptcha(request,'6LczqcISA...cAoH','6L...L2')
and I get a ticket:
AttributeError: 'Recaptcha' object has no attribute 'options
o you have any suggestions about how to log the user out and keep
control of what he sees next?
Ed
f you have further suggestions, I'm very interested.
Ed
On Mar 1, 2:26 pm, Massimo Di Pierro
wrote:
> this should work, no?
>
> def index():
> auth.logout()
> response.flash="bye bye user"
>
> On Mar 1, 1:12 pm, Ed Greenberg wrote:
>
> > At the
At the end of my controller function, I'd like to log the user out and
send him back to the login screen, hopefully with a response.flash on
the screen.
I've tried several things, none of which work.
I tried sending him to URL(c='default',f='user',args=('logout')) which
got close. One was summari
When I click password and username recovery in my app, the app flashes
"Mail Sent" but it isn't. Reviewing the mail server logs I find...
Feb 27 03:45:10 admin01 sendmail[13140]: STARTTLS=server,
relay=localhost [127.0.0.1], version=TLSv1/SSLv3, verify=NO,
cipher=DHE-RSA-AES256-SHA, bits=256/256
Can one have more than one view share a controller?
In cases where more than one operation shares a common amount of HTML,
this would be useful.
In my 'room' controller, I did this:
def list():
rooms =
db((db.rooms.customer==session.customer_id)&(db.rooms.property==db.properties.id)).select(db.rooms.ALL,
db.properties.ALL, orderby=db.properties.short_desc)
return dict(rooms=rooms)
which I thought was way cool.
In my 'room/list.htm
These look like exactly what I'm looking for. I'll try 'em out.
Thanks.
se to accomplish this.
I want to say I appreciate all this help. Thanks, Massimo and all.
Ed Greenbeg
lected.
I want to take a few bytes to than everybody for their assistance in
this forum.
Ed
On Feb 15, 9:47 am, villas wrote:
> Not this:
> query = "select id from properties where customer = %d" %
>
> Try something like this instead:
> query = (db.properties.cust
: Why is the same sql
failing in web2py that is succeeding in the mysql program. Perhaps I'm
only seeing a fragment of what web2py submitted to mysql? How can I
see the whole thing?
Many thanks.
Ed Greenberg
On Feb 14, 4:19 pm, Massimo Di Pierro
wrote:
> def index():
> query = .
Way cool, and many thanks.
On Feb 14, 4:19 pm, Massimo Di Pierro
wrote:
> def index():
> query =
> db.table.field.requires=IS_IN_DB(db(query),)
> form=SQLFORM(...)
> if form.accepts(...)
> ...
> return dict(form=form)
>
> On Fe
I'd like to store some session variables on login. (Look the userid up
in another table and get some convenient stuff out of there. ) Is
there any way to tag onto the Auth login method AFTER login is
successful and before it redirects to whatever is specified in the
_next argument?
Thanks
visible).
A crud won't work reliably -- it's too generic. Do I have to create my
own form and populate my dropdown, or can I have SQLFORM do the work
in some fashion?
Thanks
Ed Greenberg
I'd like to redirect http to https so that users who don't specify
https are forced to use it, especially for login/password
transactions. Also it would be nice if the admin pages, which are
blocked in http, would redirect, rather than fail.
There were some postings about htaccess in the group, bu
, I could handle it in my select.
There's probably a web2py best practice for this, as well.
Can somebody please explain.
Thanks,
Ed Greenberg
If I call db.tablename.insert(...) it expects individual column-value
pairs. I already have these in a dict (which has been pre-screened
for valid columns and types).
Is there a way to call insert with this dict, or to properly explode
the values into something I can pass to insert?
Thanks.
ll know what to send to the user?
Thanks,
Ed G
from, so why does my original desktop
version of web2py have it? Once I know how I was supposed to get it,
I'll determine if it was my error, or file a cogent bug report as to
why it was not created.
Thanks,
Ed
On Jan 26, 9:01 am, Massimo Di Pierro
wrote:
> My todo list is getting long
I have a new centos installation. I followed the script at
http://web2pyslices.com/main/slices/take_slice/98. When I use the new
application wizard, I get the same traceback that others have
posted:
Traceback (most recent call last):
File "/opt/web-apps/web2py/gluon/restricted.py", line 188, in
installed?
Thanks
Ed
;click to check for upgrades" but still the problem persists.
I am out of solution.
-
On Dec 10, 6:00 pm, "hamdy.a.farag" wrote:
> Hi ed
>
> I assume you upgraded your web2py to the latest svn v
Hi hamdy,
> I assume you upgraded your web2py to the latest svn version
> Now you can do :
>
> def login():
> auth.settings.login_catpcha = Recaptcha
> (request,public_key,private_key)
> form = auth.login()
Yes, i upgraded to the latest version 1.72.3 by clicking "click to
check for upgrad
'Get a new challenge'
button in Recaptcha box.
Email Address:
td>/td>
Password:
Copyright © 2009 - Powered by web2py
Thank you again.
Ed
On Dec 4, 2:24 pm, mdipierro wrote:
> I am puzzled. Does it show or does it no
f not auth.is_logged_in():
redirect (auth.settings.login_url)
It was what i needed. Thanks a lot.
Cheers,
ed
On Dec 9, 4:26 pm, "hamdy.a.farag" wrote:
> --Quote from web2py manual -
>
> auth.settings.login_next = URL(r=request, f='index')
>
> By defau
Hi,
I've been trying to find a solution of @auth.settings.requires_login
which displays "None" when ever a module that requires login is
clicked. In the URL box i saw "login?_next= module path..." .
Is there an auth.settings.login?_next=URL() to redirect to login
Hi Massimo,
It doesn't work in the sense that Recaptcha was not displayed even if
i used the latest code. Thanks again.
Ed
On Dec 4, 2:17 pm, ed wrote:
> Hi Massimo,
> I now understand that it's a special case. I copied your code and
> restarted th
Hi Massimo,
I now understand that it's a special case. I copied your code and
restarted the server, but still " auth.settings.login_captcha "
doesn't work.
Ed
On Dec 4, 1:19 pm, mdipierro wrote:
> Now I understand better. It does not work because the recaptcha has to
Hi Massimo,
The code does not display the recaptcha. Inserted code that displayed
recaptcha but still failed to validate recaptcha words. I am baffled
why the code works perfectly with the Registration and it doesn't with
Login. Thanks again.
Ed
On Dec 3, 12:45 pm, mdipierro wrote:
>
key,private_key)))
form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick="window.location='%s';"%URL
(r=request,f='index')))
return dict(form=form)
--- Views --
user.html
{{if request.args(0)=='reg_col':}}
Coll
be nice to
post an errata on this 'cuz this is misleading users. However, if
there is any mistake i made in copying the code which i verified more
than 10 times, kindly point out. Thanks again for your help. ed
> >
> > jQuery(document).ready(function(){
> > jQ
er.last_name}}
{{=usc_ed}}
Fill all form fields.
{{=form}}
jQuery(document).ready(function(){
jQuery('#no_table_usceduc_updt_row').hide();
jQuery('#no_table_educ_updt').change(function(){
if(jQuery('#no_table_educ_updt').attr('checked'))
Hi Boris,
Thank you, will try using "no_table_". I am still grappling with
jQuery. I have a 2 select options as condition to implement. Thanks
again.
Ed
On Oct 15, 7:12 pm, Boris Manojlovic
wrote:
> no_table_fieldname
>
> so "no_table" is what you need
>
>
Hi Massimo,
Congratulations!
Glad to hear that, will buy it. I like the hard copy than the
digital.
Cheers!
Ed
On Oct 16, 11:03 am, mdipierro wrote:
> Today I bought a few copy of the book (and for the record they charge
> me the same price as you for the book). I noticed something s
Hi,
In the example on conditional fields given in Web2py manual the
convention is, every INPUT field have a name equal to
"tablename_fieldname" and it contained in a called
"tablename_fieldname_row". However, SQLFORM.factory doesn't have a
table, it is all fields. Can someone tell me, what name is
o about this?
Thanks again.
On Oct 10, 10:58 pm, mdipierro wrote:
> On Oct 9, 9:40 pm, ed wrote:
>
> > Hi Massimo,
> > Your suggestion is very neat and beyond my limited web2py knowledge:
> > ---
Hi Yarko,
Of course i did some thinking, %$# ;-) This is a redirect not a
a return dict() issue wherein variables are not passed as per Massimo
and what i also observed. No, your solution did not help! So, review
your solution and T H I N K ;-)
On Oct 10, 11:07 am, Yarko Tymciurak wro
ge2():
> rows=db(db.auth_user.email==request.vars.em).select()
> if not rows: redirect(URL(r=request,f='page1'))
> return dict(name=rows.first().first_name)
>
> {{extend 'layout.html'}}Hello {{=name}}
>
> Mind that you do not need anything like
Hi Massimo,
Okay, redirect returns page but without any variable. Any hint how to
render a page name "loggedin" that says; "Hi Ed, welcome!" after a
succesful login using the code i created?. Sorry, i'm a newbie with
very limited web2py knowledge and stucked on this. Tha
The display went well because i filled a session with a constant "Ed"
and not a result of a db().select(). So, the constant variable was
displayed without a hitch. When i used db().select() the display went
like:
[{'first_name': 'Ed'}]
The above display is th
Solved it. Was not able to refresh the changes I made.
On Oct 8, 4:29 pm, ed wrote:
> Correction on Controller code:
> if form.accepts(request.vars, session):
> em = request.vars.emailad
> row=db(db.auth_user.email==em).select (db.auth_user.first_name)
> return dict(red
'}}
Hi {{=name}}
.
On Oct 8, 4:04 pm, ed wrote:
> Hi,
> I've been trying to return a variable from a controller to a view
> using dict() but wasn't able display it. I have the following code:
> Controller:
> if form.accepts(request.vars, session):
>
n dict(red=redirect(URL(r=request,f='loggedin')),
name=row)
...
View:
{{extend 'layout2.html'}}
Hi {{=name}}
.
Even if i used this code in my Controller: name = "Ed" , the View
will display the same only "Hi None". I've been trying
Hi Denes,
Thank you very much.
Ed
On Oct 2, 4:26 am, DenesL wrote:
> Hi ed,
>
> you can do:
>
> if form.accepts(...):
> if request.vars.toyr form.errors.toyr='Valid Years: %s - 2000'%request.vars.fromyr
> else:
> # code to handle vali
'toyr'
variable like in Example 2.
Thanks again Massimo.
On 1 Okt, 11:48, mdipierro wrote:
> sorry. I do not understand. Can you provide an example?
>
> On Sep 30, 10:44 pm, ed wrote:
>
> > Sorry Massimo for mixing up my question. What I mean is, when there is
> >
gt; where (b, error) == (int(a), None) if a passes or (b, error)==
> (a,"error message") otherwise.
>
> On Sep 29, 3:51 am, ed wrote:
>
> > Hi,
> > Can i use error_message() in the Controller to validate field data? I
> > think i saw somewhere this process.
Hi,
Can i use error_message() in the Controller to validate field data? I
think i saw somewhere this process. Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send e
I've googled and been trying to figure out how to render two fields in
one row in SQLFORM factory? Is this possible? All examples i
encountered in rendering sql form are all single field in each row.
Thanks
--~--~-~--~~~---~--~~
You received this message because you
Hi,
When I used SQLFORM.factory the field I defined is longer when
displayed. Is this the default? How can I display the actual defined
length? Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" gro
ont-family: Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
color: #FF;
}
#menu a:hover, #menu .current_page_item a {
background: #566316;
color: #FF;
}
This is how the code is used in t2:
{{=t2.menu(response.menu)}}
Thanks in ad
Hi,
It tried modifying the default.py auth.register() form with the
following code:
def user():
if request.args(0)=='register':
response.flash=T('Register')
form = SQLFORM(db.auth_user, fields='first_name',
'last_name','password','email',
'birthdate'])
Thanks Jonathan, i called auth.define_tables() after defining the
table and that solved the problem.
On Aug 20, 3:27 pm, ed wrote:
> This is the error ticket:
>
> Error traceback
> 1.Traceback (most recent call last):
> 2. File "gluon/restricted.py", line 178, in
ost with this. Is there a stable web2py version with
auth_user? Thanks
On Aug 20, 2:37 pm, Richard wrote:
> the error is thrown from default.py (line 55), so it might be
> unrelated.
> Richard
>
> On Aug 20, 4:25 pm, ed wrote:
>
> > I didn't change the gluon dire
I didn't change the gluon directory and inserted the code below in
db.py and was able to run the app. I inserted 2 fields and tried to
run it again but encountered the error ticket below.
from gluon.tools import *
auth=Auth(globals(),db) # authentication/
authorization
auth.s
Hi,
I added fields in mysql table auth_user and would like to show the
fields in Edit Profile. Is there a source code where I can modify the
function def user() and all the functionalities it exposes like login,
change password, profile, etc.. If there is what is the folder name?
Thanks
ed
mdipierro wrote:
> Yes, after auth.define_tables()
>
> db.auth_user.password.requires=[]
>
> On Aug 18, 2:30 am, ed wrote:
>
> > How can I override password encryption. I want to check if the content
> > of password is the same as what I inputted. Is this possi
else?
> Has anybody else tried Ath with mysql?
>
> Massimo
>
> On Aug 18, 2:13 am, ed wrote:
>
> > auth_user.registration_key is blank.
>
> > On Aug 18, 3:00 pm, mdipierro wrote:
>
> > > All I meant is visithttp:///yourapp/appadmin
> > >
auth_user.registration_key is blank.
On Aug 18, 3:00 pm, mdipierro wrote:
> All I meant is visithttp:///yourapp/appadmin
> and check what is in the registration_key field of those records.
>
> On Aug 18, 1:56 am, ed wrote:
>
> > I registered 2 users and both were in
Sorry.
On Aug 18, 1:00 pm, mdipierro wrote:
> Can you tell us more? What is in the database after registration? Try
> appamdin.
>
> On Aug 17, 11:01 pm, ed wrote:
>
> > In sqlite I was able to register and login. However, in mysql I was
> > able to register only and was
In sqlite I was able to register and login. However, in mysql I was
able to register only and was not able to login.
On Aug 18, 11:49 am, ed wrote:
> Hi,
> I recently downloaded web2py 1.66 and tried Welcome app out of the box
> using sqlite, it worked. I changed to mysql and "Inv
Thank you in advance.
Cheers,
ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2p
layout.html'}}
Image: {{=image.title}}
{{if len(comments):}}
Comments
{{for comment in comments:}}
{{=comment.author}} says {{=comment.body}}
{{pass}}
{{else:}}
No comments posted yet
{{pass}}
Post a comment
{{=form}}
Thank you very much in advance for your help.
Ed
[10,20,30],
sortname:'empno',
viewrecords:false,
sortorder:'asc',
caption:'Employees Personal File'
}).navGrid('#pager2', {edit:false, add:false, del:false});
});
-
I've seen some examples
Hi Mike,
I would like to thank you for the example source code. The first
web2py & jqGrid integration source code. This a great help for those
who are interested in this JQuery plugin.
Regards,
Ed
On Mar 25, 9:46 pm, Mike wrote:
> Hi Ed...
>
> I'm no expert but here's wha
on this for everyone interested
in
this technology. Thanks in advance.
Ed
On 24 Mar, 01:36, Mike wrote:
> Hey Ed,
>
> We're using jqGrid with XML data. Something thoughts (if you haven't
> tried them already):
>
> 1.) Try your grid with the FireBug plugin for FireFox an
Hi,
I've been trying to execute a jquery jqGrid url to return JSON data
but failed. Only a blank table with exact headings is displayed. I
tried changing the url several times but no data is displayed. The
following is part of the code.
-
Hi,
I wanted to create a horizontal "search" prompt using the code below.
I tried using TD tag after TR on all the fields but unfortunately the
display was still vertical. Can somebody help me, please? Thanks
form = FORM(TABLE(TR("", INPUT(_name="submit", _type="submit",
_value="Search")),\
Very neat and a good start. But some websites require authenticated
respondents,
database should be optional.
On Dec 13, 6:30 am, mdipierro wrote:
> GAE produces strange errors once in a while. I have seen it too. They
> are not web2py errors they do not show up in the logs.
>
> Massimo
>
> On
Massimo,
Solved the problem, corrupted "plugin_t2". Thanks
ed
On Nov 19, 3:16 pm, ed <[EMAIL PROTECTED]> wrote:
> Massimo,
> It seems the other app Puppy I downloaded had the same problem.
> Errors like blank fields are not displayed. Can this be a T2 problem,
>
Massimo,
It seems the other app Puppy I downloaded had the same problem.
Errors like blank fields are not displayed. Can this be a T2 problem,
corrupted maybe?
I tried JobSite and errors are displayed. Thanks
ed
On Nov 19, 2:25 pm, ed <[EMAIL PROTECTED]> wrote:
> Massimo,
> My web2p
Massimo,
My web2py version is 1.44. Is there any bug reported the same as what
i encountered?
ed
On Nov 19, 1:09 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> It works for me. Perhaps this is due to a bug that was introuced in
> 1.49 and was fixed today in trunk.
> I will rep
return dict(Employee=form)
-------
Checked the FORM code but failed to see potential problems. Please
help. Thank you in advance.
ed
--~--~-~--~~~---~--~~
You received this
Massimo,
Just downloaded the book. I am glad it is very affordable than the $50
book.
Thank you very much.
ed
On Nov 19, 10:37 am, cesmiga <[EMAIL PROTECTED]> wrote:
> Massimo,
>
> I just ordered the book also. Thank you for making this much more
> affordable. Are you going
Vihang,
You are a great guy! Very unselfish.
Cheers!
ed
On Nov 16, 5:02 pm, vihang <[EMAIL PROTECTED]> wrote:
> Thank you everyone. I am sure the domain will be put to good use by
> the community, which was always the intention. Looking forward to
> collaborating further...
>
1 - 100 of 103 matches
Mail list logo