[Repoze-dev] Set up a MongoDB with BFG

2010-02-01 Thread Joan Miller
Does anybody could write a little example about how to set up a
MongoDB (through Ming [1]) data store with BFG?

This one to be used in TG2 [2]


[1] http://merciless.sourceforge.net/
[2] http://bitbucket.org/percious/c5t/src/tip/c5t/core/model/auth.py
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Set up a MongoDB with BFG

2010-02-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joan Miller wrote:
 Does anybody could write a little example about how to set up a
 MongoDB (through Ming [1]) data store with BFG?
 
 This one to be used in TG2 [2]
 
 
 [1] http://merciless.sourceforge.net/
 [2] http://bitbucket.org/percious/c5t/src/tip/c5t/core/model/auth.py

- From what I can tell, the model classes in the c5t example would work
pretty much unchanged in a BFG app:  if you used routes instead of
traversal, the views could use the same pattern for finding the model
objects.

I think Reed O'Brian was doing some work on Mongo-based BFG apps. I've
CC'ed him just in case he missed seeing your post.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktnEN4ACgkQ+gerLs4ltQ78MACgkzvoXtNrVo2BhdnHS5/u2oz0
GTAAoJFWYreGcUiYl19+YwOO7k68eM42
=i+Or
-END PGP SIGNATURE-
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Set up a MongoDB with BFG

2010-02-01 Thread Paul Everitt

On Feb 1, 2010, at 12:35 PM, Tres Seaver wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Joan Miller wrote:
 Does anybody could write a little example about how to set up a
 MongoDB (through Ming [1]) data store with BFG?

 This one to be used in TG2 [2]


 [1] http://merciless.sourceforge.net/
 [2] http://bitbucket.org/percious/c5t/src/tip/c5t/core/model/auth.py

 - From what I can tell, the model classes in the c5t example would  
 work
 pretty much unchanged in a BFG app:  if you used routes instead of
 traversal, the views could use the same pattern for finding the model
 objects.

 I think Reed O'Brian was doing some work on Mongo-based BFG apps. I've
 CC'ed him just in case he missed seeing your post.

http://svn.repoze.org/playground/redir/repoze.mongo/trunk/

--Paul
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Problem with formencode, or chameleon.zpt ?

2010-02-01 Thread georgehu
This is the third time I asked the same question, I really appreciate 
some body could come up with a solution. I'm trying to change the 
language of the error message ,

formencode.api.set_stdtranslation(languages=[zh_CN])

then I get,


File 
/home/systemadmin/12bfg/lib/python2.5/site-packages/Chameleon-1.0.8-py2.5.egg/chameleon/core/template.py,
 
line 184, in cook_and_render
 return func(econtext, rcontext)
   File string, line 234, in render
   File string, line 111, in _callback_innerContent
UnicodeEncodeError: 'ascii' codec can't encode characters in position 
0-5: ordinal not in range(128)

It worked without problem with other language such as de. Is it a 
problem of chameleon.zpt?







___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with formencode, or chameleon.zpt ?

2010-02-01 Thread Chris McDonough
On 2/1/10 12:47 PM, georgehu wrote:
 This is the third time I asked the same question, I really appreciate
 some body could come up with a solution. I'm trying to change the
 language of the error message ,

 formencode.api.set_stdtranslation(languages=[zh_CN])

 then I get,

 
 File
 /home/systemadmin/12bfg/lib/python2.5/site-packages/Chameleon-1.0.8-py2.5.egg/chameleon/core/template.py,
 line 184, in cook_and_render
   return func(econtext, rcontext)
 File string, line 234, in render
 File string, line 111, in _callback_innerContent
 UnicodeEncodeError: 'ascii' codec can't encode characters in position
 0-5: ordinal not in range(128)

 It worked without problem with other language such as de. Is it a
 problem of chameleon.zpt?

The reason you haven't got an answer yet is probably because no one knows the 
answer.  This seems like some sort of integration problem if it only happens 
when formencode and chameleon are in the mix (and doesn't happen in isolation 
in one or the other).  It would be helpful if you could narrow it down to a 
chameleon-only test case.

- C


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with formencode, or chameleon.zpt ?

2010-02-01 Thread Malthe Borch
On 1 February 2010 18:47, georgehu geo...@gmail.com wrote:
 It worked without problem with other language such as de. Is it a
 problem of chameleon.zpt?

Try and upgrade to 1.1.1, the post back.

The normal process with bugs in Chameleon has been that a failing test
is committed, then I'll usually get around to fixing it within a day
or two at the most.

\malthe
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] [issue116] Chameleon - multiple xml and doctype declarations in rendered templates with macros.

2010-02-01 Thread admin

System message:


__
Repoze Bugs b...@bugs.repoze.org
http://bugs.repoze.org/issue116
__
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] [issue116] Chameleon - multiple xml and doctype declarations in rendered templates with macros.

2010-02-01 Thread Chris McDonough

Chris McDonough chr...@plope.com added the comment:

committed to chameleon trunk

--
status: unread - resolved

__
Repoze Bugs b...@bugs.repoze.org
http://bugs.repoze.org/issue116
__
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev