Greetings all,
I've read the access control section in book a couple times over, and I
still can't completely figure out authorization. I want to do the
following:
I want to add all newly registered users to a specific group called
"users", which I have already created in auth_groups
I have anothe
I installed PyPy on a Mac. I discovered it needs openssl to run, so I
used MacPorts to install openssl and everything ran as expected. I
was able to run web2py.py under PyPy and the management interface
works perfectly! BUT...
I'm gettng a Sqlite3 error whenever I try to run a site:
Traceback
Denes and Alexandre,
Your replies were very helpful and helped me understand and solve the
problem, thanks.
Thadeus,
> Use the following class lined out in the wiki, works like a charm.
I will, in one of the next iterations. At the moment I am not yet
proficient enough in Python to completely
I have another question:
In case the user would like to view the html mail in his browser, I
have got the following line of code:
{{if not request.function=='browser_version':}}
Having trouble viewing this email? View
it in your browser
{{pass}}
I would like to use the same view, h
Hi,
I am hoping someone can help with this:
I have tables setup something like this (this is a simplified
representation):
db.define_table('Users',
Field('Name'))
db.define_table('Calls',
Field('CallerName'),
Field('CreatedBy', db.Users),
Field('HandledBy', db.Users))
I need to produce a query
Good questions:
1)
if not db(db.auth_group.role=='users').count():
db.auth_group.insert(role='users')
auth.settings.register_onaccept=lambda form:
auth.add_membership(auth.id_group('users'),form.vars.id)
2)
Not sure what you mean by file renaming. Can you explain more?
To keep track of down
Hello,
I'll have tried it again on a turnkey machine on a ESXi 3.5 machine.
But it returns the same error.
rm cannot remove 'web2py_src.zip*
This ain't strange, because you want to remove a file in an folder you
just created.
My suggestions are as following.
place the rm web2py_src.zip after u
created_by=db.Users.with_alias('created_by')
handled_by=db.Users.with_alias('handled_by')
rows =
db(db.Calls.id>0).select(db.Calls.ALL,db.created_by.name,db.handled_by.name,
left=[created_by.on(created_by.id==db.Calls.CreatedBy),
handled_by.on(handled_by.id==db.Calls.HandledBy)])
O
I also have an other suggestion.
Is it nog possible to search a community member to make a debian
package of web2py.
My suggestions are to make the following package structure.
- web2py_core.deb //Just web2py
- web2py_.deb // A web2py app package example
(web2py_cookbook.deb)
- mod_apache_wsgi_web
I think this is a great idea. Do you know any debian developer?
On Mar 20, 10:21 am, Mark Breedveld wrote:
> I also have an other suggestion.
> Is it nog possible to search a community member to make a debian
> package of web2py.
>
> My suggestions are to make the following package structure.
> -
No, but it's well documented.
So if we may not find any help, then i'll could try it on my own.
My first search results...
https://wiki.ubuntu.com/PackagingGuide
https://wiki.ubuntu.com/UbuntuDevelopment#Packaging
I'm also trying to launch it as a project on my school.
But it's a slow proces whic
Summary:
First, I'll speak in the context of a single instance of Rocket. I'll talk
about pound in a bit.
ApacheBench, which I used to test Rocket, unfairly accentuates the benefits of
Rocket. httperf allows for a much fairer test. The httperf configuration that
Kuba used tested a non-stand
The web2py community is searching help on debian / ubuntu packaging.
The are concrete plans to deploy web2py as Turnkey Appliance.
http://groups.google.com/group/web2py/browse_thread/thread/7a90b25eef35660e/215e9080c73c8049?hl=en&lnk=gst&q=turnkey#215e9080c73c8049
But in order to do this in a str
Incredible!! i didnt know kodingen...
El 20/03/2010 7:19, mr.freeze escribió:
It appears that Kodingen can run Django and Ruby apps. Someone with
strong Apache-fu should try to get web2py working :)
http://kodingen.com/?2010/01/27/get-ruby-working/
http://kodingen.com/?groups/django-on-kodingen
cache the mail and only access it if its no longer cached?
Or have a table that stores all sent mailings
sent_mail
-> bedrijf
-> message
You still query the database, but you have to store the info somewhere
at some point in time if it is to be accessed later.
-Thadeus
On Sat, Mar 20,
In my application I have a table npa which contains non-physical
addresses, i.e. telephone numbers, fax numbers, e-mail addresses etc.
that are displayed on business cards. This table has a field company
which references a table company. Initially I inserted addresses into
these tables which I got
Yarko did it! The new welcome with ez.css is in trunk. We still need
do add something to allow skinning and rearrange the css (right now we
have:
applications/welcome/static/base.css
applications/welcome/static/calendar.css
applications/welcome/static/ez-plug-min.css
applications/welcome/static/ez
DO the commands in 1) go into the db.py after auth=Auth(globals(),db) or
in a new controller that is created for user registration?
On Sat, 2010-03-20 at 08:03 -0700, mdipierro wrote:
> Good questions:
>
> 1)
>
> if not db(db.auth_group.role=='users').count():
> db.auth_group.insert(role='u
Thanks this is clear. I should clarify my position on this.
I always liked cherrypy because it is known to be fast and because
many use it to it has been tested. The problem with cherrypy is that
the code is not as clean as Rocket's.
I also like Rocket because its code is very clean and readable
I think this is an excellent idea. Can you take the lead on this? Do
you know any debian developer?
On Mar 20, 12:01 pm, Mark Breedveld wrote:
> The web2py community is searching help on debian / ubuntu packaging.
> The are concrete plans to deploy web2py as Turnkey Appliance.
>
> http://groups.g
On Mar 20, 2010, at 9:58 AM, Timothy Farrell wrote:
> Vasile Ermicioi, put in a vote for Rocket to be included in web2py because
> I'm in the web2py community and there is still plenty of room for Rocket to
> be optimized (which I noted).
I like the idea of built-in servers as plugins (not form
I am trying to figure out what it is? Is it a hosting provider with a
web based IDE? Is it a web based IDE can download and use?
On Mar 20, 12:01 pm, Alex Fanjul wrote:
> Incredible!! i didnt know kodingen...
>
> El 20/03/2010 7:19, mr.freeze escribi :
>
> > It appears that Kodingen can run Djang
You can put them in db.py after auth=..., or in a registration
controller or simply in the user() action. As long as they are
executed before the registration form runs.
Massimo
On Mar 20, 12:30 pm, Matthew McNaughton
wrote:
> DO the commands in 1) go into the db.py after auth=Auth(globals(),db)
tengo dos bases de datos distintas, la primera es la que se basa mi
aplicacion, y la segunda es la que crea auth, el problema es que
cuando le digo a auth que coja la informacion de un campo de la
primera base de datos, me dice que no conoce el nombre, aqui les pongo
el codigo y el error:
vul=DAL
Hi,
I have a several widgets in a file called widgets.py and would like to
use those widgets in db.py. Both db.py and widgets.py exist in the
models directory. However, when I use the widgets in defining table
fields in db.py, it does not recognize the widgets. How can I include
the widgets.py
disculpenme en donde dice:
auth_table.preference.requires=IS_NOT_EMPTY()
auth_table.second_preference=IS_NOT_EMPTY()
realmente dice:
auth_table.preference.requires=IS_IN_DB(vul,'object_vendors.id','object_vendors.name')
auth_table.second_preference=IS_IN_DB(vul,'object_products.id','object_prod
models are executed alphabetically. You have two options:
1) rename one of the files:
2) move the widgets to a module and import the module from db.py
On Mar 20, 12:56 pm, Avik Basu wrote:
> Hi,
>
> I have a several widgets in a file called widgets.py and would like to
> use those widgets in db.
kike:
Antes que nada, hay un grupo de usuarios en español:
http://groups.google.com/group/web2py-usuarios
(web2py-users es para consultas en inglés)
Respecto a tu problema, ¿donde estas definiendo la tabla object_vendors?
En el grupo en español se trato algo similar sobre como usar varias
bases
I just came across this:
http://www.csszengarden.com/
It is one simple html layout (only divs) with 210 PURE CSS skins:
http://www.mezzoblue.com/zengarden/alldesigns/
This could be an option for the welcome app. If we use their html, it
would be trivial to add a small admin option that
gracias nuevamente por la sugerencia, espero hacerlo bien esta vez,
sobre el problema con la BD, la BD sbdv "vul=DAL('mysql://
root:r...@localhost/sbdv',pool_size=20)", es una base de datos que ya
existe con anterioridad y la cual tiene 14 tablas, una de ellas es
object_vendors
On 20 mar, 13:19, M
I could add the form on the modal window but the date widget and time widget
is appearing out of the modal window... it's under the window. Is there a
way to put it to appear on the modal window?
Regards,
Tito
On Sun, Feb 21, 2010 at 11:29 AM, DenesL wrote:
>
> Adding person with ajax_create a
It's the former. Once you get an account, you can create and edit
projects and manage your web servers/databases/domains/etc. It looks
like it is mainly centered around php but there are options to enable
python. I tried using fastcgi but my Apache skills are weak.
On Mar 20, 12:39 pm, mdipierro
Here they have a longer list of >1000 designs:
http://www.mezzoblue.com/zengarden/alldesigns/others/
massimo
On Mar 20, 1:32 pm, mdipierro wrote:
> I just came across this:
>
> http://www.csszengarden.com/
>
> It is one simple html layout (only divs) with 210 PURE CSS skins:
>
> http://www
I think the ability to select a skin when creating an app would be a
major plus and help kick-start development for the design-impaired
such as myself.
On Mar 20, 1:32 pm, mdipierro wrote:
> I just came across this:
>
> http://www.csszengarden.com/
>
> It is one simple html layout (only divs)
I typically use the following naming convention
A_widgets.py
B_settings.py
C_web2py.py
D_db.py
-Thadeus
On Sat, Mar 20, 2010 at 1:17 PM, mdipierro wrote:
> models are executed alphabetically. You have two options:
> 1) rename one of the files:
> 2) move the widgets to a module and import th
Its based off of bespin
-Thadeus
On Sat, Mar 20, 2010 at 1:39 PM, mr.freeze wrote:
> It's the former. Once you get an account, you can create and edit
> projects and manage your web servers/databases/domains/etc. It looks
> like it is mainly centered around php but there are options to enab
I envision having an app create wizard, you select a layout (based on
ez-css), and then select a skin for the layout. :)
-Thadeus
On Sat, Mar 20, 2010 at 1:50 PM, mr.freeze wrote:
> I think the ability to select a skin when creating an app would be a
> major plus and help kick-start developm
Very interesting! but my apache skills are weak too :(
On Sat, Mar 20, 2010 at 3:52 PM, Thadeus Burgess wrote:
> Its based off of bespin
>
> -Thadeus
>
>
>
>
>
> On Sat, Mar 20, 2010 at 1:39 PM, mr.freeze wrote:
> > It's the former. Once you get an account, you can create and edit
> > projects
OK -- more info.
I discovered that sqlite3 was not being loaded by sql.py in gluon.
The library must be structured oddly because it wants something like:
from sqlite3 import dbapi2 as sqlite3
After hacking sql.py in this fashion, pypy ran perfectly! ...for
about 30 seconds!
After that time, I
Has anyone here heard of or used gevent? It is a co-routine based
Python network library that exposes a lean interface to the libevent
library. Based on the small amount of reading I have done so far, it
kicks major @ss on other WSGI implementations.
Blog for gevent:
http://blog.gevent.org/
Ben
Are you thinking about this post?:
http://groups.google.com/group/web2py/browse_frm/thread/4aaa3846a2e5e68a/
Does GAE support 'substring'? A bug in Field.__getslice__ was recently
fixed so you may want to try the latest from mercurial.
I think you want:
query = db(db.table.string_field[-4:] == ".
On Mar 20, 12:25 pm, mdipierro wrote:
> Yarko did it! The new welcome with ez.css is in trunk. We still need
> do add something to allow skinning and rearrange the css (right now we
> have:
>
> applications/welcome/static/base.css
> applications/welcome/static/calendar.css
> applications/welcome/s
ALL POWER I CAN GET FROM quad core Xeon @ 2.33GHz
ONLY SOME STABLE RECORDS HERE:
Request rate: 929.0 req/s (1.1 ms/req) QUAD CHERRYPY
Request rate: 877.6 req/s (1.1 ms/req) QUAD ROCKET
Request rate: 1478.0 req/s (0.7 ms/req) CHERRYPY SOLO
Request rate: 1544.2 req/s (0.6 ms/req) ROCKET SOLO
QUAD
On Mar 20, 12:36 pm, mdipierro wrote:
> Thanks this is clear. I should clarify my position on this.
>
> I always liked cherrypy because it is known to be fast and because
> many use it to it has been tested. The problem with cherrypy is that
> the code is not as clean as Rocket's.
>
> I also like
On Mar 20, 4:50 pm, Yarko Tymciurak
wrote:
> On Mar 20, 12:36 pm, mdipierro wrote:
>
>
>
> > Thanks this is clear. I should clarify my position on this.
>
> > I always liked cherrypy because it is known to be fast and because
> > many use it to it has been tested. The problem with cherrypy is th
On Mar 20, 1:53 pm, Thadeus Burgess wrote:
> I envision having an app create wizard, you select a layout (based on
> ez-css), and then select a skin for the layout. :)
Well - aside from ez-css using classes, and the things I've looked at
@ zengarden seem to use id's (so javascript can refer to th
Having said this, the zengarden shows how to accomplish some standard
naming, and now to switch css to affect things
That by itself is quite useful - and worth (for me at least) more
closely...
On Mar 20, 1:53 pm, Thadeus Burgess wrote:
> I envision having an app create wizard, you select a
> ach! I meant to say: web2py.com
nice one.
yes. stability and funcionality over speed. I just wanted to learn
where are the borders(and how to benchmark properly).
--
Kuba
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to
Hello,
i'm designer and before of that a human being, so i wonder: why make
web2py less human readable?
what's "ez-negmr" "ez-50"??
the semantic of the most css framework is a problem, because they
haven't.
...On the other hand:
To have fewer elements is simpler to understand when you start
Massimo, for what I could figure out it's an IDE on the Cloud, where you
can also Install open source web applications/solutions with the
easiness of one click... I tend to be very skeptic with this things, but
anyway it's impressive!!
alex
El 20/03/2010 18:39, mdipierro escribió:
I am tryin
Gracias Mariano, no conocía la existencia del grupo en español...
alex
El 20/03/2010 19:19, Mariano Reingart escribió:
kike:
Antes que nada, hay un grupo de usuarios en español:
http://groups.google.com/group/web2py-usuarios
(web2py-users es para consultas en inglés)
Respecto a tu problema, ¿d
easy negative margin ??
easy 50 % width ??
I agree, I wish the class names were more "human", OTOH, with only a
handful of classes it is not much to learn.
-Thadeus
On Sat, Mar 20, 2010 at 6:57 PM, Pepe wrote:
>
> i'm designer and before of that a human being, so i wonder: why make
> web2
Well... the quickest way to change layouts is to store the
configuration in the database...
So have a table for web2py meta information, that contains
"current_layout" which is value is "layout.html" or "mynewlayout.html"
etc etc.
In all views instead of {{ extend "layout.html" }} it will be {{
e
the web2py-book registration mail was sorted in the spam folder,
because "the mail was not send from the real mailserver of the
sender." (real: web2py.com, sendfrom: ..depaul.edu)
at http://web2py.com/book/default/section/3/10 the category must be
called "versioning" and not "mercurial", because t
thank you too ( for web2py :)
On 14 Mrz., 21:14, mdipierro wrote:
> fantastic. I am uploading the solution to trunk. Thank you.
>
> On Mar 14, 11:44 am, Joschua wrote:
>
> > I looked into the python documentation and find DocTestFinder:
>
> >http://pygments.org/demo/3361/?style=fruity
>
> > My s
On Mar 20, 2:58 pm, Joe Barnhart wrote:
> OK -- more info.
>
> I discovered that sqlite3 was not being loaded by sql.py in gluon.
> The library must be structured oddly because it wants something like:
>
> from sqlite3 import dbapi2 as sqlite3
Can you send me the patch?
> After hacking sql.py
I am assuming that in all your tests you did not use web2py. I am
assuming you just tested some "hello word" wsgi application. You can
find gluon/sneaky.py in the web2py source and there is a wsgi hello
world example in there.
Massimo
On Mar 20, 4:07 pm, Kuba Kucharski wrote:
> ALL POWER I CAN G
> I am assuming that in all your tests you did not use web2py. I
wrong assumption. I even published my model&controller at the
beginning of this thread.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...
oops. Sorry. It would be interesting to know how much overhead does
web2py add.
On Mar 20, 7:44 pm, Kuba Kucharski wrote:
> > I am assuming that in all your tests you did not use web2py. I
>
> wrong assumption. I even published my model&controller at the
> beginning of this thread.
--
You recei
Just for fun:
http://web2py.com/zengarden
then click on the [zengarden] link under the menu, under the "index"
link. You can change the skin per user, per session.
This is a bare bone welcome app with the layout
http://web2py.com/zengarden/static/layout.html
Problem: all zengarden layouts
I have two databases, the first was created by auth, and the second is
a database with 14 tables, created previusly.
Traceback (most recent call last):
File "/home/kike/sbdv/web2py/gluon/restricted.py", line 173, in
restricted
File "/home/kike/Desktop/web2py/applications/SBDV/models/db.py",
li
I have two databases, the first was created by auth, and the second is
a database with 14 tables, created previusly.
Traceback (most recent call last):
File "/home/kike/sbdv/web2py/gluon/restricted.py", line 173, in
restricted
File "/home/kike/Desktop/web2py/applications/SBDV/models/db.py",
li
Hi,
I've created several forms using LOAD function... These forms has 1 field
using AutocompleteWidget but this widget only works if there is just 1 form
on the page...
Is that expected?
Regards,
Tito
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_
I have tried to beautify my application with some standard template. I
cannot get the "Joomla Template" appliance to work, nor does the
instructions in the following seem to work:
http://www.web2py.com/AlterEgo/default/show/167
I was testing the a Joomla 1.5 template from here:
http://joomportal.
you expect overhead from this? ;)
def benchmark2():
return dict(data="test")
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py
There may be because of the extra logic for parsing http headers,
looking for models, controllers, views etc.
I do not know. It would be nice to quantify the web2py overhead.
Massimo
On Mar 20, 8:57 pm, Kuba Kucharski wrote:
> you expect overhead from this? ;)
>
> def benchmark2():
>
> retur
That appliance is very old and turned out not to be very popular. It
can only partially convert joomla templates. You still need to work on
them manually. It only works on some templates.
On Mar 20, 8:53 pm, Al wrote:
> I have tried to beautify my application with some standard template. I
> cann
It should work with multiple fields as long they have different
names.
On Mar 20, 8:41 pm, Tito Garrido wrote:
> Hi,
>
> I've created several forms using LOAD function... These forms has 1 field
> using AutocompleteWidget but this widget only works if there is just 1 form
> on the page...
>
> Is
Nice :)
-Thadeus
On Sat, Mar 20, 2010 at 8:27 PM, mdipierro wrote:
> Just for fun:
>
> http://web2py.com/zengarden
>
> then click on the [zengarden] link under the menu, under the "index"
> link. You can change the skin per user, per session.
> This is a bare bone welcome app with the layo
I do not understand. db and vui connect to the same database. why not
"vui=db"? Are they defined in two different applications? If they are
defined in the same applications db and vui should be the same
connections else they will not see each other tables.
On Mar 20, 8:38 pm, kike wrote:
> I have
On Mar 20, 6:57 pm, Pepe wrote:
> Hello,
>
> i'm designer and before of that a human being, so i wonder: why make
> web2py less human readable?
>
> what's "ez-negmr" "ez-50"??
ez: the prefix that identifies it as ez-css;
negmr, as Thadeus correctly pouinted out, is negative margin, and 50
db = DAL('mysql://root:r...@localhost/usbdv',pool_size=20)
vul=DAL('mysql://root:r...@localhost/sbdv',pool_size=20)
They're different. Does he need to do fake_migrate to make the .table
files?
On Mar 20, 10:23 pm, mdipierro wrote:
> I do not understand. db and vui connect to the same database.
On Mar 20, 8:27 pm, mdipierro wrote:
> Just for fun:
>
> http://web2py.com/zengarden
>
> then click on the [zengarden] link under the menu, under the "index"
> link. You can change the skin per user, per session.
> This is a bare bone welcome app with the layout
:-) Lvely!!! :-)
>
> h
73 matches
Mail list logo