Yarko,
Couldn't your decorator w/ arguments be written:
@auth.requires_any_membership( *list )
Like this?:
@auth.requires_membership(['site','core'])
def crud_address():
return dict()
@auth.requires_membership('site')
def crud_event():
return dict()
Core is an intersection of
Here is it. Small, nice, tested and documented.
One downside though. I tried hard but failed to understand the original
self.trows purpose. While I preserved default functionality, I'm not
sure if I missed something subtle.
And, btw, use of trows seemed buggy for me.
Here is my best guess:
trows
Actually, I just put in my default.py file the only controller file I am
using.
I place it before all the other methods that I initialize.
I am lookingto it more now.
Regards,
Jason
On Mon, 2009-05-18 at 03:55 -0700, annet.verm...@gmail.com wrote:
Jason,
Just a thought ... Did you put the
This is nonsense -
None of the contact information or registry about the site or domains is
true - all phone numbers, in registry and on the site itself are
disconnected numbers; no name this is registered under is true; the site
uses deceptive practices to lure users into registering to buy bid
Version 2 of the patch
I discovered that I messed up self.custom.dspval contents with previous patch.
And having both functions (do_custom do_standard) is more convenient
- this way used can decide where he wants standard fields to go -
before his ones of after them.
On Tue, May 19, 2009 at
hi everybody, i am new to web2py.
my question is : is there any means to create index on a database
table column when defining that table using SQLDB.define_table?
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Explicitly, no, but web2py will implicitly create indexes on id's and
columns containing foreign keys (=referencing other tables).
On May 19, 10:20 am, benqktc zxzwin...@gmail.com wrote:
hi everybody, i am new to web2py.
my question is : is there any means to create index on a database
table
i have created an app which is working before i added the code for
session expiration.
# ###
# ## session expiration
# ###
t0 = time.time()
if session.authorized:
if
Also I think that you will encounter no problems if you just directly
connect to sql server console and add index there.
On May 19, 12:20 pm, benqktc zxzwin...@gmail.com wrote:
hi everybody, i am new to web2py.
my question is : is there any means to create index on a database
table column
adding 'unique=True' to SQLField causes web2py to implicitly create
unique index on that column, that works for me.
but what if i just want an index not an unique index.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I still haven't solved the problem described in the post above.
This is what I have got so far:
@auth.requires_membership('user_3')
def crud_address():
db.adres.bedrijf.default=auth.user.bedrijf
form=crud.create(db.adres)
rows=db(db.adres.bedrijf==auth.user.bedrijf)\
Hello
Please notice this difference:
print INPUT(_type='hidden', value='test')
input type=hidden /
print INPUT(_type='text', value='test')
input type=text value=test /
and at the same time:
print INPUT(_type='text',_value='test')
input type=text value=test /
print
This is simply an undocumented issue and it is correct.
_value is the tag attribute and it works as expected.
value is for internal use and it contain the current value of an input
field that is to be set by the user. hidden input fields ignore value
because they only have a _value. I will try
On 18 May, 20:41, Skylar Saveland skylar.savel...@gmail.com wrote:
there are few things wrong with this block on page 29. Where is the
canonical place to issue notice of small errors?
For small errors, I generally mail Massimo personally.
Things which require discussion best sent here.
Issue
What website is it?
On May 19, 4:30 am, Yarko Tymciurak yark...@gmail.com wrote:
This is nonsense -
None of the contact information or registry about the site or domains is
true - all phone numbers, in registry and on the site itself are
disconnected numbers; no name this is registered
Heck, even his address listed on his website is nothing more than
the
address of teh Palo Alto US Post Office.
Granted, but he is using a Post Office box. So it would be proper to
use the address as presented. That being said, if he is a fraud and
uses the mails in any way, he could have the US
Hmm may be we can add an index=True option?
Even better have something like:
db.add_index('table', 'name_index_as', ['field1','field2'],
unique=True)
It'll add an index with multiple fields, unique=True is obviously
optional. However, this may be to much work, and may be focusing ont
he actual
http://www.trilancer.com/jpolite/#t1
--~--~-~--~~~---~--~~
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
Hello,
I need some more assistance or documentation.
look into the new welcome app. There are three menus defined in models/
menu.py They are used in views/layout.html. The CSS is from public
domain but there is a link to an article about it in static/base.css
* How I get a horizontal instead
There is no need to edit the CSS
instead of
{{=MENU(response.menu)}}
{{menu=MENU(response.menu)}}
{{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}}
{{=menu}}
On May 19, 10:34 am, Timmie timmichel...@gmx-topmail.de wrote:
Hello,
I need some more assistance or documentation. look
http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer
this module keeps tracks of cookies so each client is always served by
the same server and sessions can stay on the local filesystems. Only
the uploads folder needs to be cross (nfs?) mounted.
Massimo
http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer
this module keeps tracks of cookies so each client is always served by
the same server and sessions can stay on the local filesystems. Only
the uploads folder needs to be cross (nfs?) mounted.
Massimo
Massimo removed the website - no publicity to them - I will not repeat the
URL.
I wrote notes on ALL (and there are MANY) the different addresses, none of
which seem to be associated to any real name (and there are many names
things are registered under);
I decided NOT to post that here. I
On Tue, May 19, 2009 at 9:46 AM, JohnMc maruadventu...@gmail.com wrote:
Heck, even his address listed on his website is nothing more than
the
address of teh Palo Alto US Post Office.
Granted, but he is using a Post Office box. So it would be proper to
use the address as presented. That
A cron like set of functions for use on GAE. Might be of use to
someone here? a href=http://groups.google.com/group/httpmr-discuss/
browse_thread/thread/1648611a54c01aaurl/a
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I added some indexes using SQLite syntax:
db.executesql('CREATE INDEX IF NOT EXISTS me_indx_1 ON meet_event
(id_event);')
But I have to say, the database slowed down so much it actually made
the web pages time out! I have NO idea why declaring some indexes
would cause it to go slower. I
Forgot to add - you could probably make softcron work on GAE. I don't
use GAE at the moment, so I'm unable to verify, but in general it
certainly is a possibility.
On May 19, 6:33 pm, JohnMc maruadventu...@gmail.com wrote:
A cron like set of functions for use on GAE. Might be of use to
someone
On Sun, May 17, 2009 at 4:48 AM, annet annet.verm...@gmail.com wrote:
I explored web2py version 1.62rc2 and wonder why Auth, Crud and
Service are instantiated by default and why the needed table are
created by default.
I have a separate database application in which I define the none
I'm very much keen on extending web2py cron to GAE, but the proposed
solution in the link above does not seem reliable to me at all. I'd
say you're probably better off by external triggering from cron-sites.
On May 19, 6:33 pm, JohnMc maruadventu...@gmail.com wrote:
A cron like set of functions
Trying to make the web2py examples run out of the box on google apps
engine (sdk). It now runs almost all examples, only the purchase part
of the database not yet, anyone a suggestion for this?
The fixing might be a bit quickdirty, but I was after the results.
Index:
I turned jpolite into a web2py app.
https://www.web2py.com/jpolite
(there is a download link to the w2p file, requires web2py 1.62.1)
The form submission needs more work, perhaps you can help.
When that's fixed we can integrate with Auth and port T3 on this.
Massimo
Because the example we provide uses a JOIN and GAE cannot do JOINS.
Massimo
On May 19, 1:57 pm, Hans Donner hans.don...@pobox.com wrote:
Trying to make the web2py examples run out of the box on google apps
engine (sdk). It now runs almost all examples, only the purchase part
of the database
On 17-mei-2009, at 23:03, mdipierro wrote:
Massimo,
fixed. please check trunk and let me know.
Confirmed to have been fixed. Thanks for the impressive turn around
time (once again) :-)
--
Guido
--~--~-~--~~~---~--~~
You received this message because you
Is there something like this in python?
http://search.cpan.org/dist/Perlbal/
If not, anybody interesting in rewriting it in Python?
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework
I know GAE cannot do direct JOINS.
However, a modification in the table layout or a workaround on DAL
level should be possible I think (but I haven't had the time yet to
figure that one out yet).
On May 19, 9:10 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Because the example we provide uses a
Does the latest web2py Admin page now run on GAE so that we can
directly edit the .py files on the GAE file system, thereby doing all
web2py
dev in the cloud? Or is it still necessary to do development on a
private machine and then upload the modified app to GAE each time?
On May 19, 3:35 pm,
This is not possible because the GAE file system is readonly.
If you want to develop on gae, you must use T3. In that case pages are
stores in the DB and not on filesystem.
Massimo
On May 19, 2:46 pm, dlypka dly...@gmail.com wrote:
Does the latest web2py Admin page now run on GAE so that we
I turned jpolite into a web2py app.
https://www.web2py.com/jpolite
I can see how thrilled you are.
Courious to see your next level web2py app...
Will this also contain a JavaScript proxy?
http://faq.openlayers.org/proxyhost/how-do-i-set-up-a-proxyhost/
{{menu=MENU(response.menu)}}
{{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}}
{{=menu}}
Thanks.
I though I had to define the class in the controller.
This is really cool.
Thanks for that.
--~--~-~--~~~---~--~~
You received this message because you are
update for database_examples.py:
- small bug fixed for the gae_hack
- updated the form to work with dropdown boxes (also for non-gae)
Index: applications/examples/controllers/database_examples.py
===
---
How do I unzip the w2p file on Windows for this app?
Mike
On May 19, 12:06 pm, mdipierro mdipie...@cs.depaul.edu wrote:
I turned jpolite into a web2py app.
https://www.web2py.com/jpolite
(there is a download link to the w2p file, requires web2py 1.62.1)
The form submission needs more
Em Terça-feira 19 Maio 2009, às 12:58:08, mdipierro escreveu:
http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer
this module keeps tracks of cookies so each client is always served by
the same server and sessions can stay on the local filesystems. Only
the uploads folder
Hi
How do I unzip the w2p file on Windows for this app?
You don't have to. Just install the app via admin interface.
--
Kuba
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post
On Wed, May 20, 2009 at 5:06 AM, mdipierro mdipie...@cs.depaul.edu wrote:
I turned jpolite into a web2py app.
https://www.web2py.com/jpolite
Jaw dropping - just what I needed for my web app. Just when I was in
the process of integrating
http://www.dhtmlgoodies.com/index.html?page=dhtml-suite
On Mon, May 18, 2009 at 1:07 AM, mdipierro mdipie...@cs.depaul.edu wrote:
I have a better idea. A web2py app that provides:
- web pages for developers/contributors/users
- a database of projects (could replace appliances)
- a database of code snippets (could replace AlterEgo)
- a wiki
-
It is ok to ask.
Just upload a file, OR type an url(full http path to the w2p file), then
type the name under which your app will be installed.. submit your data..
and that is all. Your app is now installed, you can see it, edit, etc. from
your installed apps list.
On May 20, 2009 2:37 AM,
On Tue, May 19, 2009 at 8:00 PM, mikech mp.ch...@gmail.com wrote:
How do I unzip the w2p file on Windows for this app?
.w2p = .tar.gz
If you don't have web2py 1.62, rename .w2p to .tar.gz, gunzip it and
use app.tar as usual.
--
Álvaro Justen
Peta5 - Telecomunicações e Software Livre
21
Can you please email this to me? thanks
On May 19, 5:13 pm, HansD hans.don...@pobox.com wrote:
update for database_examples.py:
- small bug fixed for the gae_hack
- updated the form to work with dropdown boxes (also for non-gae)
Index: applications/examples/controllers/database_examples.py
cool thanks.
Massimo
On May 19, 6:06 pm, Douglas Soares de Andrade dsandr...@gmail.com
wrote:
Em Terça-feira 19 Maio 2009, às 12:58:08, mdipierro escreveu:
http://www.howtoforge.com/load_balancing_apache_mod_proxy_balancer
this module keeps tracks of cookies so each client is always
Massimo, can you please comment on the points that I mentioned. I'm still
interested in that solution and using out-of-trunc code is not very
convenient if upgrading.
There were 2 main points:
1) Is there recommended approach for _reusing_widgets_ generated by SQLFORM?
Current code contains
Yarko:
Thanks for the png's. My version says that I'm running 1.62.1 as
well, and that my version is current, but this is not what I see on
my
admin website. I'm running this under Vista. I guess my version must
be just slightly older than yours, unless this is a bug. I am working
with the
Ironically, I just finnished a school project I did for our journalism
students. They wanted to do this very thing, I set all this very stuff
up in jquery with a basic php page management system. I wanted to do it
in python, but I didn't know about web2py when I started the project.
Regards,
On Wed, May 20, 2009 at 1:00 AM, Michael Chean mp.ch...@gmail.com wrote:
This is what I see:
Ok, your web2py is updated but your admin app isn't.
Please remove applications/admin/* and uncompress admin.w2p inside it.
--
Álvaro Justen
Peta5 - Telecomunicações e Software Livre
21 3021-6001 /
I posted a new jpolite.w2p and not
FROM(,_class='ajaxform1')
end
SQLFORM(,_class=ajaxform1')
submit within the same box.
There is more thing that needs to be fixed, incorpprate web2py_ajax
into is for calendar, etc.
All these changes required/require modifying and code js
I am going to change this. This was new in version 1.62 and not really
well thought. In trunk now you can do
{{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}}
and this more in line with the syntax of other helpers. The syntax in
the previous example is gone.
massimo
On May
On Wednesday 20 May 2009 08:34:13 mdipierro wrote:
This is correct it is required to refresh a widget is the form
contains errors.
Ok, then there is certainly a bug in current code, just as I described.
Because it goes one level deeper that needed and puts new widget into old
one. I checked
On May 19, 11:37 pm, Alexey Nezhdanov snak...@gmail.com wrote:
On Wednesday 20 May 2009 08:34:13 mdipierro wrote: This is correct it is
required to refresh a widget is the form
contains errors.
Ok, then there is certainly a bug in current code, just as I described.
Because it goes one
Yes this better and it is in C, not perl.
Can you add a reference to this in AlterEgo?
Also the wiki should have a section on scalability and this should be
there.
Massimo
On May 19, 6:06 pm, Douglas Soares de Andrade dsandr...@gmail.com
wrote:
Em Terça-feira 19 Maio 2009, às 12:58:08,
The first step is writing a model about what we want to store.
Minimally I think:
- people (with an image and a profile page)
- file (with description, author*, timestamp*, revision number*)
- pages (with title, author*, timestamp*, revision number*)
* should be automatically generated.
Tim,
I do not get it. What does the JS proxy do?
Massimo
On May 19, 4:54 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote:
I turned jpolite into a web2py app.
https://www.web2py.com/jpolite
I can see how thrilled you are.
Courious to see your next level web2py app...
Will this also
60 matches
Mail list logo