Hello!
In the middle of November Massimo wrote:
"this will be the top priority after web2py 2.0 is released and the
book 4th edition. By the end of November."
in regard to working on some decent CMS for web2py.
Due to some other engagements, I was not following the group closely,
but afaict, th
web2py runs on Android - I've tested it with my Motorola Defy. The only
problems, I discovered until now concerns the cache:
1. gluon/cache.py uses the python standard library shelve. And shelve on
Android uses dumbdbm instead of anydbm as normally on unix systems, this
leads to problems in crea
Hi All,
I've been asked to give a short talk on web2py for a local Python user
group.
One thing that I am a little intimidated by is that some of these guys
have been exposed to the tribal nonsense that somehow seems to keep
rearing its ugly head, and so I'm concerned to anticipate the sorts of
q
http://wingware.com/doc/howtos/web2py
On Sun, Jan 15, 2012 at 12:39 PM, glimmung wrote:
> Hi All,
>
> I've been asked to give a short talk on web2py for a local Python user
> group.
>
> One thing that I am a little intimidated by is that some of these guys
> have been exposed to the tribal nons
An open source integrated software for development with RAD and
support for web2py is being developed by M. Reingart here:
http://code.google.com/p/rad2py .He participates in this group, so
maybe he can explain in more detail the features of the project.
On 15 ene, 08:39, glimmung wrote:
> Hi All
Movuca is a social network engine, but it is also a CMS.
It is intended to be generic and customizable, you can create themes,
contenttypes etc...
If someone do not want the social features such as, user profiles, likes,
dislikes, follows and boards.
With one click in config and some chsnges in
Hi Alan,
On Sun 15 Jan 2012 12:37:26 GMT, Alan Etkin wrote:
An open source integrated software for development with RAD and
support for web2py is being developed by M. Reingart here:
http://code.google.com/p/rad2py .He participates in this group, so
maybe he can explain in more detail the featur
Dear All ,
What is The deference between router.example and routes.example ??
and how can i use this :
domains = { "domain.com" : "app",
"x.domain.com" : "appx",
},
That will work (at least worked in develepment with Gmail).
Beware that a new mail account login and mailbox list query is made on
each request to construct a working dal instance. This adds a lot of
network traffic and may raise bandwidth and account limit issues when
reaching a given usage, main
On Sun, 15 Jan 2012 10:47:31 -0200
Bruno Rocha wrote:
> Movuca is a social network engine, but it is also a CMS.
OK.
> It is intended to be generic and customizable, you can create themes,
> contenttypes etc...
This sounds good.
New contentypes are sort of plugins or something else?
> If som
Thanks Bruno, I am now experimenting with it.
Probably worth mentioning for the benefit of others that changing a line in
controllers/setup.py was sufficient to get things initially going:
config = Config(autogetconfig=False)
to
config = Config(autogetconfig=True)
content types are "posts" but you can customize the fields it has to store
in db. and customize the new/edit/show views.
you can also include specific methods for each content type
you can specify how a content type will be listed and its privacy options.
the idea is to have content types create
it will get the config values bypassing the cache.
config is in a sqlite db, so it is cached for 300s (the expiration is a
config option and you can change it)
because of that I have the setup/install (which needs a interface)
you can reload the cache with setup/reload
http://zerp.ly/rochacbru
Hello,
when will we have good quality videos screencasts of web2py?
Going from beginner to expert?
I ran into a lot of screencasts like peepcode, codeschool. This guys are
very good,but for RAILS, not for web2py.
When it comes to web2py i only run into Massimo videos.And those are not
the school
2012/1/15 António Ramos
> Hello,
> when will we have good quality videos screencasts of web2py?
> Going from beginner to expert?
>
> I ran into a lot of screencasts like peepcode, codeschool. This guys are
> very good,but for RAILS, not for web2py.
>
> When it comes to web2py i only run into Mass
what about this http://www.youtube.com/playlist?list=PL5E2E223FE3777851
I have 36 videos but it is all in portuguese and part of
cursodepython.com.br
I am planning to include english subtitles or record new with my bad
english pronunciation.
BTW it is not all free, I released some free but the m
On Sun, Jan 15, 2012 at 9:55 AM, Bruno Rocha wrote:
> what about this http://www.youtube.com/playlist?list=PL5E2E223FE3777851
>
> I have 36 videos but it is all in portuguese and part of
> cursodepython.com.br
>
> I am planning to include english subtitles or record new with my bad
> english pron
eclipse + pydev + webtools
http://pydev.org/
That is all Aptana uses anyway.
On Sun, Jan 15, 2012 at 4:59 AM, Philip Kilner wrote:
> Hi Alan,
>
>
> On Sun 15 Jan 2012 12:37:26 GMT, Alan Etkin wrote:
>
>> An open source integrated software for development with RAD and
>> support for web2py is bei
dont confuse
http://codeschool.org
with
http://www.codeschool.com
2012/1/15 Javier Quarite
>
>
> On Sun, Jan 15, 2012 at 9:55 AM, Bruno Rocha wrote:
>
>> what about this http://www.youtube.com/playlist?list=PL5E2E223FE3777851
>>
>> I have 36 videos but it is all in portuguese and part of
>> curs
Hi Andrew,
> its not perfect I am sure :-P
but in line with the rest of the site ;-)
I just noticed that now matter which function you visit, the active
menu item always is "home".
Kind regards,
Annet
2012/1/15 António Ramos
> dont confuse
> http://codeschool.org
> with
> http://www.codeschool.com
>
>
>
I subscribed to codeschool.org two months ago and its very impressive
On Sun, Jan 15, 2012 at 10:23 AM, Javier Quarite wrote:
>
>
> 2012/1/15 António Ramos
>
>> dont confuse
>> http://codeschool.org
>> with
>> http://www.codeschool.com
>>
>>
>>
> I subscribed to codeschool.org two months ago and its very impressive
>
>
jajaja I made a mistake ... codeshool.com, my
why wont Massimo use the "Force" to include web2py in Codeshool.com
:)
2012/1/15 Javier Quarite
>
>
> On Sun, Jan 15, 2012 at 10:23 AM, Javier Quarite wrote:
>
>>
>>
>> 2012/1/15 António Ramos
>>
>>> dont confuse
>>> http://codeschool.org
>>> with
>>> http://www.codeschool.com
>>>
>>>
>>>
>>
2012/1/15 António Ramos
> why wont Massimo use the "Force" to include web2py in Codeshool.com
>
> :)
>
>
:) +1
I guess because envylabs is related only to ruby on rails, (you should see
the ads on youtube: RoR vs PHP, NET, etc etc etc)
Thank you Denes. I understood and this works fine at shell.
At web-application, I use the below code,
form = crud.create(db.entries,
next = URL('index'))
This gets me a simple text field for the 'list:string' field and whatever I
enter gets in as,
'one,two,three'
I tried to enter ['one','two'
You can now do:
from gluon import *
to import the entire API (except for request, response, session, and T,
which are on the "current" object).
I think something like this should get you code completion:
if 0:
from gluon import *
from gluon.globals import *
request = Request(); res
routes.example.py is an example of the pattern-based rewrite system, and
router.example.py is an example of the parameter-based system (which
specifies "routers" -- hence the filename). Maybe we should rename these to
something like:
routes.pattern_example.py
routes.parameter_example.py
See ht
>
> I frequently hear people running into trouble running Apache and/or Python
> on Windows. I'd strongly suggest developing against the Windows download
> and then deploying on *nix.
>
I don't know about Apache, but there should be no problem running the
source version of web2py on Windows al
Hi,
I was able to resolve this, it was an issue with PCBSD(freebsd 9) it self
the python 2.7 port was broken, and that caused py-sqlite3 to fail on
install. I updated the ports and installed py-sqlite3 everything is working
as expected now.
On Sat, Jan 14, 2012 at 10:50 PM, Bruno Rocha wrote:
>
On Jan 15, 2012, at 8:52 AM, Anthony wrote:
> routes.example.py is an example of the pattern-based rewrite system, and
> router.example.py is an example of the parameter-based system (which
> specifies "routers" -- hence the filename). Maybe we should rename these to
> something like:
>
> rout
in the crud form you by default see a single input box for the list of
strings right? type the first string, press enter, and a new input box
should appear, type the next string and so on.
the default widget for list strings has a bunch of keyboard actions to
create the list items, but i found
Hi Alan!
If you want to test it with a pc simply resize the browser window, when the
windows is of a certain size, it triggers the responsive reflow of tables.
Images works same way, but you have to refresh the page to get the resized
image, I'll add this instructions to page!
Angelo
2012/1/15 A
Oh ya ty
will fix that and will make the template easier to maintain today using
{{include "nav.html"}} etc
*cheers
On Sun, Jan 15, 2012 at 7:20 AM, Annet wrote:
> Hi Andrew,
>
> > its not perfect I am sure :-P
>
> but in line with the rest of the site ;-)
>
> I just noticed that now matter w
i am using routes.py to clean my urls now i want to route every domain
to its website , how can i do that exactly ?
According to the book, in routes.py, you can include:
routers = dict(
BASE = dict(
domains = {
'domain1.com' : 'app1',
'domain2.com' : 'app2',
}
),
)
Note, if you are using the parameter-based system (as above), you cannot
also use the pattern-based system.
are you saying that i cant use routes_in , routes_out with
domains ??
I think Movuca can be the revolution. It may be all in one, Twitter,
Facebook, Wordpress, gTalk, Blave. If each one has an idea of how to
integrate all in one would cut as many web pages open, it needs to performance
tests to see if all the media protocols are supported at the same time.
On Jan 15, 2012, at 11:46 AM, Web2Py Freak wrote:
> are you saying that i cant use routes_in , routes_out with
> domains ??
Only if you do your own domain mapping in routes_in & routes_out.
Hi all, once again I turn to you with my latest question.
I have a self-referencing table:
db.define_table('accounts',
Field('name','string'),
Field('parent_account','reference accounts'),
Field('account_type','string'))
What I'm trying to achieve i
i dont understand ,can explain some more please ?
Hello,
I have a select crud, with a URL in the column id.
If I click 'edit', I should be redirected to a page, where I can
update the concerned contact_part record.
(as in a grid)
What should I put between the URL brackets ? _href=URL()
How do I pass the selected record ?
My code :
tabl
No. That suggests you should migrate one field at the time to play it
safe. When you are confortable with migrations then you can make more
complex migrations.
On Jan 15, 1:19 am, Likit wrote:
> ...which I did...
>
> Ummm... that sort of suggests I might as well ALWAYS set
> migrate=False in my
+1
On Jan 15, 1:21 am, pbreit wrote:
> Migrations are pretty powerful but problems can arise. As I've suggested
> elsewhere, best to develop against SQLite and then deploy as desired. In
> development, I change models frequently. If I run into a problem that I
> can't fix with migrations, I might
Nice. perhaps we could by-pass shelve and provide out own
implementation based on sqlite. Actually I have this coded already...
pros, cons?
On Jan 15, 4:28 am, Nik Klever wrote:
> web2py runs on Android - I've tested it with my Motorola Defy. The only
> problems, I discovered until now concerns t
If running a web2py shell, how can model files within controller
subdirectories be made available in the environment?
For example if we have these two model files:
myapp/models/db.py
myapp/models/acontroller/db_controller.py
Then when launching web2py using:
$> python web2py.py -S myapp -M
Typi
I guess you can do inside the web2py shell environment.
>>> execfile("applications/myapp/models/acontroller/somefile.py")
Not tested, but should work.
if you are using Ipython, doing
>>> edit path/to/file and then exit saving the file the file is also
executed
On Sun, Jan 15, 2012 at 7:55 PM,
If you do
execfile('applications/app/controllers/default.py')
you will expose them all. The problem is that they may have logic like
@auth.requires_login() decorators which may prevent you from calling
those functions.
If you want to do this better you should define make the controllers
delegate
I guess he wants to exec a submodel, not a controller!
On Sun, Jan 15, 2012 at 8:54 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> If you do
>
> execfile('applications/app/controllers/default.py')
>
> you will expose them all. The problem is that they may have logic like
> @auth.req
Thank you. I continued using the demo and could see the resizing
effect. Really impressing. It would be interesting to have a way to
activate/deactivate this feature transparently by default in the
scaffolding application with a simple function call or a Settings
attribute.
On 15 ene, 14:32, Angel
Thanks, all. This is closed.
I am progressing to more deployment complexity:
locally develop on xampp with apache and mysql; occasionally run
rocket/sqlite if I can't figure things out
move things to SuSE server in my office and access behind firewall on
own network
move things to Linode (probabl
I am starting simple:
- develop locally on xampp/mysql; try things out on rocket/sqlite if I
can't figure something out
- move to SuSELinux server in my office and access across lan
- move to linode probably on centos for the real world after things
really, really work
I commented out caching deco
I put this in my model file and it did exactly what I wanted. Thanks!
Is there a reason my attempts to use sys.excepthook failed? This was
my test code, which triggered the normal web2py exception handling,
which pointed to the "raise" line:
--
import sys
def handler(t, v, tb):
redirect("http:/
Does your Apache httpd log show any further details?
Are you using routes.py file?
What in your /web2py directory is currently different from a clean install?
Is it still the case the your apps are working fine and it is only the
examples app that is erroring? COuld you try making a copy of exa
Have you considered developing against rocket/sqlite?
CentOS should be fine. I've seen a lot of people happy with Ubuntu (10.04
or the latest). I've found Ubuntu to be easy to work with with lots of help
available.
My sense is that few Python programmers use IDEs (I don't know any that
do). If it's a brief talk, I'd suggest just using the file system and a
good text editor and moving quickly to some of the great features of
Web2py. If someone complains about code completion, you can say it's
possible (wit
I was thinking about the form validation.
I thought that it may be useful to include an "error" class on the input
widget when the form is submitted and has invalid data.
ie.
from
too short
to
error"type="password"value=""name="password">
too short
Notice the error is the class of t
Hello I just updated web2py and after restarting uwsgi I get an error on my
site
ValueError: invalid literal for int() with base 10: '05 04:36:30'
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
Traceback (most recent call last):
File "/opt/web2py/gluo
This is my code for that page
def index():
schedule =
db(db.schedule.date==request.now.strftime("%Y-%m-%d")).select(orderby=~db.schedule.date)
episodes = db(db.episodes.id>0).select(orderby=~db.episodes.created_on)
categories = db(db.episode_categories.id>0).select()
trailers = d
Thank you. It works.
Just for completeness: I had designed a layout from scratch and hence had
left out web2py_ajax.html. For this widget to work, it is essential that
this file is included.
Regards,
Joseph
Thanks Massimo, you were great's people..
1. if we read from file resulted from redirected stdout, i think that
we get complete output finally, not ongoing process output ??
that was right, Massimo ?? correct me if i'm wrong ..
2. if we are using popen (popen2 or whatever), first arguments was
cm
>
> Is there a reason my attempts to use sys.excepthook failed? This was
> my test code, which triggered the normal web2py exception handling,
> which pointed to the "raise" line:
>
> --
> import sys
> def handler(t, v, tb):
> redirect("http://example.com";)
> sys.excepthook = handler
>
When running the shell, the app can actually be in a/c/f format, so try:
$> python web2py.py -S myapp/acontroller -M
That will execute the acontroller.py controller when starting up the shell,
so it will also execute any acontroller specific models as well. If you
specify myapp/acontroller/afun
On Sunday, January 15, 2012 3:36:59 PM UTC-5, Web2Py Freak wrote:
>
> i dont understand ,can explain some more please ?
In routes.py,
router = dict(...)
and
routes_in = (...)
routes_out = (...)
are mutually exclusive -- if you want to use a router, you cannot also use
routes_in/routes_out, a
>
> db.define_table('accounts',
> Field('name','string'),
> Field('parent_account','reference accounts'),
> Field('account_type','string'))
>
> What I'm trying to achieve is to create a tree-like structure. So we have
> 5 "root" accounts, which can
I need to migrate to new server. How is the best way to export auth_user
data from the old and import to the new database and all username/passwords
to be used with no change?
Have you looked
at http://web2py.com/books/default/chapter/29/6#Exporting-and-importing-data?
On Monday, January 16, 2012 2:00:51 AM UTC-5, thstart wrote:
>
> I need to migrate to new server. How is the best way to export auth_user
> data from the old and import to the new database and all usern
Hi Alan,
If you use the plugin_responsivekit, simply remove conditional import (or
comment it) in plugin_responsivekit/layout.html :
var width_filter = '{{=current.plugins.responsivekit.screensize_filter}}'
var controller = '{{=URL(a=request.application,
c=current.plugins.responsivekit.
67 matches
Mail list logo