Some interesting ideas are coming as a result from my temper tantrum.
I adjusted my settings per Massimo's suggestion, but I like the
direction this has taken. It would be nice to come up with a better
alternative than session expired, you lose!
Hi all,
I've completed a French translation and emailed it to Massimo. This
translation should cover fr, fr-fr and fr-ca.
P.S. I got the language-country codes from these sources:
http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
http://en.wikipedia.org/wiki/List_of_NATO_country_codes
Hi Cephire,
On Feb 18, 10:48 am, Cephire ceph...@gmail.com wrote:
Is there any step-by-step guide for a newbie?
Try these sources:
http://mdp.cti.depaul.edu/AlterEgo/default/show/186
http://mdp.cti.depaul.edu/AlterEgo/default/show/138
http://mdp.cti.depaul.edu/AlterEgo/default/show/199
If
everything is debatable: only side thing I can argue is that helpers
are objects related to markup and I do not like them mingled with
logic. But that's philosophy I agree.
The main real point is that if you want to share your work with html
designers, you can not use helpers at all. Your
Hi buddies,
Web2py's dal supports many db backend such as SQLite, PostgreSQL,
MySQL, MSSQL, FireBird and Oracle, mentioned at web2py homepage. But
when I run web2py from web2py_win.zip, I only see:
Database drivers available: SQLite3, MySQL
So:
1. Do I have to manually install pyodbc if I
SearchableModel is workable as long as you have 1 or at most 2 words
in the search, otherwise the indexes 'explode' in size. You should be
able to mark a field as non-indexed, and non-ascii fields should be
non-indexed by default. If there were some doctests, this could be
added to gql.py.
Thanks Jonathan. I am able to host a web2py app in a local appengine.
Haven't yet tried uploading though; will do after reading through all
of the links you have sent.
Quick question: by default it goes to the welcome application (when I
type http://localhost:8080). how do i direct to my
To use the other drivers you need to
1) install Python 2.5
2) install the driver you need
3) Run web2py from source
We cannot easily distribute the drivers with the binary version yet.
Massimo
On Feb 18, 8:30 am, Iceberg iceb...@21cn.com wrote:
Hi buddies,
Web2py's dal supports many db
call you app init or make an app init the with
def index(): redirect(yourapp)
On Feb 18, 8:43 am, Cephire ceph...@gmail.com wrote:
Thanks Jonathan. I am able to host a web2py app in a local appengine.
Haven't yet tried uploading though; will do after reading through all
of the links you have
A helper object can be used almost identically to a list. Helpers
being able to 'render' themselves and including additional data (to
ensure compliance, etc) is just a bonus for rapid prototyping. If you
*depend* on rendering (and you need to hand that over to a design
person), then you are
Hello:
Thank you Massimo for your help!!!
I understand your point, But I have a problem, for example I have
different application that use the t2 module, and some of this
application can use the same language file, the question will be how
to make one language file that can be used for all the
look into web2py/scripts/sync_languages.py
it merges the language files of two applications so that you only need
to translate once and copy it over.
Massimo
On Feb 18, 10:00 am, b-global.net bglobal...@yahoo.com.mx wrote:
Hello:
Thank you Massimo for your help!!!
I understand your point,
Thanks, this is exactly what I needed. These functions are just
workers, and have nothing to do with sessions, hence it should be safe
to unlock it.
Thanks, web2py rocks! :)
On Feb 18, 4:22 pm, mdipierro mdipie...@cs.depaul.edu wrote:
web2py built-in server is multithreaded even without the -n
If you are not using sessions at all, do not unlock them. Use instead
session.forget()
It will also make your code faster.
Massimo
On Feb 18, 10:10 am, Tamas tma...@gmail.com wrote:
Thanks, this is exactly what I needed. These functions are just
workers, and have nothing to do with
Hi, I saw the new t3 Version 0.4 (2009-02-05 09:36:05) but I didn't
saw any change in backup/restore funtion of t3.
Can you help me i want to fix the bug because i want to migrate the
database?
I use t3 Version 0.4 (2009-01-07 09:01:19) and web2py 1.55.2 in
a website in production enviroment.
On page 174 of the web2py manual there's an example of links to
referencing records. Half way the page it reads:
When editing an existing person the appadmin UPDATE form shows a link
to a page that lists the dogs that belong to the person.
I am currently working in web2py 1.56.2 in which
I read the posts above, I had the same problem, but discovered that
after logging back in I could use the back button of my browser to
return to the page I wanted to save, and save it. I know this is far
from an elegant solution, and I haven't tried it on a production
server, however, it
Actually, I found I could _not_ use the back button to recover my
(extensive) edits. As soon as I logged in and pressed tbe back
button, it refreshed the page to the stored version, losing my changes
forever. Then I threw myself on the ground and had a good tantrum.
(Later I found my code
It is a bug introduced in 1.55
fixed in trunk
On Feb 18, 11:10 am, annet jmverm...@planet.nl wrote:
On page 174 of the web2py manual there's an example of links to
referencing records. Half way the page it reads:
When editing an existing person the appadmin UPDATE form shows a link
to a
What would be a better solution?
Massimo
On Feb 18, 11:29 am, annet jmverm...@planet.nl wrote:
I read the posts above, I had the same problem, but discovered that
after logging back in I could use the back button of my browser to
return to the page I wanted to save, and save it. I know this
Massimo, Fran, Paul and Markus,
Thanks for your replies, they were all very useful.
Annet
On 13 feb, 17:16, Fran francisb...@googlemail.com wrote:
On Feb 13, 2:38 pm, Markus Gritsch m.grit...@gmail.com wrote:
Better create a file views/default/user.html with the following content:
A
Hi,
Using the new auth system from gluon/tools.py I found a problem.
My app is like this:
model/db.py:
...
auth = MyAuth(globals(), T, db
auth.settings.lock_keys = False
auth.settings.login_next = URL(r=request, c='default', f='index')
auth.settings.login_url = URL(r=request, c='control',
In the former case (the wrong one) is there a hidden field called
_next in the generated html? What does it say?
On Feb 18, 12:42 pm, Abner abner.jacob...@gmail.com wrote:
Hi,
Using the new auth system from gluon/tools.py I found a problem.
My app is like this:
model/db.py:
...
auth =
I see the following as a proper solution:
* When the session does expire and end users are presented with a
login form, logging in should save the content. This can be done by
putting the content etc in hidden input fields for example.
And more suggestions (would be nice to have):
1. Providing
Yes, excellent suggestions. I think ajax keepalive is the easiest
solution.
Massimo
On Feb 18, 12:16 pm, Sandro Gauci sandrog...@gmail.com wrote:
I see the following as a proper solution:
* When the session does expire and end users are presented with a
login form, logging in should save
Yes, in the logn form I have:
input name=_next type=hidden value= /
On 18 fev, 15:58, mdipierro mdipie...@cs.depaul.edu wrote:
In the former case (the wrong one) is there a hidden field called
_next in the generated html? What does it say?
On Feb 18, 12:42 pm, Abner abner.jacob...@gmail.com
On Feb 18, 7:43 pm, carlo syseng...@gmail.com wrote:
Working in team they are almost useless: the html code is usually the
source for your logic not a product to pass designers. You get html
static pages with style and putting in some logic is your business.
I guess I'm just terrible at
As I understand currently web2py license hangs between GPL and LGPL
(more on GPL though).
I have seen some fantastic initiatives here like linking web2py to
pyjamas-desktop. This way web2py can be used (possibly) for desktop
apps too ! But here comes the issue. A lot of times, esp for desktop
nope no autosave please, as code that is autosaved would never be ok (in
middle of typing??)
about idea of providing auto keepalive with detecting (on)keydown should be
ok.
anyway will try to do something like that now...
On Wed, Feb 18, 2009 at 8:01 PM, mdipierro mdipie...@cs.depaul.edu wrote:
On Feb 18, 6:42 pm, Abner abner.jacob...@gmail.com wrote:
next = request.vars._next or self.settings.login_next
This is the correct order.
self.settings.login_next is the default location to be redirected to.
However this can e over-ridden per-page via request.vars._next.
This
On Feb 18, 8:13 pm, vihang vihan...@gmail.com wrote:
Any such issues faced by others?
This is certainly an issue that I need to keep track of, however I
think we're OK:
Code built in extra layers on top of Web2Py (e.g. proprietary modules
equivalent to T2) can stay private.
Only if the Web2Py
On 18 fev, 17:31, Fran francisb...@googlemail.com wrote:
On Feb 18, 6:42 pm, Abner abner.jacob...@gmail.com wrote:
next = request.vars._next or self.settings.login_next
This is the correct order.
self.settings.login_next is the default location to be redirected to.
However
Ok,
after some days i have found better solution to this problem:
1. change register() in default.py of T3 app in web2py admin interface
to:
def register():
if not is_admin and len(settings.administrator_emails)0 and
settings.registration_disabled==True: t2.redirect('index',flash=T
discussion has shifted on helpers that I love but I do not suggest
them working in team with designers. Helpers can fail on readability:
try 4-5 annidated helpers each with 3-4 properties.
My topic was rather different.
- a clean separation between markup and logic is advisable or you
fall in
Are there any docs/examples about the recently implemented custom
forms? thank you
carlo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
web2py Web Framework group.
To post to this group, send email to
Usually if they support cherrypy, web2py works too.
On Feb 18, 4:26 pm, Alexandre Miguel de Andrade Souza
alexandrema...@gmail.com wrote:
2009/2/18 mattynoce mattyn...@gmail.com
hi all. i know hosting has come up a lot on this group, and i have
read as many posts as i could find. but
:-)
It's the same as trying a 4-5 dimensional dict/list with 3-4 elements
each. You don't want to be doing that either.
with helpers you get a clear advantage: you can easily get rid of them
if you want, sometimes more difficult with lists.
- a clean separation between markup and logic
I program for a private school outside Philadelphia. SSO is clearly
becoming an important issue. I'd also like to get some feedback on
Google and Active Directory authentication. Our users can login to
our windows domain while on campus and remotely from the cloud. I need
to create session
I've noticed a bunch of weird session files left behind in my
directory -- especially after using my SSH tunnel to admin the site.
I suspect the localhost address of 127.0.0.1 is being botched by the
session handler into creating these un-removable files.
Has anyone else noticed them, or are
Guys;
So I'm brand new to web2py but I have a need to create a web2py
application that has the capability of creating trouble tickets for
our physical plant/facility. For instance we'll have an electrical
ticket, a plumbing ticket, a mechanical ticket etc. So far I have
defined a table to
I'm not sure if this is helpful, or even if it will be considered on-
thread, but here goes anyway. Is there any way to specify the text
editor of my choice? That way, if I choose emacs or vi and then access
the controler or view or ... the file will come up in my editor (vi,
emacs, ...). There
This is exactly how I feel. I started using web2py to do a very small
project at work and the project's scope has expanded dramatically
because I am able to do things so quickly with it. I really haven't
found a truly showstopping issue yet and when I do get hung up I post
on here and have a
What is the exact name of one of these files?
massimo
On Feb 18, 6:23 pm, Joe Barnhart joe.barnh...@gmail.com wrote:
I've noticed a bunch of weird session files left behind in my
directory -- especially after using my SSH tunnel to admin the site.
I suspect the localhost address of
Thank you in the name of all those who have contributed to web2py.
Please tell everybody. ;-)
Massimo
On Feb 18, 8:02 pm, jlegler jleg...@gmail.com wrote:
This is exactly how I feel. I started using web2py to do a very small
project at work and the project's scope has expanded dramatically
when using admin, we cannot assume you are on localhost. If you are on
localhost and want to use emacs you can but you have to access the
file using the filesystem.
Massimo
On Feb 18, 7:31 pm, weheh richard_gor...@verizon.net wrote:
I'm not sure if this is helpful, or even if it will be
here is one possible solution (may contain typos)
def index():
form1=SQLFORM(db.electrical_ticket)
form2=SQLFORM(dbmechanical_ticket)
if form1.accepts(..): ...
if form2.accepts(..):
return dict(form1=form1,form2=form2)
in view/default/index.html
form
select name=type
I do not have anything immediately useful but I agree this should not
too difficult. I will look it up.
Massimo
On Feb 18, 4:45 pm, Michael mafed...@gmail.com wrote:
I program for a private school outside Philadelphia. SSO is clearly
becoming an important issue. I'd also like to get some
Hi,
I am a beginner in python and web2py.
I need help for a linking problem. There are different samples about
links in documentations but ı could not find any sample link to a file
which has ''. . . . href=table.field.value. . . .
There are some examples for 'images' but in this case you do
48 matches
Mail list logo