Michael Ellis | 1 Sep 2010 01:43
Picon

ANN: PeerTool, a web2py app for collaborative problem solving

Hi all,

First of all,  a thousand thanks to Massimo and all the regulars on
this group.  It's made all the difference in getting this app
written.  As usual, the credit is theirs, the blame mine.

Version 0.55 of PeerTool is available for use on GAE at

http://peertool.appspot.com

There's an introductory video embedded in the home page.  It's also
available on vimeo at

http://player.vimeo.com/video/14591104

Source code is hosted at

http://peertool.googlecode.com.

Cheers,
Mike

Adrian Klaver | 1 Sep 2010 02:09
Picon

Re: Re: Field default

On Sunday 29 August 2010 3:51:30 pm mdipierro wrote:

>
> The former is the intended way this should be done. With recent
> changed to trunk, you should be able to do in the latter way... buy
> why? It just results in code that is less portable.
>
> Massimo
>

The change to trunk worked for me. By the way just a heads up, the version 
number in the README is listed as #1.84.1 whereas in VERSION it is 1.84.0. I 
discovered some other potential issues with default= and have filed them as 
Issue 102. As to portability using CURRENT_DATE is actually more portable. It 
is a SQL standard function and is available in all the SQL dbs I know of. This 
means portability is maintained no only within Web2py but with any other app 
that will be hitting the database. Thanks for working on this.

--

-- 
Adrian Klaver
adrian.klaver@...

Christopher Steel | 1 Sep 2010 02:48
Picon

Re: How to switch language in application?

Hi David,

You can do this a number of ways. We have an application here
http://code.google.com/p/uc-language/ you can take a look at. We
implemented language changing using a session variable which allows us
to test.

You can clone the application to your web2py directory and run it.
Note that the language changing is done via a Web2py plugin which
basically means that to look at the code (or extract it to install it
as a plugin in another application) you would go to the plugin
section.

Once in the plugin section you can extract the plugin or just browse
the .py file in the plugin's model area. The plugin includes a
language changing menu and some Web2py variables of interest with some
short variable descriptions. To enable the the language changing menu
you will need to take a look at layout.html in the application for the
line {{include
 'pluging_language/menu/_site_menu...}}, copy that include and place
that in the target applications layout.html, install the plugin and
you should be good to go.

If you can think of any improvements or have any questions let me know
here.

Cheers,

Chris

(Continue reading)

Christopher Steel | 1 Sep 2010 02:50
Picon

Re: How to switch language in application?

That will work, Note that generally this is only required for people
who want to view the site in a language the client (browser) is not
set up for (something we do all the time when we are creating
multilingual applications.

Christopher Steel

Voice of Access

On 31 août, 10:42, Skiros <hansen.marc...@...> wrote:
> Hmmm
>
> Maybe You can save the language selected like a property of the user
> and in the login
> store that value in a session variable and use that with T.force() in
> any action...
>
> On 26 ago, 06:53, David Marko <dma...@...> wrote:> How can I
switch language in application in a way, that app will
> > remember this? T.force() seems to just switch  translations in one
> > request, but how to make scenario, that user will click on particular
> > language flag icon and since that application will display in selected
> > translation. I guess some cookie must be involved but not sure if
> > there is some mechanism in web2py already.
>
> > Thanks, for any hint,
> > David

Christopher Steel | 1 Sep 2010 02:54
Picon

Re: How to switch language in application?

FYI, you can disable the debugging information by setting the
debugging var in the menu to 'False' when you no longer need all the
var info.

Cheers,

Chris

On 26 août, 05:53, David Marko <dma...@...> wrote:
> How can I switch language in application in a way, that app will
> remember this? T.force() seems to just switch  translations in one
> request, but how to make scenario, that user will click on particular
> language flag icon and since that application will display in selected
> translation. I guess some cookie must be involved but not sure if
> there is some mechanism in web2py already.
>
> Thanks, for any hint,
> David

Jonathan Lundell | 1 Sep 2010 03:08
Picon
Favicon
Gravatar

rewrite.py patch

One more change to rewrite.py.

http://web.me.com/jlundell/filechute/rewrite.zip

I took out the custom logging logic, which was confusing, because now that we have generalized logging it's redundant.

However, there's a remaining problem to be resolved. Maybe.

sociotech | 1 Sep 2010 04:21
Picon

Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

Stef,

Thanks for developing what looks like an awesome environment for
web2py.

I tried installing it with your recommended dependencies on my Ubuntu
10.04 system (Python 2.6) and got the following error:

Traceback (most recent call last):
  File "Web2py_CC.py", line 24, in <module>
    import wx.lib.agw.thumbnailctrl as TC
ImportError: No module named agw.thumbnailctrl

I have wxpython installed (version wx-2.8-gtk2-unicode) so I'm not
sure what's missing.

I'll keep following your development efforts and hope to get it
working so I can try it out.

Thanks,

Chris

On Aug 27, 1:13 pm, Stef Mientki <stef.mien...@...> wrote:
>  hello,
>
> I'm proud to  present the first pre-alfa release of Web2Py_CC.
>
> *Windows*: as it's developed under windows, it runs without exceptions (and of course a few bugs ;-)
> Sorry, I wasn't  able to produce an executable, because py2exe had problems (probably with my
(Continue reading)

mdipierro | 1 Sep 2010 05:20
Picon
Gravatar

Re: very straaaaaaange

I do not understand. Can you show some code?

On Aug 31, 10:11 am, weheh <richard_gor...@...> wrote:
> I'm taking the len(x) where x is an instance of an SQLRow object and
> I'm getting back what I'm looking for, which is the
> response.session_id, but I didn't expect to find it there!!!
>
> Coincidentally, retrieving x.myfield gets ticketed:
>
> Traceback (most recent call last):
>   File "C:\web2py\gluon\restricted.py", line 186, in restricted
>     exec ccode in environment
>   File "C:\web2py\applications\myapp/views\this/that.html", line 330,
> in <module>
>   File "C:\web2py\gluon\globals.py", line 105, in write
>     self.body.write(xmlescape(data))
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
>   File "C:\web2py\gluon\html.py", line 589, in xml
>     (fa, co) = self._xml()
>   File "C:\web2py\gluon\html.py", line 580, in _xml
>     self.components])
>   File "C:\web2py\gluon\html.py", line 106, in xmlescape
>     return data.xml()
(Continue reading)

mdipierro | 1 Sep 2010 05:21
Picon
Gravatar

Re: problem list:string in GAE

there is an error right here:

post.update_record(keywords = 'keywords1 keywords2')

should be

post.update_record(keywords = ['keywords1','keywords2'])

On Aug 31, 9:45 am, "Martin.Mulone" <mulone.mar...@...> wrote:
> I don't get the logic of this problem. This problem only ocurrs in
> GAE, local works fine.
>
> I'am using the new introduce features list:string
>
> My db definition is similar to this (only the necesary):
>
> db.define_table('posts',
> db.Field('id', 'id'),
> db.Field('keywords', 'list:string'), #tags
> db.Field('fulltext', 'list:string'), migrate=true)
>
> When i changed the content with this (before i insert the record with
> no problem):
>
> posts = db(db.posts.id == id).select()
> if posts:
>         post = posts[0]
>         post.update_record(keywords = 'keywords1 keywords2')
>
> I list the db and all is fine.
(Continue reading)

mdipierro | 1 Sep 2010 05:23
Picon
Gravatar

Re: Python and web2py in the brazilian magazine 'Espirito Livre'

wow. congratulations Bruno.

On Aug 31, 4:18 pm, Bruno Rocha <rochacbr...@...> wrote:
> This month the brazilian magazine Espirito Livre("Free Spirit"),
> which deals with various issues related to free and open source software,
> presents the premiere of the column "web development with Python"
>
> In this first edition is an article talking about using of Python by big
> corporations
> and has a very basic introduction to web2py framework.
>
> Download ->http://www.revista.espiritolivre.org/?p=625(In portuguese only)


Gmane