I am writing a enterprise multi-linugual web application using
web2py.
I am having a hard time converting the csv files, language files in
the text format.
Is there any way that I can save the translation data in a database.
thanks a lot.
FYI, the problem also appears when using SQLFORM. Your fix works when
using crud - slightly modified:
form = crud.update(db.Item, item, next=URL(r=request, args=item))
This fix doesn't appear to work for SQLFORM.
On Jul 10, 11:46 pm, mdipierro wrote:
> form = crud.update(db.Item, item,next=URL(
I found db.auth_event in admin in my program have same problem in 1.79.2 while
not problem in 1.76.4 and got same error message as following.
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 178, in restricted
exec ccode in environment
File "C:/web2py/applicati
my model for users_group
db.define_table('users_group',
Field('name'),
Field('description','text',default='No group description'),
Field('owner',db.auth_user),
Field('company',db.auth_user),
Field('open','boolean',default=False),
Field('created_on','datetime',default=timestamp))
Comment below
On Jul 10, 9:32 am, mdipierro wrote:
> Answers below
>
> On 9 Lug, 21:42, Scott wrote:
>
> > I think this should replace the Welcome application and the
> > documentation should be integrated into the web2py book. I'm
> > impressed with the complete rewrite! I like the way that y
I would like to know the status of the DAL rewrite in respect to NoSQL
support. How can I help in the work being done?
The reason for not using a database is speed, I think. It is much
faster to read a text file than read the texts from a database.
What kind of a problem do you have with the text files?
Kenneth
On Jul 11, 9:59 am, max wrote:
> I am writing a enterprise multi-linugual web application using
>
The thread on the googleappengine site contains posts from a google
employee who seems to be responsible for the issue. He doesn't
explicitly say so, but I get the impression they *intend* to support
2.6 but, for whatever reason, haven't committed a fix for this
particular problem on OS X.
On Jul
Thats works better!
with normal form=auth() it append /login argument at every page making
request.args(0) fail.
thanks alot massimo!
On Sun, Jul 11, 2010 at 6:44 AM, mdipierro wrote:
> You did not say so before. Forget the action. In views.html:
>
> {if auth.user:}}
> {{=T('Welcome %s',auth.
I´m intrested in helping setting up a reference manual, I have never
done anthing like this before so help is needed, I´m neither so deep
into web2py yet that I know where to start.
I guess we need to start and agree on three things:
a) type of manual, wiki or "php forum style". I think wiki soun
Hi,
Let's say that there are a number of forms on the same page. There
would be no problem to put a submit button after each of them, but how
to submit all forms at the same time with one single submit button?
Thanks in advance for help!
Hello,
I've just tried to import plugin_wiki in my app.
It seems to work nice and I think it will help me a lot.
Yet I've tried Crud via ``create. and list via ``jqgrid...
* Would it be possible to have a full Crud interface with the jqgrid
(I've noticed that create, del are set to false in p
after a quick google search: http://www.codetoad.com/forum/15_24387.asp
Looks like it can easily be done with JS. Good luck!
On Jul 11, 7:02 am, Rick wrote:
> Hi,
>
> Let's say that there are a number of forms on the same page. There
> would be no problem to put a submit button after each of th
http://www.9lessons.info/2009/06/submit-multiple-forms-jquery-ajax.html
that might be better? apparently the issue is somewhat painful...
On Jul 11, 7:02 am, Rick wrote:
> Hi,
>
> Let's say that there are a number of forms on the same page. There
> would be no problem to put a submit button afte
db.define_table('Category',
Field('name'))
db.define_table('Item',
Field('category', db.Category),
Field('description'),
Field('need', 'boolean'),
Field('image', 'upload'))
db.Item.category.requires = IS_IN_DB(db, db.
I just modified my tools.py as follows:
elif self.settings.server == 'gae':
logging.warn("using gae mail server")
from google.appengine.api import mail
attachments = attachments and
[(a.my_filename,a.my_payload) for a in attachments]
Solved, or at least hacked well enough for the time being :-)
--enable_sendmail did the trick. It needs to be entered in the app
settings in the GAE Launcher:
* stop the app
* double-click app in listing
* enter --enable_sendmail in listing
Here's the blog post that put me on the right track:
h
This issue only happens for records that were created before I added
the .requires fields. Error handling on new records works as
expected... so... is it still a bug?
On Jul 11, 9:15 am, Rob wrote:
> db.define_table('Category',
> Field('name'))
>
> db.define_table('Item',
>
Solved, or at least hacked well enough for the time being :-)
--enable_sendmail did the trick. It needs to be entered in the app
launch
settings in the GAE Launcher:
* stop the app
* double-click app in listing
* enter --enable_sendmail in the Launcher settings "extra flags" field
* restart the
I suspect this is the GIL causing troubles with Rocket.
I read
http://packages.python.org/rocket/usage.html#architecture-considerations
It seems that Rocket's people insist on using threading vs forking: this
could be a major problem
because of CPython's GIL. IMHO such implementation urges a mig
db.users_group.access_types=['no','view','join']
db.users_group.public_fields=['company','name','description','open']
should be
db.users_group.access_types.requires=IS_IN_SET(['no','view','join'])
db.users_group.public_fields.requires=IS_IN_SET(['company','name','description','open'])
On 11 Lug,
On 11 Lug, 09:29, JmiXIII wrote:
> Hello,
>
> I've just tried to import plugin_wiki in my app.
> It seems to work nice and I think it will help me a lot.
>
> Yet I've tried Crud via ``create. and list via ``jqgrid...
> * Would it be possible to have a full Crud interface with the jqgrid
> (I
something like this?
submit all
On 11 Lug, 10:56, Rob wrote:
> http://www.9lessons.info/2009/06/submit-multiple-forms-jquery-ajax.html
> that might be better? apparently the issue is somewhat painful...
>
> On Jul 11, 7:02 am, Rick wrote:
>
> > Hi,
>
> > Let's say that there are a number of fo
Please tell us more. When do you get an error? What is the error?
On 11 Lug, 11:57, Rob wrote:
> This issue only happens for records that were created before I added
> the .requires fields. Error handling on new records works as
> expected... so... is it still a bug?
>
> On Jul 11, 9:15 am, Rob
I just recently added:
db.Item.image.requires = IS_IMAGE()
The records that existed prior to adding this line does not obey the
IS_IMAGE() (ie: they still allow me to upload a PDF). All new records
created DO work - they force me to select an image or else they show
an error.
steps to reproduce
Ok I was wondering if I missed something.
Sorry I'm not a good hacker, but I'll try to patch it
On 11 juil, 20:21, mdipierro wrote:
> On 11 Lug, 09:29, JmiXIII wrote:
>
> > Hello,
>
> > I've just tried to import plugin_wiki in my app.
> > It seems to work nice and I think it will help me a
anyone running Web2py with Jython on GAE? just wondering...
Hello,
I´m trying to make a editable jqgrid or something like a editable
jqgrid. It doesn´t have to be a jqgrid.
I have downloaded the plugin from Eban Software but can´t get it to
work. If I edit a row in the grid it doesn´t get saved. Same if I go
to http://app.ebansoftware.net/editable_jqgrid/
One other thing we might consider, as Kenneth said 5 million monthly
page views, we could cut that by providing a download version of the
reference manual, so that us that frequent it aren't racking up on the
page views.
On Jul 11, 8:39 am, Kenneth wrote:
> I´m intrested in helping setting up a r
thanks for the reply.
I have lots of small data tables, where i have the translations. They
are really a lot and I handle 5 langauges simmultaneously.
I have to add new words often and in the database i can add them once
and then it is ok.
but in the texts i have to write them manually and it is
My advice it keep using the web2py translation but create a database
copy and work on it.
This may be useful
web2py/scripts/sync_languages.py
On 11 Lug, 17:16, max wrote:
> thanks for the reply.
> I have lots of small data tables, where i have the translations. They
> are really a lot and I hand
after change the db.users_group
I get this error in 1.79.2,
Traceback (most recent call last):
File "C:\web2py\gluon\restricted.py", line 178, in restricted
exec ccode in environment
File "C:/web2py/applications/nano/models/db.py", line 269, in
db.users_group.access_types.requires=IS
Hi,
you have to press enter when you have finished your changes.
Dieter Asman
On 11 Jul., 22:45, Kenneth wrote:
> Hello,
>
> I´m trying to make a editable jqgrid or something like a editable
> jqgrid. It doesn´t have to be a jqgrid.
>
> I have downloaded the plugin from Eban Software but can´t
What about having the reference manual divided in 9 apps.
The limit is by app, and a single account can create 9 apps.
One chapter per app.
Sent from my iPhone
On 11/07/2010, at 18:56, ra3don wrote:
> One other thing we might consider, as Kenneth said 5 million monthly
> page views, we could
Massimo, do you think 5M pageviews would be exceeded in any month for
the time being?
ra3don: I like your idea of a download version. If we pack all into
a .w2p then the downloadable reference manual would be implemented.
Then you could install it on your local machine and access it later,
even if
Thanks Dieter,
Enter is about the only key that I have not pressed. This makes the
jqgrid useless for my application, I had hoped for an grid you can
edit anywhere on the grid and everything is either auto saved or saved
when you press a Save key.
Then I´ll just have to continue with my selfmade
Ignore my previous comments.
access_types and public_fields are not web2py variables. They are KPAX
specific variables. Are you modifying KPAX?
Massimo
On 11 Lug, 13:18, mdipierro wrote:
> db.users_group.access_types=['no','view','join']
> db.users_group.public_fields=['company','name','descri
This issue issue comes up regularly and my answer does not change.
I very much welcome a community effort to have a better documentation.
It was attempted many times before and many times it has failed. It
failed because people think it is a technological issue (which wiki do
we use?) but it is no
Massimo, I couldn't agree more. This is not a tech issue. It's an
issue of resolve by the community to help build doc. I do not wish to
make more work for you. I may be naive, but I hope for the opposite --
to distribute the doc burden more on the community.
The existing doc v2 is a major improvem
PHP manual is great, I always use, the information are easy to find, and
connections with related subjects are simple, one advantage is that it was
written in a way that allows various applications, badges, widgets etc using
your content
I think that information in the PHP manual is organized much
Look what i am talking about, in action ->
http://www.pyforum.org/pyforum/default/view_topic/507
2010/7/12 Bruno Rocha
> PHP manual is great, I always use, the information are easy to find, and
> connections with related subjects are simple, one advantage is that it was
> written in a way that a
41 matches
Mail list logo