Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Pyramid - Adding ZEO to an existing ZODB project
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ellison Marks  
View profile  
 More options Nov 1 2012, 8:57 pm
From: Ellison Marks <gty...@gmail.com>
Date: Thu, 1 Nov 2012 17:57:59 -0700 (PDT)
Local: Thurs, Nov 1 2012 8:57 pm
Subject: Pyramid - Adding ZEO to an existing ZODB project

I'm a bit new to pyramid, but I'm building an application and had a few
questions. The one the title refers to is basically this:

The tutorial in the pyramid cookbook about ZEO show how to set up a server
"from scratch", as it says. However, I've already started out using the
ZODB scaffold, and I'm not yet confident enough to go about changing the
setup.py and the ini files too much. I'm wondering if anyone could point me
to a tutorial (or provide one themselves) on integrating ZEO into a project
that's already using ZODB.

Thanks in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam  
View profile  
 More options Nov 2 2012, 11:14 am
From: Sam <sam.bra...@gmail.com>
Date: Fri, 2 Nov 2012 08:14:55 -0700 (PDT)
Local: Fri, Nov 2 2012 11:14 am
Subject: Re: Pyramid - Adding ZEO to an existing ZODB project

You just need to change the zodb_uri setting in your .ini file(s) to an
appropriate uri with the zeo: protocol (instead of the file: protocol).

For example, if you're running the zeo server locally from the same
directory as your .ini file (as the cookbook recipe suggests under the
"Running" section), you would change it like so:

zodb_uri = zeo://%(here)s/zeo.sock

For production use, you may run the zeo server on another machine and will
want to connect by IP address and port instead of socket.  See
http://docs.pylonsproject.org/projects/pyramid_zodbconn/en/latest/ for more
info on ZEO urls and all the other details of zodb connections.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tres Seaver  
View profile  
 More options Nov 2 2012, 12:13 pm
From: Tres Seaver <tsea...@palladion.com>
Date: Fri, 02 Nov 2012 12:12:31 -0400
Local: Fri, Nov 2 2012 12:12 pm
Subject: Re: Pyramid - Adding ZEO to an existing ZODB project
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/01/2012 08:57 PM, Ellison Marks wrote:

> I'm a bit new to pyramid, but I'm building an application and had a
> few questions. The one the title refers to is basically this:

> The tutorial in the pyramid cookbook about ZEO show how to set up a
> server "from scratch", as it says. However, I've already started out
> using the ZODB scaffold, and I'm not yet confident enough to go about
> changing the setup.py and the ini files too much. I'm wondering if
> anyone could point me to a tutorial (or provide one themselves) on
> integrating ZEO into a project that's already using ZODB.

http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/dat...

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

iEYEARECAAYFAlCT8O8ACgkQ+gerLs4ltQ7QgQCeNwIndPWPIow/3U/oPMoO4BKu
e0gAoLhhwC2RlwQtDoqZsz6Xr1nsQshu
=yQHX
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ellison Marks  
View profile  
 More options Nov 2 2012, 7:08 pm
From: Ellison Marks <gty...@gmail.com>
Date: Fri, 2 Nov 2012 16:08:29 -0700 (PDT)
Local: Fri, Nov 2 2012 7:08 pm
Subject: Re: Pyramid - Adding ZEO to an existing ZODB project

Yeah, I've been doing a little more reading (particularly on the paster
config files), and it seems like the ZEO doc you referenced (that was the
one I was reading in the first place) is slightly misleading. For one
thing, pyramid_tm handles the repoze.tm2 slot mentioned there, as well as
the repoze.retry slot. It also has some automatic configuration with a
tween, so the pipeline is unnecessary. For another, the example zeo.conf
file it lists doesn't seem to work in my setup(win7 64 bit python 2.7), as
the address part of it errors out down the callstack, saying it requires an
integer. I switched it to localhost:9001 and it appears to work. The
problem I'm having now is, I can't find any docs at all on zeo.conf, to see
if there's anything else I should tweak in there.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »