this whl should be
installed on the system the project is deployed on but this app is a stand
alone project. Any help or links to resources would be great. Thanks in
advance
Regards
Don
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/w
hat is the "purpose"
of web2py ? From its
humble beginnings as a teaching tool, it has come a long way. Massimo, have you
(or any of the
core architects) published a roadmap for the next few years?
Don
On Sep 5, 2014, at 13:05, Vinicius Assef wrote:
> I don't agree with killi
thing about web2py
is that is in some respects an unobtrusive layer on python - i.e. the framework
doesn't
get in the way, it is just "there" when you need it. And learning web2py really
means learning
how to read good python, and then write good python.
Don
On Aug 10, 2014,
perfect for every job.
Thanks for keeping up with the "trolls", Massimo !!
Don
On Jul 17, 2014, at 2:22, Massimo Di Pierro wrote:
> http://www.reddit.com/r/Python/comments/2awyjd/web2py/
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (
tack. I cannot recommend
this book
highly enough:
http://en.wikipedia.org/wiki/How_to_Solve_It
Don
On Jul 16, 2014, at 1:11, Ron McOuat wrote:
> I most often use print statements which have to be removed for running under
> Apache for example. Alternative is to use the logging facility.
tools listed here:
https://wiki.python.org/moin/PythonDebuggingTools(especially open source tools
that can run on OS X.)
Or, do you prefer logging to files/screen, etc?
Thanks,
Don
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Thanks ! A case of tired eye syndrome...
Works fine now.
Don
On Jul 14, 2014, at 8:02, lyn2py wrote:
> Syntax doesn't look right. Should be:
>
> row=db.test_all_fields(request.args[1])
> form=SQLFORM(db.test_all_fields, row)
>
>
>
> On Monday, July 14, 2014
Field('f13_time','time'),
Field('f14_datetime','datetime'),
#Field('f15_list_integer','list:integer'),
#Field('f16_list_string',
(self submission).
Also, the introductory topic are several years old.
It would be interesting to hear your analyses of the other web/python frameworks
you have reviewed. "Which is best" is a frequent question on this group Of
course,
"best" needs to be defined...
Don
become an O'Reilly book.!
Don
On May 9, 2014, at 9:33, duncan macneil wrote:
> On Thursday, 8 May 2014 22:29:31 UTC+10, Willoughby wrote:
> Is Azure in your shoot-out? I'd be interested in hearing those results...
>
>
> Hey, woah, I'm the cloud shootout gu
On Thu, Jan 2, 2014 at 6:50 PM, rochacbruno wrote:
> Hi Manuele,
>
> Thanks for the report.
>
> I will check the problem ASAP.
>
> Alan (spametki), Anthony and Massimo are also able to access the
> web2pyslices admin.
>
> BTW: web2pyslices needs more contributors, some things needs rewrite, if
>
ORM.grid(db.garden,
fields=[db.garden.name,db.plot.status],
headers={'garden.name':'Garden', 'plot.status':'Plot(s) Status'},
left=db.garden.on(db.garden.id==db.plot.garden_id),
orderby=db.garden.name|db.plot.name,
groupby=db.garden.name|db.plot.status)
Thanks!
Don
-
the ranks as a purely procedural
programmer, and
becoming more functional can be difficult. Do you know of any good texts
for beginners like
me to become more "functional" and less procedural ? Or is it just a case
of working "inside out" and constructing
the statement th
not work !
thank you
Don
--
Definitely clearer ! ... Thanks a bunch guys ! ...
in conclusion :
whenever one decides to do the conditional model approach for performance
concerns or else ...
database tables better be defined first ! even more so if there are
reference fields in the tables involved! in which case a table cr
After a night sleep ...
I woke up ... read the code again .. and bingo .. no errors .. it is
almost fixed
with this :
> ...
> if isinstance(fields,tuple):
> mytables = ['auth_user','user_info']
> form_fields = []
> [form_fields.extend([db[t][f] for f in db[t].f
RL(args=step+1))
>else :
> for k in mytables :
> db[k].insert(**session.register)
> session.flash = T('Signup completed')
> redirect(fields)
>return dict(form=form,step=step)
>
>
Why the data entered by the user are not making it to the tables ??
why no ticket or errors ? .. why no redirect is taking place ??
thank you
Don
--
Actually, when the tables are used by themselves ! with a simple controller
The first one ( auth_user ) works perfectly ... datas are recorded
but the second one ( user_info ) gives me a clear error on 2.0.9 stable
version
Unable to handle upload
but with the codes of the controller shown abov
ble = True
> form = SQLFORM(db.auth_user)
> ...
>
>
>
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
don't be sorry for jumping in it is appreciated ! .. and refreshing to
noticed that there are canadian folks like me on here !
to resume ... from all the responses received - the best canadian postal
code validation is actually the one submitted by Adnan :
this one : ^[ABCEGHJKLMNPRSTVXY]{1
thank you guys ... so the set of characters only ( exclusively ) need to
be referred to as : [A-Za-z]
perfect ... thank you again.
--
again
Don
--
thank you Bruno for the update ! .. I will look it up shortly.
--
Indeed ! ... Bruno is tha Man !
--
Well .. so far all the mini apps I have done on web2py 1.99.7 are
working fine with 2.02+ ... I have not found any issues yet ! ... except
for that upgrade button on 1.99.7 that is not working on any platform or
browser !! ( well .. maybe with a mac platform ! - I did not test it on a
mac )
So, if you pass form.vars to
> it, it will remove any items that don't belong to the db.auth_user table
> (in this case, the email_check variable).
>
> Anthony
>
>
> --
>
>
>
>
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
>> the next steps ( and certain fields ) to be shown will not be the same
>>> ... so .. I definitely need to create separate table for each user type
>>> ... what if a specific user type ( such as a club and a league)
>>> actually needs its own database instead of a table in my main database !
>>> ??? how do I approach this in the model and consequently in the controller
>>> to the view ???
>>> To put it in context : a player or ref or coach is a user, ( simple )
>>> ... and most club owners and persons will be the same basic auth_user ! but
>>> on the other hand ...
>>> a team is a list of registered users
>>> a club is a list of teams and users ( that
>>> are not teams )
>>> a league is a list of clubs and users (
>>> that are not clubs, like volunteers, workers, etc.. )
>>>
>>> Am i approaching this the right way ??? ...
>>>
>>> please advise
>>>
>>> thank you
>>
>>
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
Ext.Direct implements it's own specification that is not as simple as
json-rpc to setup and use.
On Nov 10, 11:49 am, Fran wrote:
> > On Nov 10, 8:58 am, Don wrote:
> > > Has anyone used web2py services with extjs, such as json-rpc? If so,
> > > do you have ex
Has anyone used web2py services with extjs, such as json-rpc? If so,
do you have example code that you can share?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send emai
n't need special features in Web2py. If you want crossdomain feature
> in QooxDoo you must set the crossDomain property to true:
> var rpc = new qx.io.remote.Rpc("http://targetdomain.com/appname/
> function/call/jsonrpc");
> rpc.setCrossDomain(true);
>
> On 23
is. If poeple have any idea let me know.
>
> On Oct 23, 8:24 am, Don Lee wrote:
>> Is there anything within web2py's json-rpc implementation that would
>> prevent cross domain calls?
> >
>
--~--~-~--~~~---~--~~
You received this m
Is there anything within web2py's json-rpc implementation that would
prevent cross domain calls?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googl
pyjamas.
On Thu, Oct 22, 2009 at 11:37 PM, mdipierro wrote:
>
> should we include jsonrpclib in contrib?
>
> Massimo
>
> On Oct 22, 1:51 pm, Don Lee wrote:
> > I made some progress. Using jsonrpclib I am able to do the following.
> >
> >
test
from the CLI ! That should help debugging. I I had waited a couple of
minutes, I could have saved an e-mail, but hopefully others will find this
useful.
On Thu, Oct 22, 2009 at 2:30 PM, mdipierro wrote:
>
> Ignore my previous message.
>
> I do not know. It is an RPC so t
I have created a test application to play around with json-rpc.
=
# coding: utf8
def index():
return dict()
def call():
return service
@service.jsonrpc
def echo(msg)
return msg
=
How can
Fluid, Prism and Chrome 'application short-cuts' all look very
similar.
Don.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py
Yes, that is a possibility. I could do something similar to this
using a small Python application instead of a shell script as I
want something that will run on Windows.
Thanks,
Don.
On Oct 5, 8:02 pm, Álvaro Justen [Turicas]
wrote:
> My mother uses a system based on web2py and I've
id when he 'embedded web2py in a
desktop app'?
Don.
--~--~-~--~~~---~--~~
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
run like a standard desk-top application.
(Before anyone asks why I would want to do this, I want an application
that is portable between the web and the desktop).
TIA.
Don.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
How can I modify the URL that crud.tables() generates in the form.
--~--~-~--~~~---~--~~
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 fr
set.select()
>
> in this case x is valid SQL. Notice it is not 'db.table.id' but
> 'table.id' because db is a web2py animal not a SQL animal.
>
> On Sep 10, 9:41 am, Don wrote:
>
> > Okay, that was a bad example and my fault. Let's try again
>
query?
On Sep 10, 10:32 am, Yarko Tymciurak wrote:
> the "idiom" is db(WHERE_CLAUSE).select(FROM_CLAUSE) (a simplification, but
> you get the idea)
>
> so you want
>
> query_results = db(x).select()
>
> or (equivalently):
>
> query_results = db(x).sel
Ex:
x = 'db.table.id == value'
query = db(x)
* This fails. Is it possible to convert a string into a query?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email
v2.6.2
On Sep 9, 12:31 pm, mdipierro wrote:
> This is a known bug in python 2.6.1. What python version are you
> using?
>
> On Sep 9, 9:57 am, Don wrote:
>
> > Has anyone else experienced the following behavior:
>
> > I am using version 1.66.2 and whenever I
Has anyone else experienced the following behavior:
I am using version 1.66.2 and whenever I pack an application, it seems
that /views/web2py_ajax.html is not included in the wp2
file. The causes problems when trying to administrator the database.
Also, sometimes the wp2 file is bad. I made a
Agreed.
On Tue, Sep 1, 2009 at 5:34 PM, Ahmed Soliman wrote:
>
> Sure flexibility is needed but what I've spotted is a 'bug', it won't
> remove the flexibility, what I was suggesting about LDAP groups is the
> best practice for doing such things...
>
> Be
.
On Tue, Sep 1, 2009 at 2:44 PM, Yarko Tymciurak wrote:
>
> I think at this time your best option is to create a view of the table
> in question in a database server, and remap the primary key in that
> way.
>
> On Tue, Sep 1, 2009 at 10:40 AM, Don wrote:
> >
> > I
I need to access a database that was not created by me. I have read-
only access so, when I define the layout, web2py cannot create an "id"
field. is there some way for me to access this database, perhaps
somehow alias their primary key to id?
--~--~-~--~~~---~--~
currently LDAP support is really basic.
>
> In my case, I want to authenticate only against LDAP and no
> registration is required.
>
> On Sep 1, 12:18 pm, Don Lee wrote:
>
> > I know it seems strange but LDAP authentication works best if you follow the
> > books
I know it seems strange but LDAP authentication works best if you follow the
books recommendation. I spent some time trying to understand the code. I
used wingIDE to try to understand what was going on (I am new to python). I
tried only LDAP, inserting LDAP before the reference to auth, and doin
se
> > > I
> > > > > >> prefer donations of time (you can use to develop and learn web2py
> > > > > >> code) and work (contribute to web2py, translate docs, blog about
> > > > > >> it,
> > > > > >&
free ;-) . I find web2py to be very
useful and would not mind supporting it like public radio/television.
On Aug 27, 11:33 am, mdipierro wrote:
> Yes, makes no difference to me but consider, you'd be cutting few
> valuable dollars from the web2py budget. ;-)
>
> On Aug 27, 9
I believe in a previous thread you wrote that people who bought the previous
edition from lulu could get a free copy of the 2nd edition if they sent you
a copy of their receipt. Does that offer still stand?
On Thu, Aug 27, 2009 at 7:24 AM, mdipierro wrote:
>
> Yes this was a mistake.
>
> On Aug
=
auth.settings.login_methods=[ldap_auth(mode='company',
server='yp.company.com',
base_dn='ou=yp,o=company.com')]
==
** I will add a try to catch eventual errors and set it up
ldap_auth(mode='company',
server='yp.company.com',
base_dn='ou=bluepages,o=ibm.com'))
=======
It didn't work.
On Tue, Aug 25, 2009 at 5:02 PM, Don wrote:
>
> I made a mistake. ldapsearch does i
what I can do. Thanks
for the help.
On Aug 25, 3:57 pm, mdipierro wrote:
> Please send me a patch to allow this.
>
> Massimo
>
> On Aug 25, 2:47 pm, Don wrote:
>
> > I took a look at the source code and I see that the "mode" option has
> > a specific set
I took a look at the source code and I see that the "mode" option has
a specific set of accepted values. our user names are based on the
"mail" field in the ldap record. not uid. So this would not work at
all. unless I change the source.
On Aug 25, 3:24 pm, Don wrote:
&
I am also trying to authenticate against a LDAP server (not working).
I cannot get the ldapwhoami command to work, but ldap search does work
for me. I do not think the server can respond to the command.
ldapsearch does work:
ldapsearch -b 'ou=yp,o=company.com' -H ldaps://yp.company.com -x
'mail=
user",
password="dbpass")
On Sun, Aug 23, 2009 at 10:04 AM, mdipierro wrote:
>
> Then I do not understand what you mean by "secure connection". Is
> there a secure connection function provided by postgresql and psycopg2
> that web2py is not using and shoul
he tunnel.
>
> Massimo
>
> On Aug 23, 7:47 am, Don wrote:
>
> > Is it possible to define a secure database connection?
>
> > Ex: db = DAL(‘postgres://user:passw...@hostname/db’, pools=10,
> > secure=True)
>
> > My production
Is it possible to define a secure database connection?
Ex: db = DAL(‘postgres://user:passw...@hostname/db’, pools=10,
secure=True)
My production DB and web servers are running on a different machines.
--~--~-~--~~~---~--~~
You received this message because you are
RL(f='f2')}}",[],'f2');
> })};
>
>
> #view partial_view1.html
> Hello
>
> #view partial_view2.html
> World
>
>
> Hope it makes sense.
>
> Massimo
>
>
> On Aug 11, 8:50 am, Don wrote:
> > I am new to the MVC paradigm, pyth
rking.
On Fri, Aug 21, 2009 at 7:41 AM, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
>
>
> On Aug 20, 5:45 pm, Graham Dumpleton
> wrote:
> > On Aug 20, 12:21 pm, Graham Dumpleton
> > wrote:
> >
> > > On Aug 20, 5:14 am, Don Lee wrote:
quot;/welcome/static" instead
of "/apps/welcome/static/". So I am a lot closer.
On Thu, Aug 20, 2009 at 5:53 AM, Don Lee wrote:
> Can that working configuration be posted to this list?
>
>
> On Wed, Aug 19, 2009 at 10:21 PM, Graham Dumpleton <
> graham.dumple
, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
>
>
> On Aug 20, 5:24 am, Don Lee wrote:
> > Removing "Alias" line causes a different error.
> >
> > ===
> > Service Temporarily Unavailable
> >
> >
Can that working configuration be posted to this list?
On Wed, Aug 19, 2009 at 10:21 PM, Graham Dumpleton <
graham.dumple...@gmail.com> wrote:
>
>
>
> On Aug 20, 5:14 am, Don Lee wrote:
> > I'll try that, but I got that from the web2py_manual. The manual gives
web2py configs, I add an "Option Indexes"
directive to my "Location" stanza. Now I get a directory listing in the
welcome app. Not sure if this is progress.
On Wed, Aug 19, 2009 at 3:24 PM, Don Lee wrote:
> Removing "Alias" line causes a different error.
>
&
Red Hat) configured --
resuming normal operations
[Wed Aug 19 15:23:01 2009] [info] Server built: Jul 14 2009 06:02:39
[Wed Aug 19 15:23:10 2009] [error] [client xx.xx.xx.xx] Directory index
forbidden by Options directive:
/usr/local/web2py/current/applications/welcome/
===
On
Can someone post a working apache config for rhel/centos5 ?
On Wed, Aug 19, 2009 at 2:01 PM, Fran wrote:
>
> On Aug 19, 5:08 pm, Don Lee wrote:
> > Alias /apps "/usr/local/web2py/current/applications"
>
> Try removing the line above
>
> > WSGIScriptA
I'll try that, but I got that from the web2py_manual. The manual gives an
example of a virtual host configuration, so I've tried to adapt that by
taking out the things I feel are related to virtual hosts.
On Wed, Aug 19, 2009 at 2:01 PM, Fran wrote:
>
> On Aug 19, 5:08 pm
; does not have correct permissions for your web2py installation.
>
> There are a couple of ways to address this, depending on if you have sudo
> or root access (e.g. if it's your own server, or if you just have an
> account).
>
>
> On Wed, Aug 19, 2009 at 11:08 AM, Don
I am trying to deploy my app on a CentOS 5.3 server running apache. I get
an error message whenever I try to access the apps.
==
Forbidden
You don't have permission to access /apps/ on this server.
==
I have python2.6.2 installed
; everything in the folder databases/.
>
> Massimo
>
> On Aug 11, 10:41 am, Don Lee wrote:
> > Thanks, that got rid of my problem with a false value for the boolean.
> >
> >
> > # coding: utf
10T11:15:24.411343
CREATE TABLE distro(
id INTEGER PRIMARY KEY AUTOINCREMENT,
vendor_id CHAR(32),
name CHAR(32),
alias CHAR(32),
active CHAR(32)
);
success!
timestamp: 2009-08-10T11:15:24.423518
CREATE TABLE release(
id INTEGER PRIMARY KEY AUTOINCREMENT,
distro_id CHAR(32),
v
I have defined my model.
# coding: utf8
# define a SQLite database
database=SQLDB("sqlite://database.db")
# create a vendor table
database.define_table('vendor',
database.Field('name'),
database.Field('alias'),
database.Field('url'
I am new to the MVC paradigm, python, and web2py. I would like to be
able to:
1. create a controller (done)
1. define a series of functions (including index)
2. call any of the function from a single view.
Example. I have a model that consists of three tables. My default.py
controllers index
Massimo:
Why do you prefer pyAMF + Flash to pyjamas?
Thx.
Don.
On Dec 19, 12:48 pm, mdipierro wrote:
>
> If your game runs in the browser you are much better off using Flash
> (pyAMF)+web2py, else use Pygame+twisted.
>
--~--~-~--~~~---~--~~
See: http://flowplayer.org/download/LICENSE_GPL.txt
On Dec 9, 3:59 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> I am not sure the license allow redistribution. I cannot find the
> license.
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed
79 matches
Mail list logo