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
-
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)
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
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 me in the right direction as we need to get the
site live.
tia
ed
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
: Unexpected error:class
'applications.gw.modules.CustomException.CustomException'
The two classes match, yet I cannot catch the exception.
I hope somebody can point out the error of my ways...
Ed Greenberg
, (m,s):
I just can't catch the durned thing.
Ed
(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
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
belongs() Thanks.
On Feb 11, 7:09 am, Marin Pranjić marin.pran...@gmail.com wrote:
http://web2py.com/books/default/chapter/29/6#belongs
Marin
On Sat, Feb 11, 2012 at 12:34 PM, Ed Greenberg greenberg...@gmail.comwrote:
I feel like I should know this. I've searched, but Google
. Is
there any way to have a default controller function?
Thanks,
Ed
?
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 vineet.deod...@gmail.com wrote:
I can access that link.
You may try to hit the link again.
--- Vineet
On Nov
what had previously been found at http://www.box.com/shared/dtm0dhgze9
Did it work?
Many thanks
Ed Greenberg
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
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 abasta...@gmail.com 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
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?
.
Thanks,
Ed
I found my log messages. When using consoleHandler with apache/WSDL,
apparently, the logging messages go to the server error log, not the
console.
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:
.
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 massimo.dipie...@gmail.com
wrote:
gluon/tools.py contains this code:
if self.settings.login != None
My user had success (and closed his issue) after removing all Firefox
add-ons. Thank you.
On Apr 27, 12:06 pm, pbreit pbreitenb...@gmail.com 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.
anybody tell me how to enable this user/browser? Or where else to
look?
Thanks,
Ed G
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'
Any ideas? Traceback below.
Ed
suggestions about how to log the user out and keep
control of what he sees next?
Ed
further suggestions, I'm very interested.
Ed
On Mar 1, 2:26 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
this should work, no?
def index():
auth.logout()
response.flash=bye bye user
On Mar 1, 1:12 pm, Ed Greenberg greenberg...@gmail.com wrote:
At the end of my controller
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
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
to accomplish this.
I want to say I appreciate all this help. Thanks, Massimo and all.
Ed Greenbeg
These look like exactly what I'm looking for. I'll try 'em out.
Thanks.
sql : 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 massimo.dipie...@gmail.com
wrote:
def index
to take a few bytes to than everybody for their assistance in
this forum.
Ed
On Feb 15, 9:47 am, villas villa...@gmail.com wrote:
Not this:
query = select id from properties where customer = %d %
Try something like this instead:
query = (db.properties.customer==customer_id)
On Feb
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 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,
Ed
, Ed Greenberg greenberg...@gmail.com wrote:
When SQLFORM constructs an HTML form with a dropdown of foreign keys,
I need to limit the records to only those that match a certain where
clause.
This is a master-detail problem. For instance, when displaying a
detail form, we only want some
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,
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.
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 massimo.dipie...@gmail.com
wrote:
My todo list is getting long today. Can
to the user?
Thanks,
Ed G
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
to be installed?
Thanks
Ed
for upgrades but still the problem persists.
I am out of solution.
-
On Dec 10, 6:00 pm, hamdy.a.farag hamdy.a.fa...@inbox.com wrote:
Hi ed
I assume you upgraded your web2py to the latest svn version
Now you can do :
def
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 upgrades in
(auth.settings.login_url)
It was what i needed. Thanks a lot.
Cheers,
ed
On Dec 9, 4:26 pm, hamdy.a.farag hamdy.a.fa...@inbox.com wrote:
--Quote from web2py manual -
auth.settings.login_next = URL(r=request, f='index')
By default, the login page, after successful login, redirects the
visitor
/space.gif width=20 height=200 //
td
div class=flash/divbrbr/tr
trtd colspan=10 class=footer
pCopyright copy; 2009 - Powered by a href=http://
www.web2py.comweb2py/a/p/td
/tr/table/div/body/html
Thank you again.
Ed
On Dec 4, 2:24 pm, mdipierro mdipie
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 page?
Thanks.
Ed
--
You
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 mdipie
the source code and tested various solutions but failed
to see what's wrong with it. Did I miss something?
Thanks a lot in advance.
Ed
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com
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
script
jQuery(document).ready(function(){
jQuery('#no_table_usceduc_updt_row').hide();
jQuery
in advance for your help.
ed
On Oct 16, 4:56 pm, ed edbi...@rocketmail.com wrote:
Hi Boris,
Thank you, will try using no_table_. I am still grappling withjQuery. I
have a 2 select options as condition to implement. Thanks
again.
Ed
On Oct 15, 7:12 pm, Boris Manojlovic boris.manojlo...@gmail.com
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 mdipie...@cs.depaul.edu 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
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 boris.manojlo...@gmail.com
wrote:
no_table_fieldname
so no_table is what you need
On Thu, Oct 15, 2009
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
pm, mdipierro mdipie...@cs.depaul.edu wrote:
On Oct 9, 9:40 pm, ed edbi...@rocketmail.com wrote:
Hi Massimo,
Your suggestion is very neat and beyond my limited web2py knowledge:
Mind that you do not need
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. Thank you in
advance Massimo
info is simply in
{{=auth.user.first_name}} {{=auth.user.last_name}}
On Oct 9, 1:34 am, ed edbi...@rocketmail.com wrote:
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
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
=redirect(URL(r=request,f='loggedin')),
name=row)
...
View:
{{extend 'layout2.html'}}
p
ph3Hi {{=name}}/h3/p
p
.
Even if i used this code in my Controller: name = Ed , the View
will display the same only Hi None. I've been trying to figure out
but still a newbie. Thanks for your help
/p
p
.
On Oct 8, 4:04 pm, ed edbi...@rocketmail.com 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):
row=db
Solved it. Was not able to refresh the changes I made.
On Oct 8, 4:29 pm, ed edbi...@rocketmail.com 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
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 the result of the following code
Hi Denes,
Thank you very much.
Ed
On Oct 2, 4:26 am, DenesL denes1...@yahoo.ca wrote:
Hi ed,
you can do:
if form.accepts(...):
if request.vars.toyrrequest.vars.fromyr:
form.errors.toyr='Valid Years: %s - 2000'%request.vars.fromyr
else:
# code to handle valid form input here
) == (int(a), None) if a passes or (b, error)==
(a,error message) otherwise.
On Sep 29, 3:51 am, ed edbi...@rocketmail.com wrote:
Hi,
Can i use error_message() in the Controller to validate field data? I
think i saw somewhere this process. Thanks
...@cs.depaul.edu wrote:
sorry. I do not understand. Can you provide an example?
On Sep 30, 10:44 pm, ed edbi...@rocketmail.com wrote:
Sorry Massimo for mixing up my question. What I mean is, when there is
an error in validating a variable and response.flash is used it
returns an empty form
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
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
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
: 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 advance.
ed
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'])
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
from default.py (line 55), so it might be
unrelated.
Richard
On Aug 20, 4:25 pm, ed edbi...@rocketmail.com wrote:
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
Thanks Jonathan, i called auth.define_tables() after defining the
table and that solved the problem.
On Aug 20, 3:27 pm, ed edbi...@rocketmail.com wrote:
This is the error ticket:
Error traceback
1.Traceback (most recent call last):
2. File gluon/restricted.py, line 178, in restricted
3
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
, 1:00 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Can you tell us more? What is in the database after registration? Try
appamdin.
On Aug 17, 11:01 pm, ed edbi...@rocketmail.com wrote:
In sqlite I was able to register and login. However, in mysql I was
able to register only
auth_user.registration_key is blank.
On Aug 18, 3:00 pm, mdipierro mdipie...@cs.depaul.edu 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 edbi...@rocketmail.com wrote:
I registered 2 users
anything else?
Has anybody else tried Ath with mysql?
Massimo
On Aug 18, 2:13 am, ed edbi...@rocketmail.com wrote:
auth_user.registration_key is blank.
On Aug 18, 3:00 pm, mdipierro mdipie...@cs.depaul.edu wrote:
All I meant is visithttp:///yourapp/appadmin
and check what
mdipie...@cs.depaul.edu wrote:
Yes, after auth.define_tables()
db.auth_user.password.requires=[]
On Aug 18, 2:30 am, ed edbi...@rocketmail.com 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 possible
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 edbi...@rocketmail.com wrote:
Hi,
I recently downloaded web2py 1.66 and tried Welcome app out of the box
using sqlite, it worked. I changed to mysql
? Thanks in advance.
Cheers,
Ed
On Mar 25, 9:46 pm, Mike michael.mcgreg...@gmail.com wrote:
Hi Ed...
I'm no expert but here's what I'm doing for the URL,
url: '../controller/function1'
Here's a more complete example...I know there a several places where
more web2py-esqe helpers or style would
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 michael.mcgreg...@gmail.com wrote:
Hi Ed...
I'm no expert but here's
in
this technology. Thanks in advance.
Ed
On 24 Mar, 01:36, Mike michael.mcgreg...@gmail.com 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 and look at the
response being returned to the grid
:'lname', width:160},
Maybe the url address format is wrong or whatever. Can someone help me
on this.
Thank you very much.
Ed
--~--~-~--~~~---~--~~
You received this message because you
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)),\
you in advance.
ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED
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 repost on Thursday.
Massimo
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 web2py version is 1.44
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,
corrupted maybe?
I tried JobSite
90 matches
Mail list logo