honestly i don't know what user.html looks like (i don't think i have one in
any of my applications.but i have not used the new wizard yet).
remember that URL items are passed as arguments, and so if you have none
then request.args(0) will be None. that HTML file assume that there is at
le
if your domain is bob.com, you cannot map http://bob.com to GAE, but you can
map http://www.bob.com to GAE.
so you just have to manage your sub-domains properly. (yes, "www" is
considered a sub-domain)
cfh
trying to import ldap_auth. Got a little error when running web2py.py -
S
C:\web2py>python web2py.py -S welcome -M
..
Version 1.91.6 (2011-01-03 17:55:14)
..
WARNING:web2py:import IPython error; use default python shell
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit
(AMD64)] o
Hi villas,
Thnx for your reply.
I am only playing for a couple of day's with web2py and python.
I have more experience in php. ;)
As what i see now is that the JOIN is not correct i think..
going to give it another try.
speak to you later.
regards Bart
On 8 feb, 19:00, villas wrote:
> Hi Bar
On Feb 7, 2011, at 10:54 AM, Jonathan Lundell wrote:
>
> On Feb 7, 2011, at 10:02 AM, Gabriel Carmona wrote:
>>
>> I'm using "Version 1.91.6 (2011-01-03 17:55:14)"
>
> Thanks. I've got a working patch that hopefully we'll have time to get into
> 1.92.
>
> In the current version, you'll need to
I am using the default web2py login mechanism;
I am not sure where I can run additional queries after a successful login?
I tried doing
def load_settings(f):
settings = db.settings(db.settings.user == f.id)
session.settings = settings
return
auth.settings.login_onaccept = lambda
Checking out web2py service from windows service manager. Turns out
web2py service stops itself right after it starts.
Any assistance please?
On Wed, Feb 9, 2011 at 11:13 AM, Panupat Chongstitwattana
wrote:
> A couple questions.
>
> I can't seem to get web2py to load the options. Either
> pytho
A couple questions.
I can't seem to get web2py to load the options. Either
python web2py.py -L options.py
or
python web2py.py -L options
give me the same error messages - Cannot import config file [options].
I'm running the command from web2py.py directory.
My options.py is exactly like the one l
Kenneth,
It's neither web2py nor written in python but take a look at PDG
Commerce. The big win for you would be great QuickBooks POS
integration. Details at www.pdgsoft.com
Disclaimer: we do a lot of PDG Commerce customization and programming.
-- Art Z. (www.hens-teeth.net)
Ok, I'll look into the code and see if I can handle it.
On Feb 8, 8:04 pm, selecta wrote:
> there was already a suggestion for that,
> the answer was to take the methods for displaying the tickets and
> displaying the ticket content instead of the link if the user has the
> right permissions, sho
there was already a suggestion for that,
the answer was to take the methods for displaying the tickets and
displaying the ticket content instead of the link if the user has the
right permissions, should be straight forward for somebody a bit into
the web2py code
unfortunately nobody had time/intere
Massimo, it's really very good.
What about including "is_active" to represent record active (True) or
not (False)?
The ideia is work like dBase III Plus. It had a flag indicating if the
record was active or deleted. Then, the "pack" command made a real
delete.
--
Vinicius Assef.
On Tue, Feb 8,
The way it is now seems safer to me. The password should typically be
skipped but I know it doesn't always. I'm not sure under what conditions the
password is necessary but it seems if you only had to log in once that would
avoid much of the "hassle".
yes that is true, thanks alot, :D
any chance to get a better error message for this? oh wait yes, I
should write a patch :P
On Feb 7, 3:39 pm, Massimo Di Pierro
wrote:
> Looks like you have a custom auth_user table that misses the field
> reset_password_key
>
> Massimo
>
> On Feb 7, 5:29 am, sel
OK I assume there is not.
I placed the following in meta-code:
heading = 'abc'
But the wiki pages throw an error that heading is undefined.
I also tried:
{{
heading = 'abc'
}}
and:
``
{{
heading = 'abc'
}}
``:template
but heading is still undefined.
The editor level is set to 3.
Hi all,
Is there a way to inform a new user that their registration has been
approved?
Cheers, Duane.
Would it be possible to set a flag for bypassing the ticketing system
and just displaying errors on the page during development?
The current system is nice for production, but it's a bit of hassle to
go through two extra links and enter a password just to see the error
trace in development.
-Dane
I like the new admin. Even though its my first time using web2py.
But its nice time for a change. If there is anything I can do to help
that would be fine with me.
On Feb 8, 4:00 pm, pbreit wrote:
> I kind of liked the old admin better. Are we really set on the new admin?
Thank you, Paul! That's good news - the new builder tool surely is a
good option to speed up page loading.
Meanwhile I'm using "google-chrome --disable-webgl" to turn off WebGL
until it has been fixed.
Cheers
Bernd
On 8 Feb., 08:16, Paul Irish wrote:
> Sorry for the error, Bernd, but good work
Hi all,
What's the best way to integrate jquery's ui themes into web2py's default
layout/css without causing css conflicts?.
http://jqueryui.com/download
I downloaded the smoothness theme and inserted the following lines in web2py
model (after renaming the downloaded files):
response.fi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
El 08/02/11 05:25, Nico de Groot escribió:
> I'm curious, what is the state on Pycon 2011? By the look of it, on
> the Pycon website the tutorial is still 'on'. I'm thinking of going
> there, I would like to meet other web2py developers and especi
On Feb 8, 2011, at 3:00 PM, villas wrote:
>
> +1 for moving on, 2.4 is past its 'sell-by' date.
>
> However, I don't think a 'simple recipe' will help much. There would
> be a variety of recipes required and most users with shared hosting
> will not be able to implement them. On the other hand, u
+1 for moving on, 2.4 is past its 'sell-by' date.
However, I don't think a 'simple recipe' will help much. There would
be a variety of recipes required and most users with shared hosting
will not be able to implement them. On the other hand, users who are
experienced enough to host their own would
POS systems are hard. And when they don't work correctly, merchants get
furious. I'd suggest QuickBooks POS or some other system. And the peripheral
integration is generally desired and difficult to pull off with a web app.
The other problem your going to have is Peripheral support;
They are probably going to want to work with cash drawer, printers and
scanners.
I am not sure how well the browser can interact with those things.
It would be nice to try I personally would love to make a POS work with
web2py
O
Hello list,
yesterday I got an question from an customer about finding a new cashier
system for them. They have three separate place of sales that have
completly different products. Only reporting needs to be done to one place.
Would it be possible to build a cashier system with web2py.
I gu
@prebit I downloaded and now testing satchmo. Find no problem except admin
is a bit too complicated and pictures doesn't render (may be I've missed
some requirements)
But why did you said in first place that "satchmo does not get you very
far"? May be there's something that I missed!!
Yes I'll
I see what you have in mind.
CSS and views are customizable as you please right? ;)
Yes, by aesthetic I mean that.
But I also need more options for payment processing and shipping etc.,
spree looks nice and got many modules. However there's only one problem, I
don't know ruby ;)
will look into it.
This is long overdue; although it was in the book;
I was using the default auth_user table; I really dont know when the
user was registered?
Whoops; this will solve this problem
Thanks.
On 2/8/11 4:04 PM, Bruno Rocha wrote:
2011/2/8 pbreit mailto:pbreitenb...@gmail.com>>
Hmmm, still d
Knowing who create, update a record then you can track with crud.archive
what were the operation done on the record.
Richard
On Tue, Feb 8, 2011 at 4:02 PM, pbreit wrote:
> Hmmm, still don't really understand. What's the use case?
Nice to have it by default... I already do the exact same thing...
I think will need to update the crud.archive slice to make it better and
workin with auth.signature.
Richard
On Tue, Feb 8, 2011 at 3:58 PM, Bruno Rocha wrote:
> 2011/2/8 pbreit
>
> I don't totally understand. Is it like some
This is what I thought "could" have been done and was wondering why it
has not?
It would make sens that this type of utility function would come in very
handy;
Today many sites use a mix of http and https; while I know that web2py
could not force out of a particular scheme the links could at
2011/2/8 pbreit
> Hmmm, still don't really understand. What's the use case?
Very useful when you want to know who is the creator of a record, when the
record was created, and the same for updates.
Are there any shared hosts with Python 2.4 support where it is NOT
possible to upgrade to Python 2.5 or later? If not, then I support
Jonathan Lundell's suggestion of providing a simple recipe to move to
a later Python.
On second thought, how universal would such a 'recipe' be? Will it
vary grea
Hmmm, still don't really understand. What's the use case?
You can go with Spree -> http://spreecommerce.com/
It is very clean, it is ruby, but if one wants to write e-commerce in
web2py, I think it should mimic spree. Not magento.
I kind of liked the old admin better. Are we really set on the new admin?
On Feb 8, 2011, at 12:24 PM, David J. wrote:
>
> Thanks Jonathan;
>
> This works too;
Good.
This *could* be an option to URL, since it has internal access to request.
Suppose we added arguments URL(..., secure=None, host=None).
This case would mean the current behavior. Secure could be True o
2011/2/8 pbreit
> I don't totally understand. Is it like some sort of activity logging, such
> as for auditing or analysis?
Yes, look at http://web2py.com/book/default/chapter/06#Table-Inheritance
Satchmo does not get you very far so expect to do quite a bit of coding to
get it ready for production. Magento gets you all the way and can be used
with little or not programming but is extremely difficult to customize.
I might suggest choosing your components independently (example: web2py
es
2011/2/8 Massimo Di Pierro
> In trunk, give it a try:
>
> >>> db.define_table('mytable', Field('whatever'), auth.signature)
> >>> print db.mytable.fields()
>
Very nice!
I always use a default signature
80 #DEFAULT SIGNATURE
81 signature = db.Table(db,'signature',
82 Field('crea
I don't totally understand. Is it like some sort of activity logging, such
as for auditing or analysis?
For those intrigued and cannot update to trunk right now, it creates
some extra fields...
['id', 'whatever', 'created_on', 'created_by', 'modified_on',
'updated_by']
Nice shortcut, but I never guessed from the name 'auth.signature' what
it would do.
Maybe a different name would be clearer? e.g.
Thanks Jonathan;
This works too;
Thanks;
On 2/8/11 3:11 PM, Jonathan Lundell wrote:
On Feb 8, 2011, at 11:41 AM, David J. wrote:
Well than maybe someone could inform them; ;)
It would be useful; My current work around is to make the whole site secure
cringe;
If you know that the host info
Thx, Massimo!
On 9 фев, 01:03, Massimo Di Pierro wrote:
> if IS_NOT_IN_DB(db, 'shops.name')(name)[1]==None:
> db.shops.insert(name=name)
>
> validator(value)[1]==None if value passes validation.
>
> On Feb 8, 1:54 pm, LightOfMooN wrote:
>
>
>
>
>
>
>
> > Is there a way to use validators in c
On Feb 8, 2011, at 11:41 AM, David J. wrote:
>
> Well than maybe someone could inform them; ;)
>
> It would be useful; My current work around is to make the whole site secure
> cringe;
If you know that the host info is valid, you could write:
'https://%s%s' % (request.env.http_host, UR
You are in the right chapter...
But this will be more clear :
Authorization
Once a new user is registered, a new group is created to contain the user.
The role of the new user is conventionally "user_[id]" where [id] is the id
of the newly created id. The creation of the group can be disabled wi
if IS_NOT_IN_DB(db, 'shops.name')(name)[1]==None:
db.shops.insert(name=name)
validator(value)[1]==None if value passes validation.
On Feb 8, 1:54 pm, LightOfMooN wrote:
> Is there a way to use validators in controller functions?
> Something like this:
> name = request.vars.name
> if name.IS_
What would you mean by aesthetics? CSS and Views?
On Tue, Feb 8, 2011 at 4:29 PM, Arun K.Rajeevan wrote:
> aesthetics
Is there a way to use validators in controller functions?
Something like this:
name = request.vars.name
if name.IS_NOT_IN_DB(db, 'shops.name'):
db.shops.insert(name=name)
or
name = request.vars.name
if IS_NOT_IN_DB(name, (db, 'shops.name')):
db.shops.insert(name=name)
Good point. I made the now case insensitive in trunk. Please try.
Massimo
On Feb 8, 12:54 pm, connie_codes wrote:
> It would appear that the session module uses the application (derived
> from url) as part of the session key. It also seems that it is case
> sensitive. I am making AJAX requests f
Well than maybe someone could inform them; ;)
It would be useful; My current work around is to make the whole site
secure cringe;
On 2/8/11 2:36 PM, Massimo Di Pierro wrote:
Because the URL function does not know the "https://example.com";. Only
the web server knows it.
We do have a URL(,si
Because the URL function does not know the "https://example.com";. Only
the web server knows it.
We do have a URL(,sign=) option to digitally sign URLs.
On Feb 8, 12:58 pm, "David J." wrote:
> I was wondering why URL does not include a secure flag?
>
> I think it should be able to set "secur
It would appear that the session module uses the application (derived
from url) as part of the session key. It also seems that it is case
sensitive. I am making AJAX requests from my views which include
application/controller/functionname if for whatever reason a user
starts their session with
I'm in India.
But I'm not familiar with all of those technologies used in site,
1) processing.js
2) tornado (this one is easier to catch up)
3) html5 websockets
That's it.
I was wondering why URL does not include a secure flag?
I think it should be able to set "secure" url's
For example if you do URL("function",secure=True)
We generate a complete URL
https://example.com/welcome/default/function
Do you have the python win32 extensions installed? I know that messed me up
the first time I tried to install as a service.
OK. That makes sense, and it basically talks about the kind of thing I want
to do here: http://web2py.com/book/default/chapter/08#Authorization-and-CRUD
I guess I should have that chapter a bit more carefully. Thanks!
On Tue, Feb 8, 2011 at 12:53 PM, Richard Vézina wrote:
> By default a specif
In trunk, give it a try:
>>> db.define_table('mytable', Field('whatever'), auth.signature)
>>> print db.mytable.fields()
Hi Bart
I'd take a look at whether you are producing the correct SQL. Try
placing an underscore in front of your select to expose in the
commandline console whether the SQL is what you want. See the
underscore here:
print db(db.topics.id== request.args(0))._select(db.topics.title,
db.topics.conte
Hi!
When I chenged email using user/profile form, it's not verify it.
How can I make it works to verify email using user/profile form?
By default a specific group is created for each user... You can use this
group for this.
Richard
On Tue, Feb 8, 2011 at 12:32 PM, Sean Brewer wrote:
> Hello,
>
> I am very new to web2py and I'm learning using the application wizard
> (which is awesome) and the web2py book.
>
> Anyway, my questi
On Feb 8, 2011, at 9:25 AM, Richard Vézina wrote:
> var1={}
> for i in range(19):
> var1[i]=''
>
> Richard
>
> 2011/2/8 António Ramos
> is there a more compact way of doing this?
>
> var1={'1':'','2':'','3':'','4':'','5':'','6':'','7':'','8':'','9':'','10':'','11':'','12':'','13':'','14':''
Hello,
I am very new to web2py and I'm learning using the application wizard (which
is awesome) and the web2py book.
Anyway, my question is that is there a way to restrict the viewing and
editing of records in a table to only the user that created the record? If
so, is there a way to do it with t
You could even do:
var1 = dict([(i,'') for i in xrange(1,20)])
Or if you need the key in the dictionary to be a string:
var1 = dict([(str(i),'') for i in xrange(1,20)])
On Tue, Feb 8, 2011 at 12:25 PM, Richard Vézina wrote:
> var1={}
> for i in range(19):
> var1[i]=''
>
> Richard
>
> 2
var1={}
for i in range(19):
var1[i]=''
Richard
2011/2/8 António Ramos
> is there a more compact way of doing this?
>
>
> var1={'1':'','2':'','3':'','4':'','5':'','6':'','7':'','8':'','9':'','10':'','11':'','12':'','13':'','14':'','15':'','16':'','17':'','18':'','19':''}
>
> Thanks
> António
is there a more compact way of doing this?
var1={'1':'','2':'','3':'','4':'','5':'','6':'','7':'','8':'','9':'','10':'','11':'','12':'','13':'','14':'','15':'','16':'','17':'','18':'','19':''}
Thanks
António
I have been contacted by a company in India who is interested in using
EMTE (http://code.google.com/p/emte-trading/) for a project and they
are looking for a local web2py programmer. Let me know if you are
interested.
Massimo
True!
Can make few of them.
I think we should divide the works.
Or if the examples app contain most of the code it is just a matter of
making the screenshot and crop them.
I can take a few hour tomorrow night for this.
Richard
On Tue, Feb 8, 2011 at 11:16 AM, stargate wrote:
> I think the b
On Feb 8, 2011, at 8:03 AM, Massimo Di Pierro wrote:
>
> I guess the question is... if a variable is not a string or int,
> should it be json.encoded by default?
I don't think so. For one thing, we can't tell on the receiving end if a
variable should be json-decoded (it's just a string, after al
I think the book needs to be updated with new screen shots. What are
your thoughts on this.
I guess the question is... if a variable is not a string or int,
should it be json.encoded by default?
On Feb 8, 9:45 am, Jonathan Lundell wrote:
> On Feb 8, 2011, at 3:56 AM, Manuele Pesenti wrote:
>
>
>
> > I'm trying pass some variables from one one controller/function to another
> > using th
On Feb 8, 2011, at 3:56 AM, Manuele Pesenti wrote:
>
> I'm trying pass some variables from one one controller/function to another
> using the command:
>
> URL(request.application, 'myControler', 'myFunction', vars=dict(myVar=myVar))
>
> but when I call request.vars.myVar I get a string type obj
On Feb 8, 2011, at 2:17 AM, LightDot wrote:
> It has to happen sooner or later, I guess. The main problem I see are RHEL /
> CentOS 5 users with stock python.
>
> Debian Etch also has python 2.4 but I guess that's not a problem any more.
> Ubuntu 8.04 LTS users are in the clear (python 2.5).
>
Your solution ( http://natalanimal.com.br/ ) gives good response time,
that's nice.
But in my case client need better aesthetics and may be have a deadline,
near by.
So, for now, I'll chose Stachmo, or Magneto (one of my friend recommend it,
because it needs almost no coding from my side and wi
Hi Massimo,
tested like that, and still the same error.
Bernardo
2011/2/8 Massimo Di Pierro
> Your problem is that this:
>
> Field('password', 'password', '''length=512, ''', readable=False,
> label='Password'),
>
> should be
>
> Field('password', 'password', length=512, readable=False,
> labe
I'll be attending the tutorial, though not the full conference. I'll
probably be around for at least a day or two after the tutorial and would be
happy to join a web2py get-together.
Anthony
On Tuesday, February 8, 2011 5:25:09 AM UTC-5, Nico de Groot wrote:
> I'm curious, what is the state o
Hello,
I am happy to see that writeable false icons have been added for boolean
field in crud.read...
I am wondering to know if I should expected the same for crud.select??
Now I am having the unwriteable icons in crud.read, but not in crud.select
Thank you.
Richard
I Customized e-store (for other puroposes) http://natalanimal.com.br/
This is very nice and easy to manage/customize/
But, at this time, I think the Stachmo or Magento will be better and
completed solutions.
Would be very nice, if you, or a group of us, could take e-store and make an
effort to bu
OK first problem resolved... the log said:
"Expecting property name"
essentially in the string single and double quotes where inverted and
the json string passed was incorrect.
s ="{'a': 1}" # <- incorrect
s = '{"a": 1}' # <- correct
But another quest remains: Why I get a string using reques
I need an e-commerce sire with
* an e-commerce site (not complex, we may have a max of 20 different
products),
* a forum with support, downloads/updates, product registration, Personal
account page/shipping details/preferences/etc,
* a blog
* social media integration
will you suggest me to go
Hello,
I am happy to see that writeable false icons have been added for boolean
field in crud.read...
I am wondering to know if I should expected the same for crud.select??
Now I am having the unwriteable icons in crud.read, but not in crud.select
Thank you.
Richard
stop message services
Hi all,
Just starting with Web2py and i feel like a kid in a play garden. ;)
Ok my problem, i am trying to make a simple JOIN but when i do that i
have a problem with my views.
My controlle looks like this:
def read():
thispage = db.topics[request.args(0)]
if not thispage:
redire
Sorry for the error, Bernd, but good work sleuthing it out!
I've updated http://www.modernizr.com/news/ so it does not reproduce
the bug.
Had you been able to actually *read* that news page.. :) .. you'd find
out we recently put out a builder tool, so you can customize which
tests you'd like to i
request.vars.xls_file.file.read()
request.vars.xls_file.filename
On Feb 8, 6:18 am, vortex wrote:
> I would like to obtain the filename string from request.vars.xls_file
> such as:
>
> filename = request.vars.xls_file
> "filename" 'backup_2011-02-08_11h24.xls'
>
> but I get the FieldStorage:
>
Your problem is that this:
Field('password', 'password', '''length=512, ''', readable=False,
label='Password'),
should be
Field('password', 'password', length=512, readable=False,
label='Password'),
On Feb 8, 2:36 am, Bernardo Botella Corbí wrote:
> Hi Massimo,
>
> please find attached the o
I would like to obtain the filename string from request.vars.xls_file
such as:
filename = request.vars.xls_file
"filename" 'backup_2011-02-08_11h24.xls'
but I get the FieldStorage:
filename = request.vars.xls_file
"filename" FieldStorage: FieldStorage('xls_file',
'backup_2011-02-08_11h
Following the book, trying to get web2py to work as service but
haven't gotten any luck so far.
Windows Server 2008 R2
C:\web2py> python web2py.py -W install
No handlers could be found for logger "web2py"
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.
Hi *,
I'm trying pass some variables from one one controller/function to
another using the command:
URL(request.application, 'myControler', 'myFunction',
vars=dict(myVar=myVar))
but when I call request.vars.myVar I get a string type object even if
myVar was a dictionary. I cannot bypass thi
Hello Bruno,
When am using the following code to hide columns the table has been
drawn twic:
$(document).ready(function() {
$('#ciId').dataTable( {
"aoColumns": [
null,
{ "bVisible":false },
I'm curious, what is the state on Pycon 2011? By the look of it, on
the Pycon website the tutorial is still 'on'. I'm thinking of going
there, I would like to meet other web2py developers and especially
discuss the LMS project. But before booking I would like to make sure
it is worthwhile for me (a
It has to happen sooner or later, I guess. The main problem I see are RHEL /
CentOS 5 users with stock python.
Debian Etch also has python 2.4 but I guess that's not a problem any more.
Ubuntu 8.04 LTS users are in the clear (python 2.5).
What I would do is make any crucial bug fixes needed for
Thanks Massimo,
The fieldnames are arbitrary, i indeed use different names for it (not
even start(_time) or end(_time) )
What i indeed needed was the onvalidation for a crud.
Cheers
On Feb 7, 3:43 pm, Massimo Di Pierro
wrote:
> first of all start and end and sql keywords you should choose anoth
take a look at response.menu
you can change it in any controller
also you can set any other variable the same way
response.yourvar = ...
Was trying to figure this out for a while.
web2py_win comes with web2py.exe that starts the server immediately.
There was no installation and the options_std.py wasn't availabl
either.
I tried download the source, run web2py.py and options_std.py just showed up.
Hi Massimo,
I'm trying it, but maybe I am doing something wrong.
in the model I have this:
Field('imagen', 'upload',
default='auth_user.imagen.a9ea07ced8e92070.56657370615f4c58565f323030375f31315f31303234783736382e6a7067.jpg'),
being that jpg file an upload file inside the upload folder. If I le
98 matches
Mail list logo