Hi,
give a bit more information.
Are you importing in models, modules or controllers?
Are you importing in the way
import numpy
import scipy
or
from numpy import X, Y , X
from scipy import X, Y, Z
or
from numpy import *
from scipy import *
?
--
hello one and all,
i am using numpy and scipy pretty heavily within one of my web2py
applications. it takes forever and sometimes the site timeouts or crashes
waiting for the import of the numpy or scipy library calls. a crash may be
the http error 500. but when i start python through the co
Attempt #4:
You are right, the client is no good.
Firebug didn't catch the plugin traffic, so I took a peak at it with
Charles and noticed that it made a request with Range as bytes=0-.
So, basically, it requested the entire movie.
But then, the server was not that great either, because it pro
I developed a solution for this.
I posted it here:
https://groups.google.com/forum/?fromgroups=#!topic/web2py/YVYQHRJmcos
Happy New Year!
On Monday, December 31, 2012 4:38:40 PM UTC-6, Mark Li wrote:
>
> I am currently trying to authenticate users on an Android app to my Web2py
> application. I
Calling all DAL gurus. I have a table like this:
db.define_table('list_value',
Field('list_table','reference list_table'),
Field('list_field','reference list_field'),
Field('record_value'),
Field('row_id',required=True))
And sample data like this:
{list_table: 'places',list_field:'
Thank you very much for your answer in detail, especially the hint for the
bug. I found more bugs too with the firefox webconsole. But because this is
work in progress, I'm able to live with that.
A happy new year!
Sverre
kl. 19:24:37 UTC+1 mandag 31. desember 2012 skrev Paolo Caruccio følg
Thank you, I just started working with Web2py and I haven't looked at it in
a month. So, I appreciate your help!
Regards,
On Monday, December 31, 2012 7:11:30 PM UTC-6, Roberto Perdomo wrote:
> The problem is that Lanier_report don't have request.vars when is
> redirected.
>
> Try putting somet
The problem is that Lanier_report don't have request.vars when is
redirected.
Try putting something like:
redirect(URL('Labor_report', args=[form.vars.startDt, form.cars.endDT]))
El 31/12/2012 20:21, "Paul Rykiel" escribió:
>
> On Monday, December 31, 2012 6:29:33 PM UTC-6, Paul Rykiel wrote:
>
On Monday, December 31, 2012 6:29:33 PM UTC-6, Paul Rykiel wrote:
>
> hello,
>
> I have two form vars
>
> 1) startDt (defined as _class="date"
> 2) endDt (defined as _class="date"
>
> if form.accepts(request,session)
>redirect (URL('Labor_report'))
>
> def Labor_report():
>
So, we agree then that the following is true:
strDT = 2012-12-1
endDT = 2012-12-30
request.args(0) (value is 2012-12-1)
request.args(1) (value is 2012-12-30)
although I have NONE is both
any ideas?
On Monday, December 31, 2012 6:35:38 PM UTC-6, Derek wrote:
> Your labor_report should ta
Your labor_report should take those two variables then. Unless of course,
you store them in a session.
On Monday, December 31, 2012 5:29:33 PM UTC-7, Paul Rykiel wrote:
>
> hello,
>
> I have two form vars
>
> 1) startDt (defined as _class="date"
> 2) endDt (defined as _class="date"
>
> if
hello,
I have two form vars
1) startDt (defined as _class="date"
2) endDt (defined as _class="date"
if form.accepts(request,session)
redirect (URL('Labor_report'))
def Labor_report():
strDT = request.vars(0)
endDT = request.vars(1)
My issue is strDT and endDT are both
The solution to Jeff's problem is not the fix.
But I believe the problem can be fixed by changing dal.py line 7028 from:
if patterns==DEFAULT:
to
if patterns=='auto':
On Monday, December 31, 2012 11:35:02 AM UTC-5, Massimo Di Pierro wrote:
>
> Can you send me a patch?
>
> On Monday, 31 Decem
I am currently trying to authenticate users on an Android app to my Web2py
application. I am not comfortable implementing this on my own without some
guidance/advice, as I'm worried about the security of the login information
becoming jeopardized.
I am following the guideline for authenticatio
You are right, the client is certifiably stupid.
Firebug didn't catch the plugin traffic, so I took a peak at it with
Charles and this is the request it made:
GET
/Localflix/default/Stream?Content=16&Token=a7%2FndR3C%29%3AH%2B%21%29x%5EDHP%28Wb%2C8%23kdkJ%27G%2CcSQ%2BL%2A%7B%3D%3Aei%2Fi3QdrO%
I have a couple questions. How much memory space is available for file
uploading for each group. Can you "pin" a message so it stays at the top. A
pinned message could be used as a central place for files available to
users as opposed to inside a message. Would users be able to add a message
or
Looks like the OpenIDAuth uses the reserved keyword "user" for the name of
a field.
On Monday, December 31, 2012 7:00:14 AM UTC-7, mweissen wrote:
>
> Hi,
> I want to try OpenID. I have found the following chapter in the book (rev.
> 4.9):
>
> -
> OpenID
>
> We ha
Which web2py version?
On Monday, 31 December 2012 13:02:57 UTC-6, Andrew W wrote:
>
> I have this in my controller function
>
> return auth.wiki(render='markmin', menugroups =
> ['wiki-editor','wiki-author'])
>
> but [Wiki] still appears in the menu when not logged in.
>
>
>
>
--
Can you please email it to me as an attachment?
On Monday, 31 December 2012 12:20:17 UTC-6, Jonathan Lundell wrote:
>
> On 31 Dec 2012, at 9:36 AM, Massimo Di Pierro
> >
> wrote:
>
> This file:
>
> https://dl.dropbox.com/u/18065445/Tmp/diff2.log
>
> contains the lines added or edited in the boo
I'll re-enable the router and keep a closer eye on things when restarting
uWSGI.
The process hopping sounds right. I run uWSGI with six workers so there are
six processes balancing load. The next time it happens I'll restart with a
single worker and see if the inconsistency on page load is stil
Use the 'request.user_agent()' to determine which version of content to
send. That will get you the scraper (aka robot) reading what you want.
As far as people with javascript disabled, I'd suggest you ignore those
users, it amounts to less than 2% anyway.
On Sunday, December 30, 2012 10:19:29
I have this in my controller function
return auth.wiki(render='markmin', menugroups =
['wiki-editor','wiki-author'])
but [Wiki] still appears in the menu when not logged in.
--
On 31 Dec 2012, at 10:36 AM, HittingSmoke wrote:
> I've been seeing this over the past week or so since I started separating my
> apps into subdomains using the parametric router. My entries are simple:
>
> routers = dict(
> BASE = dict(
> domains = {
> 'domain.com' : 'bl
Very interesting!
On Dec 31, 2012 5:58 PM, "Anthony" wrote:
> :-)
>
> The first one I think is a bit of a secret, but the second one is actually
> in the book.
>
> On Monday, December 31, 2012 10:53:32 AM UTC-5, rochacbruno wrote:
>>
>> +1
>>
>> Anthony should write a web2py tips and secrets book
I've been seeing this over the past week or so since I
started separating my apps into subdomains using the parametric router. My
entries are simple:
routers = dict(
BASE = dict(
domains = {
'domain.com' : 'blog',
'chat.domain.com' : 'chat',
'maps.
Well, you'd want the database to just fetch the last 25 or so messages when
the link loads for the first time.
Your browser probably needs to refresh.
I use firebase.com for my realtime chat / database backend. It works
great. I built a chat system that works fine, now I'm working on a project
I noted that my previous post is uncomplete. In the following the missing
part:
2) static/metroui/web2py_metroui.css
This file is needed to insert your customization or to override the rules
in web2py.css and in original files of framework.
3)static/metroui/css/web2py_metroui_nojs.css
OK. "Corrections in place" - just update the diff log directly ?
On Tuesday, January 1, 2013 6:36:26 AM UTC+13, Massimo Di Pierro wrote:
>
> This file:
>
> https://dl.dropbox.com/u/18065445/Tmp/diff2.log
>
> contains the lines added or edited in the book so far. If some of you can
> help proof-
I give you a plus one for this. The way I use it, is I just have a
'onclick="javascript:$.blockUI({ backgroundColor: '#f00', color: '#fff'});"
' and notice that it does not 'return false' so that the click gets handled
by the form handler.
On Monday, December 31, 2012 8:36:15 AM UTC-7, Anthony
This file:
https://dl.dropbox.com/u/18065445/Tmp/diff2.log
contains the lines added or edited in the book so far. If some of you can
help proof-read these changes and send corrections in place it would save
lots of time vs reading the entire book.
Massimo
--
+1 for an extended syntax instead of routes.
Blog post about http://blog.2partsmagic.com/restful-uri-design/ which
discusses some schemes (about halfway down, with the title "Choosing a URI
schemes for resource hierarchies" (sic)).
One thing to think about is how to define the creation of new r
Ok, now I have it installed. The error message has gone.
Maybe the module "python-ldap" should be notified in the book (5th edition?)
I have found the module "python-ldap" in
http://pypi.python.org/packages/2.7/p/python-ldap/python-ldap-2.4.10.win32-py2.7.msi#
md5=7bcf356c590ea093f7c3ad410c
Can you send me a patch?
On Monday, 31 December 2012 05:06:50 UTC-6, DenesL wrote:
>
> Hi Jeff,
>
> I noticed this too but I forgot to post about it.
> My solution was to define specific auto generation for each table:
>
> patterns = [':auto[person]',':auto[pet]']
>
> but maybe this needs to be fi
The book online is almost the final edition. You can call it a pre-release.
We need some proofreading and send it to print. Two weeks?
Massimo
On Monday, 31 December 2012 03:13:38 UTC-6, software.ted wrote:
>
> When are is the expected release date of the 5th Edition of the book?
>
>
> On Fri, D
Did you installed ldap module?
on debian systems it is
sudo apt-get install python-ldap
or
sudo pip install ldap
--
:-)
The first one I think is a bit of a secret, but the second one is actually
in the book.
On Monday, December 31, 2012 10:53:32 AM UTC-5, rochacbruno wrote:
>
> +1
>
> Anthony should write a web2py tips and secrets book :)
>
--
Now I am trying LDAP:
I run web2py 2.3.2 from source on a windows machine.
Trying ldap:
from gluon.contrib.login_methods.ldap_auth import ldap_auth
I get:
127.0.0.1.2012-12-31.16-54-34.9298ad79-7afe-46f6-aaaf-93b83aa56d8d
Cannot import module 'ldap'
Version
web2py™ (2, 3, 2, datetime.datetime
If you don't want to add a redundant field to the table, here's another
approach: https://groups.google.com/d/msg/web2py/CRPySzABQTk/8jylUabyFTQJ.
Anthony
On Monday, December 31, 2012 1:48:25 AM UTC-5, encompass wrote:
>
> I'll take number 2. :) Looks much cleaner to me! I new about number 1 bu
I am using "goobook" for contacts ```sudo pip install goobook``` to manage
gmail contacts
But I think it should be funny to create a contacts app based on docopt and
DAL!
--
+1
Anthony should write a web2py tips and secrets book :)
--
Thanks for posting this! Looks really nice, I'll take a look after the
holidays...
I've been moving back to CLI more and more, the tools you've listed are
good choices. I'm using alpine (new pine) for e-mail, but mutt was my
second choice. And I'm looking at abook for contacts... But the contac
Or you can do:
OPTION(value_, _value=key_, _selected=key_ == selected)
That will result in selected="selected" when key_ == selected and no
selected attribute in the HTML otherwise.
Even easier, though, is to let the SELECT helper handle this for you by
specifying it's "value" argument (which
I am running web2py 2.3.2 the editor default font looks like its "San
Serif" for my code. I want it to look like code font. My editor does not
even have the toolbar and footer like the one web2py website demo. How do i
change?
--
...
I use this: http://jquery.malsup.com/block/#overview. If it's an Ajax form,
you can use .ajaxStart() and .ajaxStop() to start and stop the UI blocking.
Anthony
On Monday, December 31, 2012 9:30:29 AM UTC-5, Pradeeshnarayan wrote:
>
> In my Web2py application I have a form
>
> form = FORM(
> IN
Excellent!!! Python + Web2py = Productivity Guaranteed!
On Mon, Dec 31, 2012 at 5:30 PM, Bruno Rocha wrote:
> def get_drop_down_option9(options_dict, selected):
> return [OPTION(value_, _value=key_ , **{'_selected': 'selected'} if
> selected == key_ else {}) for key_, value_ in options_dict.it
On Mon, Dec 31, 2012 at 1:21 PM, Teddy Nyambe wrote:
> def get_drop_down_option9(options_dict, selected):
> return [OPTION(value_, _value=key_ , **{'_selected': 'selected'} if
> selected == key_ else {}) for key_, value_ in options_dict.iteritems()]
>
--
Happy New Year!!
I am trying to set some functions...am having trouble haveing a selected
option, am doing as follows:
def get_drop_down_option9(options_dict, selected):
return [OPTION(value_, _value=key_ , *['_selected' if selected == key_
else '']) for key_, value_ in options_dict.iteritems()
ok noted!
On Mon, Dec 31, 2012 at 4:52 PM, Bruno Rocha wrote:
>
> If you are using the web shell (on admin interface), yes there is a bug
> with this.
>
> But in a normal console it does not happens.
>
> --
>
>
>
>
--
AFAIK, putting _ajax=True will render your form with as web2py FORM helpers does not have anything implemented for this
_ajax attribute I guess you are using some JavaScript library to detect
that your form is an ajax form?
--
If you are using the web shell (on admin interface), yes there is a bug
with this.
But in a normal console it does not happens.
--
In my Web2py application I have a form
form = FORM(
INPUT(_type='text')
...
...
,_ajax=True
)
if form.accepts(request,session):
do something
# This action will take some time to complete, So I need a waiting
message in users view, until this action completes
I would greately appr
Hi,
I want to try OpenID. I have found the following chapter in the book (rev.
4.9):
-
OpenID
We have previously discussed integration with Janrain (which has OpenID
support) and that is the easiest way to use OpenID. Yet sometimes you do
not want to rely on a thir
In web2py when i redefine a function, it does not overwrite the
function...is this by design? See the example below:
In [39] : def add(v):
return v+2
In [40] : print add(5)
7
In [41] : def add(v):
return v+5
In [42] : print add(5)
7
--
.
Thanks but this does not appear to be case, I built everything from scratch
(except controllers and views - which aren't the issue because there's
nothing exotic going on there).
When I did a fresh installation and rebuilt my website using SQLite and
installed remotely, the problem went away.
Hi,
I want to try webfaction.com. They support web2py. For some reason I want
to use Python 2.7 and SQlite 3.7 (last version: 3.7.15.1)
webfaction offers Python 2.7.3, but only SQlite 3.6.20. I have tried a lot
of things, but I always fall back to version 3.6.20
I have installed SQlite 3.7.15.1 a
Hi Jeff,
I noticed this too but I forgot to post about it.
My solution was to define specific auto generation for each table:
patterns = [':auto[person]',':auto[pet]']
but maybe this needs to be fixed in the code or in the book.
Regards,
Denes
On Monday, December 31, 2012 2:39:43 AM UTC-5, J
> then re-enter the URL and now I get auth_user table already exists
error.
I have no idea where the problem might be, but I think this could help, if
you didn't try it already:
http://web2py.com/books/default/chapter/29/06?search=fake_migrate#Fixing-broken-migrations
--
The online demo seems to have a different font from mine and the editor has
a toolbar and status bar showline line number etc
On Mon, Dec 31, 2012 at 11:07 AM, Teddy Nyambe wrote:
> I would like to change the font size and type for my web2py editor...how
> do i do that?
>
> --
>
> ..
When are is the expected release date of the 5th Edition of the book?
On Fri, Dec 28, 2012 at 12:09 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> If the labor is divided than I cannot pay because it is too complicated.
> But if you do all of them then I will be happy to pay you. W
I would like to change the font size and type for my web2py editor...how do
i do that?
--
...
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA
Cell: +260 97 7760473
website: http://www.opensource.org.zm
~/
H
60 matches
Mail list logo