[web2py:35735] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-20 Thread David
Using the code select. It's the box on the right hand side of the code with an arrow. I am pasting the text into TextEdit for a test. But it's the same as I mentioned above. It might be different on a PC or Linux but I don't have access to those systems and it's really not important now that I

[web2py:35734] Re: Internationalization

2009-11-20 Thread Yarko Tymciurak
On Sat, Nov 21, 2009 at 1:16 AM, mdipierro wrote: > > Yarko, the issue you raise has merit but this is not a bug. It is ABSOLUTELY a BUG Trace thru the code, when the browser settings are a in your video: During translator.__init__, 'en' is not in current_langes, and it's not in the f

[web2py:35733] Re: Internationalization

2009-11-20 Thread mdipierro
Yarko, the issue you raise has merit but this is not a bug. You are proposing that web2py declares by default that the default language is 'en-us', I am not convinced there should be such default but I agree current messages default to English. Another option would be provide an explicit translat

[web2py:35732] Re: Internationalization

2009-11-20 Thread Yarko Tymciurak
On Fri, Nov 20, 2009 at 11:31 PM, mdipierro wrote: > > Yarko, > > I have been thinking about this. If I understand you proposed: > 1) make it a default such that en-us is not translated > I don't think this is accurate. As it is, there is no languages/en-us.py file, nor en.py so by default th

[web2py:35731] Re: Internationalization

2009-11-20 Thread Yarko Tymciurak
On Fri, Nov 20, 2009 at 11:31 PM, mdipierro wrote: > > Yarko, > > I have been thinking about this. If I understand you proposed: > 1) make it a default such that en-us is not translated > I don't think this is accurate. As it is, there is no languages/en-us.py file, nor en.py - that is, there

[web2py:35730] Re: file|upload third column

2009-11-20 Thread mdipierro
Instead of form=crud.update(table,field,next='url') do form=SQLFORM(table,field) if form.accepts(request.vars,session): redirect('url') there will be no link to download, no preview and (I think) no delete button. On Nov 20, 11:02 pm, Wes James wrote: > not sure directly, but massimo might k

[web2py:35729] Re: Internationalization

2009-11-20 Thread mdipierro
Yarko, I have been thinking about this. If I understand you proposed: 1) make it a default such that en-us is not translated 2) create a new API that "app_defaul_language" that would do, in one go both set "current_languages" and "force". 1) cannot accepted because it would break backward compat

[web2py:35728] Re: file|upload third column

2009-11-20 Thread Wes James
not sure directly, but massimo might know, but you can use a loop to go through all the fields and not include the delete part. On Fri, Nov 20, 2009 at 9:49 AM, annet wrote: > > Massimo, > > Isn't it possible to remove the file|upload link and checkbox from the > third column? > --~--~-

[web2py:35727] Re: access problem web2py google groups

2009-11-20 Thread Wes James
i just tried from web2py.com, it worked there too. -wes On Fri, Nov 20, 2009 at 6:57 PM, Eduardo Biano wrote: > Hi, > I have problem accessing web2py google groups. When i click web2py link it > issues message "timeout". > Cheers, > Ed > --~--~-~--~~~---~--~~ You

[web2py:35726] Re: access problem web2py google groups

2009-11-20 Thread Wes James
just go here: http://groups.google.com/group/web2py?pli=1 On Fri, Nov 20, 2009 at 6:57 PM, Eduardo Biano wrote: > Hi, > I have problem accessing web2py google groups. When i click web2py link it > issues message "timeout". > Cheers, > Ed > > > > > > --~--~-~--~~~---~

[web2py:35725] Re: text direction in authentication forms

2009-11-20 Thread hamdy.a.farag
Thank you for the trick :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsu

[web2py:35724] Re: Internationalization

2009-11-20 Thread Yarko Tymciurak
I have replied to Massimo in detail privately, as he also sent me a more detailed private note about this. The way shown in the video is a rough way to set the default language for an application (what will not need to be accessed from a translation file, but rather is what is native in the string

[web2py:35722] access problem web2py google groups

2009-11-20 Thread Eduardo Biano
Hi, I have problem accessing web2py google groups. When i click web2py link it issues message "timeout". Cheers, Ed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gr

[web2py:35721] Re: Internationalization

2009-11-20 Thread mdipierro
Hi Yarko, Settings english by default would encourage users to edit source. This issue was already solved in 1.72.3. The proper way to handle is explained in this vimeo video: http://www.vimeo.com/7520812 Massimo On Nov 20, 4:16 pm, Yarko Tymciurak wrote: > There was a bug in language selectio

[web2py:35720] Re: Internationalization

2009-11-20 Thread Yarko Tymciurak
There was a bug in language selection with web2py: To reproduce: - in Firefox (can do in other browsers), open Edit =>Preferces => Languages and choose multiple languages; What happens: The implicitly default language ('en-us') is never selected when there are multiple language choices in you

[web2py:35719] Re: text direction in authentication forms

2009-11-20 Thread mdipierro
Yes. In layout: body { {{=T('direction: ltr'}} }; and translate as: 'direction: rtl' On Nov 20, 1:01 pm, "hamdy.a.farag" wrote: > Hi > > How can I set the text direction to follow the default orientation of > the selected language in my system > > suppose my default language selected in s

[web2py:35718] Re: StackOverflow clone

2009-11-20 Thread mdipierro
:-) On Nov 20, 1:00 pm, Thadeus Burgess wrote: > Massimo, I already have those as plug-ins (rating and comments) full > featured, and will be releasing them with the plugincentral app I am > developing to host/track plugins. I should be finished with it by the end of > this weekend. > > -Thadeus

[web2py:35717] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-20 Thread mr.freeze
Using the code select button in the top right or the Select All? On Nov 20, 1:06 pm, David wrote: > Yeah that is the problem.  When I copy it on my Mac I get the single > and double quotes but they are wrong when I paste them. > I went through and  just retyped the code in manually and all is >

[web2py:35716] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-20 Thread David
Yeah that is the problem. When I copy it on my Mac I get the single and double quotes but they are wrong when I paste them. I went through and just retyped the code in manually and all is working now. When I tried using the code selection on web2pyslices I got the entire div with mauve backgrou

[web2py:35715] text direction in authentication forms

2009-11-20 Thread hamdy.a.farag
Hi How can I set the text direction to follow the default orientation of the selected language in my system suppose my default language selected in system is english, then text flows from left right in user_name field and also in last name, mail, password if I turned my language to a Right to L

[web2py:35714] Re: StackOverflow clone

2009-11-20 Thread Thadeus Burgess
Massimo, I already have those as plug-ins (rating and comments) full featured, and will be releasing them with the plugincentral app I am developing to host/track plugins. I should be finished with it by the end of this weekend. -Thadeus On Fri, Nov 20, 2009 at 9:48 AM, mdipierro wrote: > >

[web2py:35713] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-20 Thread mr.freeze
It looks like Jon made a slice here: http://www.web2pyslices.com/main/slices/take_slice/18 You can use the select button in the top right of each code block to copy the code. On Nov 20, 12:40 pm, David wrote: > Again it was quotes from copy and paste that were giving me troubles. > > I got it w

[web2py:35712] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-20 Thread David
Again it was quotes from copy and paste that were giving me troubles. I got it working fine with CRUD by changing out all quotes, single quotes from the copy/pasted text. TY for this! :0) On Nov 20, 12:18 pm, David wrote: > Does this work with crud?  I put the db.product.description = > advan

[web2py:35711] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-11-20 Thread David
Does this work with crud? I put the db.product.description = advanced_editor in my controller but it is not launching? Perhaps I am doing this wrong? I am still new to all of this. Code def edit(): """ Edit a product """ thisproduct = db.product[request.args(0)] if not thispr

[web2py:35710] Re: twitter in GAE

2009-11-20 Thread Wes James
go look at the bottom of /web2py/applications/admin/default/site.html and you'll see how Massimo does it: {{=T("web2py Recent Tweets")}} {{=T('loading...')}} jQuery(document).ready(function(){jQuery('#tweets').load('{{=URL(r=request,f='twitter')}}')}); then in admin/controllers/default.py

[web2py:35709] Re: gluon.storage.Storage.copy()

2009-11-20 Thread
Another way to solve this problem is that we could define a new class and try to emulate dict. It's dummy because you have to re-implement all dict methods yourself, but it works. The code looks like this: class Storage(): def __getattr__(self, key): try: return self.__dic

[web2py:35708] twitter in GAE

2009-11-20 Thread Leandro - ProfessionalIT
Hi, I'm trying to implement the feature that show the 'tweets' of my twitter account in the index page of my blog(hosted in GAE) based in the code of admin controller, but it don't run !. In my tests it can't connect with twitter. It's a bug/bad implementation of my controller or the GAE don't a

[web2py:35707] Dropbox based on query

2009-11-20 Thread annet
I have a table which combines companies with activities and I have a table called timetable for scheduled activities: db.define_table('company_activity, Field('company,db.company), Field('activity',db.activity), migrate=False) db.define_table('timetable', Field('company',db.comp

[web2py:35706] Re: file|upload third column

2009-11-20 Thread annet
Massimo, Isn't it possible to remove the file|upload link and checkbox from the third column? Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py

[web2py:35705] file|upload third column

2009-11-20 Thread annet
When I use crud.update(), and the table contains a field of type upload, the upload form displays a download link and chechbox with a delete label in the third column. How do I disable this feature. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this mes

[web2py:35704] Re: gluon.storage.Storage.copy()

2009-11-20 Thread
sorry for this late response, it's just not as simple as I've thought. 2009/11/15 mdipierro : > > perhaps a __copy__? > thanks for you help on this. > __copy__ is a helper function for copy.copy(), just as __len__ is for len(). Copy module is needed anyway. > On Nov 15, 3:34 am, "Xie&Tian" wrot

[web2py:35703] Re: StackOverflow clone

2009-11-20 Thread mdipierro
It would be great you guys could implement the rating and comments part as plugins (look at plugin_tagging as an example) so those parts could be reused. I can help with those. On Nov 20, 9:25 am, Julio wrote: > Hey Richard, > > I am working on a similar interface 100% web2py, what really would

[web2py:35702] Re: AttributeError: 'module' object has no attribute 'dumps'

2009-11-20 Thread mdipierro
This problem only occurs with the latest version of web2py and ir you try to store a reference object in the session. web2py.appspot.com is running an older version of web2py. Did you get a chance to try the fix in trunk? On Nov 20, 9:04 am, Shalab wrote: > i am curious about one thing how come

[web2py:35701] Re: GAE and belongs

2009-11-20 Thread howesc
ahh, perfect. thanks for the clarification! On Nov 20, 5:35 am, mdipierro wrote: > I would say imprecise.It can be mimiced using > > .select()|..select()  and ..select()&..select() etc. > > On Nov 20, 1:22 am, howesc wrote: > > > oh, so the recent post (http://groups.google.com/group/web2py/ >

[web2py:35700] Re: StackOverflow clone

2009-11-20 Thread Julio
Hey Richard, I am working on a similar interface 100% web2py, what really would help me is some sort of technical workflow, or documentation regarding the handling of the posts, up/down pointing system, notification/ subscriptions and so for, if you're interested email me please, Thanks! Julio

[web2py:35699] Re: SQLFORM.factory and date field defaults

2009-11-20 Thread mr.freeze
Not sure if this is the correct way but it works: >>> import datetime >>> s = '2009-01-01' >>> default = datetime.date(*(int(i) for i in s.split('-'))) It's easier to do from a tuple of int if possible: >>> s = (2009,1,1) >>> default = datetime.date(*s) On Nov 20, 8:41 am, Dmitri Zagidulin wr

[web2py:35698] Re: AttributeError: 'module' object has no attribute 'dumps'

2009-11-20 Thread Shalab
i am curious about one thing how come web2py.appspot.com is working without above fix and why similar website will have a problem.did i miss something.[i just verified registration does work on reddish]. Also i havent setup anything to take from trunk...[my initial goal was to just use existing so

[web2py:35697] Re: Problem to connect mysql with web2py

2009-11-20 Thread Alexander Cabezas
Very thanks, It works. Now let me create the models. On 20 nov, 09:40, mdipierro wrote: > run web2py with > > python2.6 web2py.py > > On Nov 20, 7:20 am, Alexander Cabezas wrote: > > > The python version already installed on my Mac is 2.6.2. > > > How can I know what version of python the web2

[web2py:35696] SQLFORM.factory and date field defaults

2009-11-20 Thread Dmitri Zagidulin
I'm using a form created with SQLFORM.factory as an edit form (it saves from and loads to session). If I have a field of type 'date', the value that it saves is in the usual ISO format, a string like '2009-01-01'. But if I then try to use that saved value as the default for the field in the facto

[web2py:35695] Re: Problem to connect mysql with web2py

2009-11-20 Thread Wes James
in controller: import sys print sys.version and look at your console output in a view {{import sys}} {{=sys.version}} I needed to do this once on a server because I wasn't sure the right python was being run with wsgi. -wes On Fri, Nov 20, 2009 at 6:20 AM, Alexander Cabezas wrote: > > The

[web2py:35694] rounded corners: no images, no javascript, simple css - for Opera, WebKit (Safari, Chrome) and Gecko (Firefox)

2009-11-20 Thread selecta
in your view write --- test in static/base.css add --- .box { -moz-border-radius: 5px;/*for firefox3*/ -webkit-border-radius: 5px;/*for safari and chrome*/ background-color: rgb(249,249,249);

[web2py:35693] Re: Unable to install web2py

2009-11-20 Thread mdipierro
Could be it is corrupted. Have you tried downloading it again? On Nov 20, 2:51 am, B Rajender Kumar wrote: > Please  tell me how to install web2py on windows vista. > I had followed the procedure which are given in the website. > I downloaded zip file and when i unzip the file, it is giving erro

[web2py:35692] Re: Problem to connect mysql with web2py

2009-11-20 Thread mdipierro
run web2py with python2.6 web2py.py On Nov 20, 7:20 am, Alexander Cabezas wrote: > The python version already installed on my Mac is 2.6.2. > > How can I know what version of python the web2py is taking? > > On 20 nov, 00:24, Thadeus Burgess wrote: > > > Are you sure it installed to the right

[web2py:35691] Re: file|upload third column

2009-11-20 Thread mdipierro
you are trying to update a record that contains an uploaded files. You can make the upload field writable=False so that you cannot delete it. On Nov 20, 4:15 am, annet wrote: > When I use crud.update(), and the table contains a field of type > upload, the upload form displays a download link and

[web2py:35690] Re: Typo in local_import

2009-11-20 Thread mdipierro
oops. fixed On Nov 20, 2:07 am, Thadeus Burgess wrote: > Traceback (most recent call last): > >   File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line > 184, in restricted > >     exec ccode in environment >   File > "/home/thadeusb/Applications/web2py/applications/plugincentral/

[web2py:35689] Re: select no to delete plug-in creates stacktrace

2009-11-20 Thread mdipierro
oops. this needs a fix. thanks. On Nov 20, 1:50 am, Thadeus Burgess wrote: > If I delete a plug-in modules file, and it asks yes or no, if I select > no, it will provide this stacktrace. > > Filename is > > modules/plugin_asdf.py > > Traceback (most recent call last): >   File "/home/thadeusb/Ap

[web2py:35688] Re: GAE and belongs

2009-11-20 Thread mdipierro
I would say imprecise.It can be mimiced using .select()|..select() and ..select()&..select() etc. On Nov 20, 1:22 am, howesc wrote: > oh, so the recent post (http://groups.google.com/group/web2py/ > browse_thread/thread/e7a8240881564270) that says belongs in GAE was > made available in version

[web2py:35686] Re: Problem to connect mysql with web2py

2009-11-20 Thread Alexander Cabezas
The python version already installed on my Mac is 2.6.2. How can I know what version of python the web2py is taking? On 20 nov, 00:24, Thadeus Burgess wrote: > Are you sure it installed to the right version of python? > > Macs already come with python 2.3(or 2.4) installed, in a way that makes

[web2py:35687] Unable to install web2py

2009-11-20 Thread B Rajender Kumar
Please tell me how to install web2py on windows vista. I had followed the procedure which are given in the website. I downloaded zip file and when i unzip the file, it is giving error of file is corrupted. Please help me in solving this problem to install. --~--~-~--~~~--

[web2py:35685] Re: SQL Select WHERE

2009-11-20 Thread David
Ahh nevermind. I forgot to enclose the AND in () search_products = db((db.product.name.lower().like(pattern)) & (db.product.user_id==user_id))\ .select(orderby=db.product.name) Works --~--~-~--~~~---~--~~ You received this message because you are subscrib

[web2py:35684] file|upload third column

2009-11-20 Thread annet
When I use crud.update(), and the table contains a field of type upload, the upload form displays a download link and chechbox with a delete label in the third column. How do I disable this feature. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this mes

[web2py:35683] SQL Select WHERE

2009-11-20 Thread David
I've been looking for the answer for this for a while and I can't seem to figure out how to do it. I can search db.products.ALL or I can search db.products.user_id but I can't seem to combine them both. How do I search db.products.ALL where db.products.user_id==current_user which is controlled

[web2py:35682] Re: Image Uploading

2009-11-20 Thread Thadeus Burgess
With the above function it will try to insert the image into the database twice, you need. if form.accepts(request.vars, session, dbio=False) -Thadeus On Thu, Nov 19, 2009 at 10:51 AM, NuclearDragon wrote: > > Thanks for the replies everyone! > > We are renaming the files with our own naming

[web2py:35681] Typo in local_import

2009-11-20 Thread Thadeus Burgess
Traceback (most recent call last): File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/home/thadeusb/Applications/web2py/applications/plugincentral/models/db.py"