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.
harder to
organize them.
max
On 11 Jul., 14:10, Kenneth wrote:
> 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
>
>
thanks a lot.
On 12 Jul., 00:22, mdipierro wrote:
> 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.
&g
dera develpoers,
i am adding just a german ä in the menu list. like this.
T('täter') for translation
and the web2py shows it false in the browser, althoguth i have setup
utf-8.
in layout.html
does anybody have similar experiences?
I do know my finnish
> äÄöÖåÅ all work for me.
> Best Regards,
> Jason
>
> On Mon, 2010-08-02 at 02:09 -0700, max wrote:
> > dera develpoers,
>
> > i am adding just a german ä in the menu list. like this.
> > T('täter') for translation
> > and the web2
I do know my finnish
> äÄöÖåÅ all work for me.
> Best Regards,
> Jason
>
> On Mon, 2010-08-02 at 02:09 -0700, max wrote:
> > dera develpoers,
>
> > i am adding just a german ä in the menu list. like this.
> > T('täter') for translation
> > and the web2
I do know my finnish
> äÄöÖåÅ all work for me.
> Best Regards,
> Jason
>
> On Mon, 2010-08-02 at 02:09 -0700, max wrote:
> > dera develpoers,
>
> > i am adding just a german ä in the menu list. like this.
> > T('täter') for translation
> > and the web2
I am trying to generate a soap web client for a wsdl service.
With java, i can generate all the soap operations from the swdl file.
Is there any way, I could do it in python?
the zs1-2 library seems to be depreciated for python2.6
In web discussions, I see python soap libraries are always
problemf
I tried the following example in the book for auto complete, but it
didn't work,
def month_input():
can't understandy why, there is no ouput for the simple example.
then i tried the following example, clienttools / autosuggest, which
worked for me.
but now i have the problem of having more than
I have a SQLForm with a widget , but i want to output it in a
customized way.
I tried the following example in book page 211.
{{extend 'layout.html'}}
Your name is
But then the autocmplete widget doesn't work.
My requirement is that I display the fields horizontally.
can somebody give
same data show them correctly.
Some hints in this usergroup such as
#!/usr/bin/env python
# -*- coding: UTF-8 -*
in the default.py didn't help me.
max
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
you provide an example of what you mean by "not displayed
> correcly"?
>
> On Jul 12, 2:49 pm, max wrote:
>
> > I am implementing a search application using web2py.
> > I get the data from a mysql data base where the data is inserted in
> > utf-8.
> > Bu
that you might
> be double-encoding (see the length of utf-8 chars -> if they are 4 or
> more, you're encoding already encoded data).
>
> On Jul 12, 9:49 pm, max wrote:
>
> > I am implementing a search application using web2py.
> > I get the data from a mysql data ba
at has
> the charset mismatched, compared to whoever is writing the DB. That's
> why I said do SHOW TABLE MYTABLE. Either mytable is 8859-1 and you're
> writing utf8 to it, or the other way round (did you fill that table
> from PHP without defining the encoding ?).
>
> On
I am trying to execute upload a xml parser into my application and
parse it on the fly and insert the data into a database which is
connected to the web2py.
I have already written a program to upload the xml file and the
files (which are desribed in the xml) seperately.
Can somebody give me so
file copy mechanism, how can i execute this
script using web2py
On 30 Jul., 17:49, mdipierro wrote:
> Is you problem parsing the xml data?
> I am not expert but Python comes with this
> parser:http://docs.python.org/library/xml.sax.html
>
> massimo
>
> On Jul 30, 8:49 am, m
I am inserting parsed text from a utf-8 xml file into a mysql
database.
there is a little problem, where i have to clarify.
In my xml file i have entries like this.
高中语文教学目标与检测(下编)<ä¸å¦è¯æ–‡
when i parse the data only the second entry is correctly inserted.
I use the myDatabase.executesql()
i am inserting Form values into a postgres database.
For on-the fly parsing of other data, i need the entry id of the
database, which was inserted by my form.
I am getting this values by calculating field values and it is so
ugly.
Is there any web2py way of just getting the entry id of the curre
How can i configure the Active directory authentification using CAS?
should i have to uncomment and edit the
""
auth.settings.login_methods.append(ldap_auth
(mode='ad',server='my.domain.controller',base_dn="ou=Users,dc=domain,dc=com",bind_dn="cn=Administrator,ou=Users,d
c=domain,dc=com",bind_pass=
thanks, fran
On 7 Aug., 14:10, Fran wrote:
> On Aug 7, 8:19 am, max wrote:
>
> > How can i configure the Active directory authentification using CAS?
> > should i have to uncomment and edit the
> > ""
> > auth.settings.login_methods.append(ldap_auth
>
I am using
to dynamically load the pictures.
Sometimes the pictures are not for some ids. Is there any way to chcke
if the picture is available using the request?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
thanks massimo
On 12 Aug., 12:02, mdipierro wrote:
> Should be
>
>
>
>
> you can do
>
> {{import os}}
> {{if os.path.exists(os.path.join(request.folder,'static/my_pics/%s' %
> myrows.id)):}}
>
> {{else:}}
> No image
> {{pass}}
.keywords.schlagwortzo.like('%%%s%%' % my_search))
>
> table details does not have a titel (nor title) field and table
> keywords does not have a schlagwortzo field.
>
> Something is missing.
>
> On Aug 17, 8:19 am, max wrote:
>
> > I am having a small
I am having a small problem, that i can't solve using the example in
book.
I want to search in two tables for one search word and output only
rows in one table. I can't write the joined statement using web2py DAL
commands.
First Table:
my_db.define_table('details',
SQLField('lokid'),
SQLField(
my_search))
q2 = (my_db.keywords.keyword.like('%%%s%%' % my_search))
__
On 17 Aug., 16:10, mdipierro wrote:
> Sorry, I still think your tables have something missing since q1 and
> q2 reference fields that do not exist.
>
> On Aug 17, 8:47 am, max wrote
id for row
> in s2])))
>
> Perhaps somebody else has a better suggestion.
>
> On Aug 17, 9:52 am, max wrote:
>
> > sorry for the failure in copy and pasting as i have a lot more fields
> > and i just kept it simple.
>
> > First Table:
> > my_db.define_table(
erro wrote:
> for i in s:
> result_dict[i]=(my_db.details.lokid == i).select
> (my_db.details.row1,my_db.details.row2,my_db.details.row3)[0]
>
> or
>
> for i in s:
> result_dict[i]=(my_db.details.lokid == i).select
> (my_db.details.row1,my_db.details.row2,my_db.detai
t; {{=XML(record.lokid)}}
>{{pass}}
> {{pass}}
>
> anyway, if result is a dict, items will not be sorted.
>
> On Aug 18, 7:32 am, max wrote:
>
> > that doesn't give my desired result and i get the failure in my view
> > when i want to run throught the dictionar
i just want to make a select box in the form and , i get the select
box , but can't get the values as i intedend.
there's something wrong in the way i write. can someone just give me
a tipp?
form2 = FORM(INPUT(SELECT(_name="tipo",OPTION('20','40')), INPUT
(_type='submit', _value=" Search"))
--~
Thanks. that was it.
On Aug 20, 4:09 pm, "mr.freeze" wrote:
> Does this do what you want?
> form = FORM(SELECT('20','40',_name="tipo"), INPUT(_type='submit',
> _value=" Search"))
>
> On Aug 20, 8:47 am, max wrote
ontrib.login_methods.ldap_auth import ldap_auth File "/srv/www/
web2py/gluon/contrib/login_methods/ldap_auth.py", line 1, in
import ldapImportError: No module named ldap
But if i insert the code in the controller the import shows no
failures.
does anybody have any idea?
On 7 Aug., 15
thanks. now i installed it.
On 25 Aug., 11:52, mdipierro wrote:
> Do you have python ldap API installed? It does not come with web2py.
>
> On Aug 25, 4:41 am, max wrote:
>
> > I tried to add the following code in the db.py
>
> > from gluon.contrib.login_methods
d('ctime','integer',default=now),
SQLField('url'),
SQLField('code'),
SQLField('cas_user',db.cas_user))
db.cas_user.name.requires=IS_NOT_EMPTY()
db.cas_user.email.requires=[IS_EMAIL(),IS_NOT_IN_DB
(d
d('ctime','integer',default=now),
SQLField('url'),
SQLField('code'),
SQLField('cas_user',db.cas_user))
db.cas_user.name.requires=IS_NOT_EMPTY()
db.cas_user.email.requires=[IS_EMAIL(),IS_NOT_IN_DB
(db,&
Does anybody have experience in sending compressed data using web2py?
I am writing a multi-langual, multimedia search engine using web2py
and in some of my search results i get thousands of images and it
takes longer for them to load althogh the calculation in backend fast
enough ist.
If somebo
thanks massimo i use Apache+mod_wsgi and i will try it.
On 26 Aug., 11:35, mdipierro wrote:
> If you use Apache+mod_wsgi, you can configure apache to do it. The
> built-in web server does support compression.
>
> Massimo
>
> On Aug 26, 4:06 am, max wrote:
>
> > Does
i am having the paper version of web2py. is there any way that i can
get the rest pages, till i persuade my boss to buy me the new online
version.
On 26 Aug., 11:34, mdipierro wrote:
> The new web2py book is available on lulu.com
>
> http://www.lulu.com/content/e-book/web2py/4968879
>
>
i am having the active active directory authentification problm
althoght i have tried lot of different variation using cas.
I will be happy if some one just show me a simple model/db.py where it
is correctly configured.
i exclude misbaviors from my Active Directory Autentification server
as I get
>
> Do you have this needed line anywhere?
> from gluon.contrib.login_methods.ldap_auth import ldap_auth
Yes.
>
> Do you have ldap installed in the version of Python that you're
> running?
> try:
> import ldap
i installed python-ldap 2.3.9 and import ldap functions without
failures.
>
> > auth.s
Hi Fran,
I also tried this one using another example.
import ldap
l=ldap.initialize('ldap://ad.mydomain.com')
l.simple_bind_s('cn=myuser
ou=users,ou=kjc,ou=institute,dc=ad,dc=mydomain,dc=com','password')
then i get (97, [])
On 26 Aug., 14:10, max wrote:
&g
I have a unicode string in my multilinugal search.
When I insert a german alphabet ß. "großbritannien " .
I got this code in th my search.
region_search=gro%C3%9Fbritannien/time_search=1800/page=153/box=20/
I want to pass this word and I get an invalid request in the server.
--~--~-
I have the same problem for other language symbols such as ö ,ä, ß in
German.
What do you mean routes_in for it?
My symbols look like %C3%9F for ß.
On 31 Aug., 14:56, mdipierro wrote:
> Your url does not pass validation and it is invalid. To allow this you
> must create a routes_in for fit.
I am interested in knowing how can i do this for %
routes_in=(('(?P.*?),(?P.*)':'\g?other=\g'),)
What does p ,q and other define in the routes_in file?
On 1 Sep., 03:49, mdipierro wrote:
> In my mind I think of a URL as a filename,so I think of request.args
> as objects that can be used to bu
Now I bought the second version of the book to read more about the
ldap authentication.
I did the following and i can't understand why it doesn't work.
Here is my controller in the order
from gluon.tools import *
auth=Auth(globals(),db) # authentication/
authorization
auth.
After lots of tests and research of ldap_auth , I have some questions
1. Does the mode="ad" identify the Active directory in ldap_ath_aux?
2. In my active directory server to use "search_ext_s" i need a
administrator account,
What i think is general to all ad servers.
How can i define it in ld
#print entry[1]['unicodePwd'][0]
print entry[1]['sAMAccountName'][0]
#print entry[1]['memberOf']
#print entry[1]['proxyAddresses'][0]
print entry[1]['uidNumber'][0]
cou
ve the hash in the local auth database
table.)
Thank youvery much!
On 7 Sep., 17:04, mdipierro wrote:
> It is not clear from your message if this script works and you provide
> it as an example or if not.
>
> Massimo
>
> On Sep 7, 9:26 am, max wrote:
>
> > Hi Every
I have created a full text index on a postgres database.
Is there any web2py type search syntax for tsvector search without
using the sql syntax?
This is a example way how i create the fulltext index.
1. ALTER TABLE blog_entry ADD COLUMN body_tsv tsvector;
2. CREATE TRIGGER tsvectorupdate BEFO
t; as
>
> db("body_tsv @@ plainto_tsquery('hello world')").select
> (db.blog_entry.title)
>
> I have not tried it but it should work.
>
> Massimo
>
> On Sep 22, 4:34 am, max wrote:
>
> > I have created a full text index on a postgres database.
>
Dear developers.
My web2py search engine needs get content from a REST API from a Java
application server.
How would I do it best with Web2py?
Has somebody any experience with web2py or python rest clietns.
I also need to implement REST Services through Web2py ? Is there any
example applicatio
As per Book (page 241 version 2) I have defined my own table for the
authentification in the db.py
In the database i see my new fields.
auth=Auth(globals(),db) # authentication/
authorization
auth_table = db.define_table(
auth.settings.table_user_name,
Field('cluster_user_
form = crud.create(db.mytable)
return dict(form = form, values = values)
def validate_values(form):
for value in form.vars:
if form.vars[value] == 'unknown':
form.vars[value] = None
In this special case the user have to select 'unknown' if he didn't
know the value during record creation, but later (during update), the
user must not select a value, None values are automatically set to
unknown.
thanks
max
ns_1.requires = [IS_IN_SET({'option_1' : 'Option 1',
'option_2' : 'Option 2', 'option_3 : 'Option 3'', 'option_4' : 'Option 4',
None: 'unknown'}, zero = None)]
documentation:
IS_IN_SET({'id1':'first label', 'id2':'second label'})('id1')
http://web2py.com/examples/static/epydoc/web2py.gluon.validators.IS_IN_SET-class.html
thanks
max
ok actually I thought I have sovled my problem with writing None values to
the database with this:
>>> IS_IN_SET({None :'unknown', 'option_1:'Option 1'}, zero = None)
in stead of:
>>> IS_IN_SET(['unknown', 'option_1'], zero = None)
but you are right, this only works when I use curd.create the
I have a requirement , that when I post values of a crud form, that
values of some fields copied to another table.
How can I add this action to the submit button or inside the procedure?
--
I want to add the enter key instead of tab keys to the forms.
is it possible to intergrate into web2py.
--
thank anthony.
Am Montag, 13. August 2012 15:30:24 UTC+2 schrieb Anthony:
>
> On Monday, August 13, 2012 9:24:13 AM UTC-4, max wrote:
>>
>> I want to add the enter key instead of tab keys to the forms.
>> is it possible to intergrate into web2py.
>>
>
> Sur
One of my users use german keyboard. is there any possibility for the dot
in a floating point number identified as comma.
for me global replacing is also o.k.
Example:
1223.12 as 122,23 for all the values in forms.
--
thank a lot. helps me to do what i want.
Am Montag, 13. August 2012 16:00:17 UTC+2 schrieb rochacbruno:
>
> take a look on custom validators
> http://rochacbruno.com.br/custom-validator-for-web2py-forms/
> Em 13/08/2012 10:54, "max" > escreveu:
>
>> One o
hi anthony, i can include the change in the views/xyz.html , but how cupld
i set it globally for all the forms?
Am Montag, 13. August 2012 15:50:25 UTC+2 schrieb max:
>
> thank anthony.
>
> Am Montag, 13. August 2012 15:30:24 UTC+2 schrieb Anthony:
>>
>> On Monday, Au
> Anthony
>
> On Monday, August 20, 2012 8:56:18 AM UTC-4, max wrote:
>>
>> hi anthony, i can include the change in the views/xyz.html , but how
>> cupld i set it globally for all the forms?
>>
>>
>> Am Montag, 13. August 2012 15:50:25 UTC+2 schrieb max
return false;
//event.preventDefault();
}
}
}
Am Dienstag, 21. August 2012 15:13:21 UTC+2 schrieb max:
>
> Hi,
> This is the script, i have generated but anyhow, it jumps to next key and
> tries to validate and the it looses focus.
> Another problem is, my script only work
I have a table with two fields.
EN | SP
Hello | Hola
I | Yo
Both the fields A and B represent the same vale in two languages.
I want in a drop-down field , the Spanish value automatically selected,
when english value is set to a specific word.
It should also work , if I set the spanish wor
In my dependancy tables I have thousands of entries.
e.g.
frg.define_table('group',
Field('name','string'),
)
frg.define_table('kundenstamm',
Field('a20',frg.group),
)
frg.kundenstamm.a20.requires = IS_IN_DB(frg, frg.group.id, '%(id)s ,
%(name)s',zero=T('Choose'))
I have thousands of val
makes me very
nervous if hundred of warnings appear every day ;)
But maybe the web2py-"problem" of transaction handling James suggested is
the reason, but i don't have enough detail knowledge of the DAL.
Does anybody have the same problem or recently solved it? Any suggestions?
M
the field:
db = DAL('postgres://testuser:testpassword@testhost/testdb')
db.define_table('testtab', Field('test'), Field('values'))
db(db.testtab.values).select()
Do you have any ideas for a workaround or is there a possibility avoid this
problem.
Greets Max
I am using the list string to enter data where the number of input
texts.
Can I customize the size of the input boxes in one form because i am
inserting large texts?
Can't use the type 'text' because the number of entries is not
previuosly known.
Hi,
I am trying to integrate my database data into a ajax application as
follows
http://dev.sencha.com/deploy/ext-4.0.1/examples/view/animated-dataview.html
How would I open/interface my table data to the java script
application?
Thanks
Hi all,
I have been searching for a customizable way to select and deselect
fields.
i have found this way
tempate_01 = {'myfiled':False, 'myscofield':True}
read this values in the db defitionion.
Field('myfield', type='text',readable=template_01'myfiled']),
is this a good way to do this?
Becau
t;
> If you need to hide field base on user group membership you will have to
> define the readable/writable field for each group in your function... You
> could also use function decorators and CRUD...
>
> Richard
>
> On Mon, May 30, 2011 at 10:16 AM, max wrote:
> > Hi all,
thanks.
On May 21, 5:14 pm, Anthony wrote:
> On Saturday, May 21, 2011 3:56:13 AM UTC-4, max wrote:
>
> > I am using the list string to enter data where the number of input
> > texts.
> > Can I customize the size of the input boxes in one form because i am
> > in
I have the following use case.
--
User has to input a unknown number of strings in a pref-defined
format.
eg. a#b#c , a1#b1#c1, a2#b1#c2
Currently i am using the list:string and allow the user to directly
add the string with a hash sign.
But I would prefer to format the input like this,
myfie
I am trying to generate a custom form depending on he month for user
to add values to each day key
is there any idea how to do it dynamically?
i want to give for ceratin records of a table different user
permissions.
can the authentication of web2py used for this?
thanks
On Jun 17, 8:17 pm, Anthony wrote:
> On Friday, June 17, 2011 2:08:45 PM UTC-4, max wrote:
>
> > i want to give for ceratin records of a table different user
> > permissions.
> > can the authentication of web2py used for this?
>
> Look at add_permission a
Is there any way to change the behaviour of the field in web2py.
I want to use the ente rkey in the number side of the keyboard for
jumping into the next field.
looks like there is something similar in the multiple value columns.
thanks a lot for the advice.
On Jun 19, 6:58 pm, pbreit wrote:
> Any behaviors you see are provided by the browser. What you are seeing on a
> multi-down is that some browsers let you press enter to select the current
> entry and move to the next field. To do what you want, you'd need to trap
>
I have two seperate tables, which are updated using web2py forms.
first table has fields using calculate attbitute of the values from second
table.
I want to update the first table, when i change something something in the
second table.
is that possible?
--
Resources:
- http://web2py.com
- ht
thanks a lot
On Tuesday, November 19, 2013 10:42:52 PM UTC+1, Niphlod wrote:
>
> use callbacks: they'll make your life easier
>
>
> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#before-and-after-callbacks
>
> On Tuesday, November 19, 2013 9
*Did some quick tests with python 3.5.2 and it seems now web2py master branch
is python3 compatible.*
*Is there anything , I should worry before switching it to a production modus.*
On Thursday, May 11, 2017 at 2:08:43 PM UTC+2, Richard wrote:
>
> No problem... I can't say when Massimo's
i see everywhere, there is none returned in the , SQLFORM.grid when there
is no value in the table. is there a way to globally disable this. i can
do a dom manipulation using a jquery function, which is not very clean.
has somebody any idea.
thanks for any advice.
dulip
--
Resources:
- htt
I would like to runs a typesetting tool which generates a TEI xml from a
word doc , after a file is uploaded to web2py.
I have the ubuntu script configuration from web2py with the user www-data
running the web2py framework.
I have given the typesetting script the www-data rights , but it can
index method in the controller, however
the @auth.requires_login() doesnt think that auth is None and in fact
it isn't.
I found that if I add session.clear() to the logout function all works
OK. Is there an explanation for this. If nothing else, maybe the
session.clear() should be included in distro.
thanks,
max
gt;
>>>> Thanks,
>>>>
>>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received t
84 matches
Mail list logo