I see the problem now, thanks for pointing it out.
I'll post a fix later today.
Paolo
2015-06-08 22:11 GMT+02:00 Donatas Burba :
> This is failing example:
>
> db=DAL('sqlite:memory')
>
> db.define_table('tt',
> Field('vv', 'integer'),
> Field.Virtual('x', lambda row: row.tt.vv * 10))
>
@Niphlod:
OK, I reinstalled Windows from source and this time web2py is back in
working order. However, I'm still unable to connect to postgresql. I'm
getting this ticket:
Traceback (most recent call last):
File "G:\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in enviro
yes. as you requested. :-)
On Monday, 8 June 2015 17:31:22 UTC-5, James McGlynn wrote:
>
> Thank you for the quick action (I can't believe I found a bug!),
>
> One more question:
>
> Will reset_password also use
>
> reset_password_onaccept and
> reset_password_onvalidation?
>
>
> On Sunday, June 7
I don't know if web2pyslices is better than web2pyref and it doesn't care
for me. My personal opinion is: We need a decent, powerful and usable
website to collect all ours code snippets, examples, recipes, plugins, demo
sites, templates (bs2, bs3, etc.) and for to be honest that is our
Achilles
Hello Milad, Neither Web2Py Package have password. It could be an issue of
your zip software.
¿Why not try to clone the Git Repo instead?
1. Download the Git Client: https://mac.github.com/
2. Clone the repo:
git clone --recursive https://github.com/web2py/web2py.git
3. Enjoy it! (run the nex
On Monday, June 8, 2015 at 3:31:22 PM UTC-7, jackso...@quantachrome.com
wrote:
>
> I am a newbie. I want to have multiple sqlite3 databases accessible in my
> application. The db variable confuses me ...in the context of a controller
> it seems to have a value assigned to it upon entry...Is th
there's the usual ton on optimizations to be made. BTW: if sessions aren't
needed at all, the statement to use is session.forget(response)
On Tuesday, June 9, 2015 at 12:55:52 AM UTC+2, Derek wrote:
>
> I created two pull requests, so it should be a bit faster now. I see it's
> also storing sess
Hi,
Right now i am using pandas to format the data in a short time i will
post an ipython file
Saludos,
Alfonso de la Guarda
Twitter: @alfonsodg
Redes sociales: alfonsodg
Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4
On Mo
I created two pull requests, so it should be a bit faster now. I see it's
also storing sessions in the database and logs, no need for that...
On Monday, June 8, 2015 at 3:44:04 PM UTC-7, Alfonso de la Guarda Reyes
wrote:
>
> Massimo,
>
> As Derek shows we can change anything and rerun the test
db1 = DAL('sqlite://number_one.db')
db2 = DAL('sqlite://number_two.db')
db3 = DAL('sqlite://number_three.db')
all done!
On Tuesday, June 9, 2015 at 12:31:22 AM UTC+2, jackso...@quantachrome.com
wrote:
>
> I am a newbie. I want to have multiple sqlite3 databases accessible in my
> application.
Is anyone here using PyCharm for web2py projects? Since last year PyCharm
has added web2py support for the Professional edition. It's really great
and saves me a lot of time. Especially debugging applications is super easy.
But there is still a huge problem how it handles projects. I have many
Massimo,
As Derek shows we can change anything and rerun the tests
Saludos,
Alfonso de la Guarda
Twitter: @alfonsodg
Redes sociales: alfonsodg
Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4
On Mon, Jun 8, 2015 at 5:41 PM, M
https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/Python/web2py
It's open source, easy to see, perhaps we can create pull requests for our
changes...
On Monday, June 8, 2015 at 3:32:27 PM UTC-7, Niphlod wrote:
>
> it's the usual weirdo-test. I bet all has been done with w
Where is the code you run? Did you session.forget() in web2py or did you
create a session at every request? Also, did you disable migrations?
Remember web2py defaults to everything on, Flask instead, for example,
defaults to everything off.
On Monday, 8 June 2015 17:30:30 UTC-5, Alfonso de la G
I do not know about the router but you can with the pattern based routes.py
using the regex notation:
routes_in = (
(https?://www.domain1.com:\w+ /app2$anything', '/app1$anything'),
(https?://www.domain2.com:\w+ /app1$anything', '/app2$anything'),
)
On Monday, 8 June 2015 10:56:51 UTC-5, v
It's very difficult to compare the performances using that json file you
posted. Is there another way to review the data?
On Monday, June 8, 2015 at 3:30:30 PM UTC-7, Alfonso de la Guarda Reyes
wrote:
>
> Hi,
>
> The idea was not to compare web2py itself, as I said I use it in the
> frontend b
it's the usual weirdo-test. I bet all has been done with web2py defaults,
which means migrations, sessions on disk, etc etc etc ?!
BTW there's no news in knowing that a "minimal-something" performs better
than a "batteries-included" one, let alone the "I was built specifically
towards something
I am a newbie. I want to have multiple sqlite3 databases accessible in my
application. The db variable confuses me ...in the context of a controller
it seems to have a value assigned to it upon entry...Is this just the last
value assigned in db.py(model file). If I create multiple databases in m
Thanks Anthony ... yes - authorization topic... how easy ..
Best regards
Beat
Am Samstag, 6. Juni 2015 05:27:17 UTC+2 schrieb Massimo Di Pierro:
>
> and the latter option is very unsafe.
>
> On Friday, 5 June 2015 09:32:13 UTC-5, Anthony wrote:
>>
>> You either have to be logged in or set user_si
Thank you for the quick action (I can't believe I found a bug!),
One more question:
Will reset_password also use
reset_password_onaccept and
reset_password_onvalidation?
On Sunday, June 7, 2015 at 10:29:05 PM UTC-4, Massimo Di Pierro wrote:
>
> It is a bug. I just fixed it in trunk. Now reques
Hi,
The idea was not to compare web2py itself, as I said I use it in the
frontend but I found it interesting how they will review other
frameworks, but also lead to reflection on how to increase the
performance (requests per second) for web2py
Saludos,
Alfonso de
Dave:
Thanks for the reply and input about the process.
I have deleted the admin, examples and welcome directories.
Further, I have hacked the widget.py file, to not ask for a password.
Currently, I plan on creating a mac binary distribution that displays only
a start and stop button.
Not quit
well, that's not a fair bet, falcon will compile itself with cython if it's
available.
On Monday, June 8, 2015 at 3:05:05 PM UTC-7, Alfonso de la Guarda Reyes
wrote:
>
> Hello,
>
> As I'm finishing a project that requires processing information very
> quickly (machine learning) and lately i am
Hello,
As I'm finishing a project that requires processing information very
quickly (machine learning) and lately i am using #web2py for almost
everything, I found the dilemma of dividing it into a solution that
implements a REST-based backend and frontend based on web2py, the case
was whether tha
a simple monkey patch will do you. I would suggest you don't import into
the base namespace though.
import gluon.contrib.pysimplesoap.client as ssClient
then do the monkey...
ssClient.Http = set_http_wrapper(library='pycurl')
and use it like normal.
I don't get why you are trying to use a proxy
This is failing example:
db=DAL('sqlite:memory')
db.define_table('tt',
Field('vv', 'integer'),
Field.Virtual('x', lambda row: row.tt.vv * 10))
db.define_table('tt2',
Field('ttref', 'reference tt'),
Field('vv2', 'integer'))
tt1 = db.tt.insert(vv='1')
tt2 = db.tt.insert(vv=
On Sunday, June 7, 2015 at 9:13:22 PM UTC-7, jjs0sbw wrote:
>
> I have followed the instructions in the book that detail how to distribute
> applications as binaries.
> (
> http://web2py.com/books/default/chapter/29/14#How-to-distribute-your-applications-as-binaries
> )
>
> On my mac when I open
On Monday, June 8, 2015 at 2:10:56 PM UTC-4, Joe Barnhart wrote:
>
> Just on a cursory look, it seems that "weppy" is about a 99% fork of
> web2py. My only heartburn is that Giovanni doesn't mention web2py or the
> work done by others even once in his website, http://weppy.org. That's a
> huge
if you just pack you'll send the source code. alternatively, just zip the
applications/yourapp directory
On Monday, June 8, 2015 at 8:45:24 PM UTC+2, Meenoo wrote:
>
> I am new to web2py and am creating an application for my school project
> using web2py. I need to submit the source code of the
On Sunday, June 7, 2015 at 5:46:33 PM UTC-7, Michael Jackson wrote:
>
> This issue was fixed by updating to Web2Py v2.11.2
>
>
I'm glad to hear that! Thanks for closing the loop.
/dps
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Hi Derek,
Thanks for your reply! I saw similar source code as well. But there is no
document how to set it up using pysimplesoap. Could you provide an example?
I tried to use following, but it cannot work.
import sys,time
sys.path.append("/home/www-data/web2py")
import pprint
from gluon.contri
I am new to web2py and am creating an application for my school project
using web2py. I need to submit the source code of the application too. Can
someone tell me how do I do that ?
"Compile" and "Pack Compile" allows me to share/deploy the application
without the source code. Is there any othe
+1000
On Friday, June 5, 2015 at 2:24:32 AM UTC-7, weheh wrote:
>
> Commendable effort! But I second the folks who don't want any logo or name
> changes for the time being. Thanks.
>
> On Monday, June 1, 2015 at 11:06:16 AM UTC-7, Massimo Di Pierro wrote:
>>
>> Time to revamp the web site?
>>
>>
Just on a cursory look, it seems that "weppy" is about a 99% fork of
web2py. My only heartburn is that Giovanni doesn't mention web2py or the
work done by others even once in his website, http://weppy.org. That's a
huge no-no on this side of the pond. You ALWAYS recognize those whose
shoulde
http://inventwithpython.com/blog/2012/04/06/stop-using-print-for-debugging-a-5-minute-quickstart-guide-to-pythons-logging-module/
It's not difficult to use logging, and that is the correct answer.
On Saturday, June 6, 2015 at 2:15:44 AM UTC-7, Niphlod wrote:
>
> I'd go with "print vars" simply. Y
I just hate non-compliant html. I've always been drawn to html compliant
templates, like TAL (Template Attribute Language).
In any case, I see that it generates html, and it is a lot smaller than the
alternatives. I'd be willing to give this a shot.
On Monday, June 8, 2015 at 3:02:30 AM UTC-7,
Some progress on the standalone application.
I removed the examples, welcome and admin directories.
The standalone Mac application GUI widget launches the application.
It appears that I need to modify widget.py to not ask for an admin password
or provide a warning of no admin password.
Does any
looks like pycurl is supported by pysimplesoap. That supports NTLM. See
line 67.
https://code.google.com/p/pysimplesoap/source/browse/pysimplesoap/client.py?r=6ed06397b4f0c1894156ee5d0a1c165f80ed6a68
On Monday, June 8, 2015 at 7:28:39 AM UTC-7, Pengfei Yu wrote:
>
> Hi,
>
> I am trying to acces
a, sorry, my bad, thank you so much anthony for detail explaination
another shared thought about this, please beware of default embeded
requires field e.g. reference field type have default requires =
IS_IN_DB(), so if you face the same situation, please nullify the other
field with IS_EMPTY_OR(
My suggestion does not answer your question, it merely suggests a
work-around.
In a model file e.g. models/0redirects.py (your first model) check the
domain and app name are correct. If not, redirect, or whatever you wish
to happen.
Hopefully, someone will provide an answer based on rout
Is it okay if I created tables above this line in db.py?
#
## Define your tables below (or better in another model file) for example
They are referenced by db.auth_group "extra_fields" so they won't work
positioned below. (
Yes, that's just a template.
On Monday, June 8, 2015 at 11:01:10 AM UTC-4, Alex Glaros wrote:
>
> Is it okay if I created tables above this line in db.py?
>
> #
> ## Define your tables below (or better in another model file) f
If you're going to change the field validator, you must do it *before*
creating the form object.
On Monday, June 8, 2015 at 10:29:37 AM UTC-4, 黄祥 wrote:
>
> thanks anthony, put the logic outside the form process do the trick, but
> it seems, that i process further for the value.
> e.g.
> def rec
thanks anthony, put the logic outside the form process do the trick, but it
seems, that i process further for the value.
e.g.
def receipt_form():
form = SQLFORM(db.receipt_header)
#if form.vars.receipt_type == 'Purchase Order':
#if request.vars.receipt_type == 'Purchase Order':
if
Hi,
I am trying to access a web service which requires windows NTLM
authorization. I am able to successfully implement it using suds python
library with following code:
from suds.transport.http import *
from suds.transport.https import WindowsHttpAuthenticated
from suds.client import *
import
On Monday, June 8, 2015 at 8:55:40 AM UTC-4, 黄祥 wrote:
>
> pardon me for not made myself clear enough, what i expect to happen is
> when user choose the *receipt type == Purchase Order* so the field of
> *Purchase
> Order No* *become mandatory field *(either using : notnull = True,
> required =
Il 02/06/15 04:58, Robert Porter ha scritto:
> That sounds like maybe a good idea if I knew how to do that.. So I'll
> go look into it! Thanks!
Hi Robert,
this[1] is a openlayers based example I wrote a long time ago for
another thread in this list and it uses components I hope it could be of
any
Some months ago, because I can´t post anything to web2pyslices (others
have the same problem and no one knows why) I post that I could motivate
some of my team (including a designer) for building (and maintain) a new
web2pyslices, and the proposal remains on the table. Right now I have
two idea
pardon me for not made myself clear enough, what i expect to happen is when
user choose the *receipt type == Purchase Order* so the field of *Purchase
Order No* *become mandatory field *(either using : notnull = True, required
= True or requires = IS_NOT_EMPTY() ), so how can i achieve it using
ok thanks
i found workaround (via Marin), but handling None condition would preserve
backwards compatibility and make more robust
thanks again for everything!
On Monday, June 8, 2015 at 7:06:02 AM UTC-5, Paolo Valleri wrote:
>
> ok, I get it.
> I'll post an update later today to fix the backwa
this works! thanks...
On Monday, June 8, 2015 at 6:52:35 AM UTC-5, Marin Pranjić wrote:
>
> You should be able to just write:
> if not (op_rec and op_rec2 and op_rec3 and op_rec4)
>
> Marin
>
> On Mon, Jun 8, 2015 at 1:03 PM, Auden RovelleQuartz > wrote:
>
>> What does this error mean - I never g
ok, I get it.
I'll post an update later today to fix the backward compatibility
Paolo
2015-06-08 13:58 GMT+02:00 Auden RovelleQuartz :
> parameter "op_rec" is set to a session parameter that under normal
> operating conditions is a "Rows" object
>
> if a person goes to the page directly (not th
parameter "op_rec" is set to a session parameter that under normal
operating conditions is a "Rows" object
if a person goes to the page directly (not the "normal" method) then the
"op_rec" parameter would be None and in that case, the code simply
redirects the person to a function that sets it
You should be able to just write:
if not (op_rec and op_rec2 and op_rec3 and op_rec4)
Marin
On Mon, Jun 8, 2015 at 1:03 PM, Auden RovelleQuartz
wrote:
> What does this error mean - I never got it pre-pydal...
>
> {
> Ticket ID
>
> 24.211.17.122.2015-06-08.05-34-25.9f6361e2-d387-4cf8-adef-2216ad
Your are comparing Rows with None.
The question is why?
Normally, you should compare Rows with Rows.
In pydal we can add a check to raise an error if the second argument isn't
an instance of Rows.
Paolo
On Monday, June 8, 2015 at 1:03:45 PM UTC+2, Auden RovelleQuartz wrote:
>
> What does this
What does this error mean - I never got it pre-pydal...
{
Ticket ID
24.211.17.122.2015-06-08.05-34-25.9f6361e2-d387-4cf8-adef-2216ad5c6476
'NoneType' object has no attribute
'records'Versionweb2py™Version 2.11.2-stable+timestamp.2015.05.30.16.33.24
PythonPython 2.7.3: /usr/bin/python (prefix: /
+1 riot v2.x is very nice. I think ractive.js has some performance
advantage and some more features, but riot will get those soon.
2015-06-08 12:02 GMT+02:00 António Ramos :
> just to share some noise on the UI for those looking at angular reactjs
> polymer ractive and so on
>
> https://muut.com
except from the obvious "seems that there is no default schema for your
dabatase" this error popped up in the past with really old versions of
postgresql ... may I ask what version are you running ?
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.
just to share some noise on the UI for those looking at angular reactjs
polymer ractive and so on
https://muut.com/riotjs/
any experience or comments ?
Regards
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://c
If you really need the id's in the URL to which the form is submitted, you
can specify the form's "action" attribute:
form = FORM(..., _action=URL(..., vars=dict(question_id=question_id, user_id
=user_id))
Alternatively, you could include the question id and user id as hidden
fields in the form
What are you expecting to happen? Are you submitting input with empty
values for the fields you have set as required/notnull but failing to get
an exception thrown by the DAL or the database?
Note, using the "required" and "notnull" attributes as a way of enforcing
form validation is not a good
can not already tested it.
e.g.
def __onvalidate_receipt(form):
if request.vars.receipt_type == 'Purchase Order':
db.receipt_header.purchase_order_no.notnull = True
db.receipt_header.purchase_order_no.required = True
elif request.vars.receipt_type == 'Purchase Return':
I downloaded web2py and it is brilliant I love the philosophy behind it.
I have one small issue I created a quick application and tested via sqllite
and all is fine but I am now using my models that I created to migrate to
postgresql.
The error I am receiving is: no schema
has been selected t
63 matches
Mail list logo