*** shentonfreude has joined #zope | 00:15 | |
*** shentonfreude has quit IRC | 00:23 | |
*** eperez has quit IRC | 00:55 | |
*** avoinea has quit IRC | 01:02 | |
*** MrTango has quit IRC | 01:10 | |
*** ccomb has quit IRC | 01:20 | |
*** ccomb has joined #zope | 01:26 | |
*** evilbungle has quit IRC | 01:52 | |
*** TomBlockley has quit IRC | 01:54 | |
*** evilbungle has joined #zope | 01:59 | |
*** _mup_ has quit IRC | 02:00 | |
*** J1m has quit IRC | 02:00 | |
*** _mup_ has joined #zope | 02:00 | |
*** supton has quit IRC | 02:02 | |
*** TomBlockley has joined #zope | 02:07 | |
*** kiorky has quit IRC | 02:10 | |
*** kiorky has joined #zope | 02:11 | |
*** TomBlockley has quit IRC | 02:43 | |
*** alecm has quit IRC | 02:43 | |
*** alecm has joined #zope | 02:43 | |
*** alecm has joined #zope | 02:43 | |
*** TomBlockley has joined #zope | 02:44 | |
*** AnneGilles has quit IRC | 02:50 | |
*** TomBlockley has quit IRC | 02:52 | |
*** runyaga has quit IRC | 02:53 | |
*** TomBlockley has joined #zope | 03:04 | |
*** daMaestro has quit IRC | 03:07 | |
*** J1m has joined #zope | 03:18 | |
*** TomBlockley has quit IRC | 03:20 | |
*** kiorky has quit IRC | 03:25 | |
*** kiorky has joined #zope | 03:26 | |
*** Spanktar has quit IRC | 03:26 | |
*** alecm has quit IRC | 03:31 | |
*** evilbungle has quit IRC | 03:38 | |
*** RichardBarrell has quit IRC | 03:40 | |
*** supton has joined #zope | 03:50 | |
*** mcdonc has quit IRC | 03:50 | |
*** tiwula has quit IRC | 04:06 | |
*** tiwula has joined #zope | 04:25 | |
*** mr_jolly has quit IRC | 04:26 | |
*** J1m has quit IRC | 04:26 | |
*** mr_jolly has joined #zope | 04:28 | |
*** mr_jolly has left #zope | 04:29 | |
*** ccomb has quit IRC | 05:24 | |
*** Gautam has joined #zope | 05:44 | |
*** patul has joined #zope | 05:50 | |
*** Rakshith has joined #zope | 06:08 | |
*** alexpilz has joined #zope | 06:16 | |
*** tiwula has quit IRC | 06:29 | |
*** Dikeshwar has joined #zope | 07:02 | |
*** dayne has joined #zope | 07:16 | |
*** Sada has joined #zope | 07:18 | |
*** dayne has quit IRC | 07:54 | |
*** shentonfreude has joined #zope | 08:34 | |
*** agroszer has joined #zope | 09:00 | |
*** mr_jolly has joined #zope | 09:04 | |
*** __mac__ has joined #zope | 09:13 | |
*** zagy has joined #zope | 09:16 | |
*** __mac__1 has joined #zope | 09:18 | |
*** __mac__ has quit IRC | 09:20 | |
*** MooCalifornia is now known as MooInteratlantic | 09:29 | |
*** goschtl has joined #zope | 09:32 | |
*** yvl has joined #zope | 09:35 | |
*** mr_jolly has quit IRC | 09:38 | |
*** mr_jolly has joined #zope | 09:41 | |
*** AnneGilles has joined #zope | 09:50 | |
*** MrWu has joined #zope | 10:15 | |
*** MrWu has quit IRC | 10:17 | |
*** MrWu has joined #zope | 10:18 | |
*** AnneGilles has quit IRC | 10:37 | |
*** goschtl has quit IRC | 10:51 | |
*** sunew has joined #zope | 10:51 | |
*** MrTango has joined #zope | 10:54 | |
*** Sada has quit IRC | 10:55 | |
*** eperez has joined #zope | 11:21 | |
*** menesis has joined #zope | 11:23 | |
*** goschtl has joined #zope | 11:26 | |
*** menesis has quit IRC | 11:27 | |
*** menesis has joined #zope | 11:31 | |
*** goschtl has quit IRC | 11:36 | |
*** goschtl has joined #zope | 11:36 | |
*** menesis has quit IRC | 11:40 | |
*** menesis has joined #zope | 11:41 | |
*** menesis1 has joined #zope | 11:45 | |
*** menesis has quit IRC | 11:45 | |
*** menesis1 is now known as menesis | 11:46 | |
*** Sada has joined #zope | 11:48 | |
*** __mac__1 has quit IRC | 11:51 | |
*** __mac__ has joined #zope | 11:52 | |
*** MrTango has quit IRC | 11:56 | |
*** J1m has joined #zope | 11:58 | |
*** zagy1 has joined #zope | 12:08 | |
*** zagy has quit IRC | 12:10 | |
*** MrTango has joined #zope | 12:10 | |
*** MrTango has quit IRC | 12:17 | |
*** zagy1 has quit IRC | 12:28 | |
*** zagy has joined #zope | 12:28 | |
*** MrTango has joined #zope | 12:31 | |
*** do3cc has joined #zope | 12:39 | |
*** teix has joined #zope | 12:43 | |
*** MrTango has quit IRC | 12:47 | |
*** batlock666 has joined #zope | 12:48 | |
*** goschtl has quit IRC | 13:00 | |
*** goschtl has joined #zope | 13:01 | |
*** ccomb has joined #zope | 13:08 | |
*** teix has quit IRC | 13:13 | |
*** mitchell`off is now known as mitchell` | 13:30 | |
*** teix has joined #zope | 13:34 | |
*** goschtl_ has joined #zope | 14:00 | |
*** goschtl has quit IRC | 14:01 | |
*** goschtl_ is now known as goschtl | 14:01 | |
*** mr_jolly has joined #zope | 14:02 | |
*** MrWu has quit IRC | 14:04 | |
*** AnneGilles has joined #zope | 14:08 | |
*** dayne has joined #zope | 14:15 | |
*** MrWu has joined #zope | 14:26 | |
*** alexpilz1 has joined #zope | 14:27 | |
*** alexpilz has quit IRC | 14:29 | |
*** J1m has quit IRC | 14:31 | |
*** goschtl has quit IRC | 14:34 | |
*** goschtl has joined #zope | 14:35 | |
*** goschtl has quit IRC | 14:47 | |
*** goschtl has joined #zope | 14:53 | |
*** MrWu has quit IRC | 14:54 | |
*** shentonfreude has quit IRC | 15:00 | |
*** benji has joined #zope | 15:00 | |
*** ccomb has quit IRC | 15:07 | |
*** bloodbare has joined #zope | 15:44 | |
bloodbare | hey guys , does anybody know why on a mod-wsgi3.3 py2.6 zope 2.13.8 I get this error on startup : http://pastie.org/2836241 | 15:45 |
---|---|---|
bloodbare | a NameError: global name 'setNumberOfThreads' is not defined | 15:45 |
mitchell` | Somehow setNumberOfThreads is being called twice and while it deletes the reference to itself from ZServer.PubCore, it doesn't delete the reference used by Zope2.Startup which is imported from the ZServer root package. | 15:46 |
kosh | is there a newer version of zope you can try? wsgi support is extremely new | 15:53 |
bloodbare | kosh: I'm using plone on top of it .. so is quite risky | 15:54 |
kosh | then I would just not use wsgi | 15:54 |
*** goschtl_ has joined #zope | 15:55 | |
bloodbare | kosh: I know is a … $$ question for a ONG | 15:55 |
bloodbare | NGO | 15:56 |
*** patul has quit IRC | 15:56 | |
kosh | huh? | 15:56 |
*** ccomb has joined #zope | 15:56 | |
kosh | how would wsgi save money? | 15:56 |
bloodbare | kosh: the NGO has a service provider for ngo's that offers php/wsgi at one price and VPS another price | 15:57 |
*** goschtl has quit IRC | 15:57 | |
*** goschtl_ is now known as goschtl | 15:57 | |
kosh | ah interesting | 15:57 |
bloodbare | kosh: 3 times more expensive vps than wsgi .. I also don't understand but they asked me to help them to move their plone there | 15:58 |
bloodbare | kosh: if it's possible | 15:58 |
*** ajkaanbal has joined #zope | 15:58 | |
kosh | there are some wsgi fixes in versions of zope higher then 2.13.8 so I would setup a test server with 2.13.10 and see if it works | 15:59 |
*** J1m has joined #zope | 15:59 | |
bloodbare | thanks kosh, I'll try :) | 15:59 |
mitchell` | bloodbare: if you see MatthewWilkes about, collar him: he's been doing a lot of work on Zope & WSGI at the moment | 16:00 |
bloodbare | ok , thanks mitchell` | 16:01 |
bloodbare | mitchell`: I installed 3 years ago a big self-service plone on top of zope 2.10 with wsgi suport and worked well | 16:02 |
bloodbare | mitchell`: so I supposed that on 2.12 everything would go more fluent | 16:02 |
*** Gautam has quit IRC | 16:03 | |
*** AnneGilles has quit IRC | 16:05 | |
*** m8 has joined #zope | 16:10 | |
*** dayne has quit IRC | 16:30 | |
*** Arfrever has joined #zope | 16:42 | |
*** Dikeshwar has quit IRC | 16:47 | |
*** fredvd has joined #zope | 16:48 | |
*** Rakshith has quit IRC | 17:20 | |
*** Sada has quit IRC | 17:21 | |
*** supton has quit IRC | 17:30 | |
*** J1m has quit IRC | 17:42 | |
*** J1m has joined #zope | 17:43 | |
*** ajkaanbal has quit IRC | 17:45 | |
*** ajkaanbal has joined #zope | 17:45 | |
*** runyaga has joined #zope | 18:00 | |
*** runyaga has quit IRC | 18:00 | |
*** runyaga has joined #zope | 18:00 | |
*** goschtl has quit IRC | 18:18 | |
*** AnneGilles has joined #zope | 18:21 | |
*** sunew has quit IRC | 18:23 | |
*** runyaga_ has joined #zope | 18:24 | |
*** batlock666 has quit IRC | 18:24 | |
*** runyaga has quit IRC | 18:26 | |
*** AnneGilles has quit IRC | 18:27 | |
*** __mac__ has quit IRC | 18:33 | |
*** tiwula has joined #zope | 18:33 | |
*** supton has joined #zope | 18:40 | |
*** TomBlockley has joined #zope | 18:45 | |
*** fredvd has quit IRC | 18:51 | |
*** agroszer has quit IRC | 19:00 | |
*** ccomb has quit IRC | 19:21 | |
*** Spanktar has joined #zope | 19:22 | |
*** TomBlockley has quit IRC | 19:29 | |
*** DreadPirateBob has joined #zope | 19:34 | |
DreadPirateBob | I've got a zope 2.10 instance that moved datacenters, but it has some psycopg connections that point to the old IP addresses. Now I can't do anything through the manage interface as (every?) page load tries to connect to that IP until it times out. | 19:35 |
DreadPirateBob | Any way to fix this? | 19:35 |
betabug | is this because it tries to find your user in the SQL db? | 19:36 |
DreadPirateBob | possibly | 19:36 |
DreadPirateBob | But it let me log in and show the manage home page easily enough, I just can't get down into the www/site dir | 19:36 |
supton | DreadPirateBob: get your hands dirty with ./bin/instance debug, change the ZPsycopgDA settings programmatically, then commit a transaction. | 19:37 |
mitchell` | ^^ | 19:37 |
DreadPirateBob | supton, mitchell`any recommended reading on the subject? | 19:43 |
DreadPirateBob | I've got a debug prompt, but I don't really know where to go from here. | 19:44 |
supton | DreadPirateBob: let's first assume you know where your ZPsycopgDA instance is located (path, I mean)? | 19:45 |
DreadPirateBob | I have /www/site/psycopg/ and /www/site/psycopg_newsletter are my two ZPsycopgDA objects | 19:45 |
supton | DreadPirateBob: and /www/site is a folder relative to the root app object. | 19:45 |
*** AnneGilles has joined #zope | 19:46 | |
DreadPirateBob | right | 19:46 |
supton | DreadPirateBob: >>> site = app.unrestrictedTraverse('/www/site') | 19:46 |
supton | DreadPirateBob: >>> da1 = site['psycopg'] | 19:46 |
supton | DreadPirateBob: >>> da1.__dict__ # let's see what's being stored | 19:47 |
supton | DreadPirateBob: find the attribute name that is storing your hostname/IP | 19:47 |
DreadPirateBob | empty. :( | 19:47 |
supton | DreadPirateBob: what do you mean empty? | 19:47 |
supton | what is empty? | 19:47 |
DreadPirateBob | __dict__ is {} | 19:47 |
DreadPirateBob | is it supposed to be site hasattr psycopg | 19:48 |
DreadPirateBob | err, site hasattr psycopg | 19:48 |
DreadPirateBob | repr da1 hangs | 19:48 |
supton | DreadPirateBob: time for you to look at source code for ZPsycopgDA and figure out how/where it stores the IP or hostname | 19:48 |
supton | to perform brain surgery, please first consult our lovely image of the brain, courtesy of our friends in the radiology department ;) | 19:50 |
*** TomBlockley has joined #zope | 19:50 | |
mitchell` | DreadPirateBob: try http://pastie.org/2837357 | 19:50 |
mitchell` | replacing the new connection string as necessary, natch. | 19:53 |
DreadPirateBob | I ran zopectl debug then started pasting your script | 19:54 |
DreadPirateBob | I get an import error (no module named hooks) on zope.component.hooks import setSite | 19:54 |
mitchell` | ah, just ignore that bit then | 19:56 |
mitchell` | it's for Plone 4+ | 19:56 |
mitchell` | sorry, Zope 2.11+ | 19:56 |
mitchell` | I think | 19:56 |
DreadPirateBob | I'm getting an attribute error NoneType object has no attribute __of__ | 19:57 |
DreadPirateBob | on the login call | 19:57 |
supton | DreadPirateBob: that means you likely have a different username than mitchell`'s script assumes | 20:00 |
*** daMaestro has joined #zope | 20:00 | |
*** daMaestro has joined #zope | 20:00 | |
* DreadPirateBob hates being such a n00b | 20:01 | |
supton | DreadPirateBob: adjust accordingly... that login() gets a user object, but it has to be wrapped in an acquisition context (thus __of__). you cannot wrap None this way, and you get None because getUserId('this_id_not_here') returns None | 20:01 |
supton | DreadPirateBob: no worries, we are here to help... | 20:01 |
mitchell` | :) | 20:02 |
supton | meet half-way with a few adjustments to the examples, and you will likely find what you need | 20:02 |
DreadPirateBob | Ugh, the print da1.connection_string is hanging | 20:02 |
*** s34n_ has joined #zope | 20:02 | |
*** sdeng has joined #zope | 20:02 | |
DreadPirateBob | I used the site = app.unrestrictedTraverse supton pasted above | 20:02 |
supton | DreadPirateBob: >>> print type(da1) | 20:03 |
s34n_ | I just got handed a harddrive for an ols zope server. | 20:03 |
supton | DreadPirateBob: >>> from Acquisition import aq_base | 20:03 |
mitchell` | ah - DreadPirateBob the username you replaced it with - is it a user retrieved from SQL? | 20:03 |
supton | DreadPirateBob: >>> real_da1 = aq_base(da1) | 20:03 |
s34n_ | the server is now dead and I'm supposed to revive the data from the harddrive | 20:03 |
s34n_ | it is zope 2 circa 2006 | 20:04 |
mitchell` | s34n_: Data.fs should copy fairly well, just so long as you build out the same code. | 20:04 |
supton | DreadPirateBob: >>> print real_da1.__dict__ | 20:04 |
supton | s34n_: define old? | 20:04 |
* mitchell` lets supton take it from here. Home time. | 20:04 | |
*** mitchell` is now known as mitchell`off | 20:04 | |
s34n_ | supton: zope 2 circa 2006 | 20:04 |
supton | wow, #zope is usually such a ghost town | 20:04 |
supton | s34n_: >= 2.7? | 20:05 |
s34n_ | 2.9 | 20:05 |
mitchell`off | supton: https://dndg.it/cgi-bin/gitweb.cgi?p=public/psycopg2.git;a=blob;f=ZPsycopgDA/DA.py;h=f515437114090760a21ef7656e934626e7661408;hb=HEAD may be some use. | 20:05 |
s34n_ | I don't want to attempt to build another zope 2 server | 20:06 |
supton | s34n_: just make sure you have all the same products in your products dir, and all the add-ons that were installed (for any persistent class references) previously need to be installed in your same zope instance | 20:06 |
*** AnneGilles has quit IRC | 20:06 | |
s34n_ | but what are my options for extractive html. etc to revive the static content? | 20:06 |
DreadPirateBob | supton, real_da1.__dict__ is the empty dict | 20:07 |
supton | s34n_: download the version of zope you need, then check for hotfixes for that version to apply (security), then download all add-ons you need (same versions!), then try migrating your Data.fs | 20:07 |
s34n_ | I have no idea what Products were on the old server | 20:07 |
s34n_ | how can I know? | 20:07 |
DreadPirateBob | they're in the Products folder of your instance home | 20:07 |
DreadPirateBob | close to where you found Data.fs | 20:08 |
supton | DreadPirateBob: >>> print type(da1) | 20:08 |
DreadPirateBob | <type 'ImplicitAcquirerWrapper'> | 20:08 |
*** eperez has quit IRC | 20:08 | |
supton | s34n_: look in zope.conf for instance.... find references to all product folders in zope.conf, then look in those dirs for an installed add-on products. | 20:08 |
DreadPirateBob | real_da1 is <class 'Products.ZPsycopgDA.DA.Connection'> | 20:08 |
supton | DreadPirateBob: >>> print hasattr(real_da1, 'connection_string') | 20:09 |
s34n_ | I see ZMySQLDA v1.4 | 20:09 |
*** goschtl has joined #zope | 20:10 | |
supton | DreadPirateBob: your best bet may be to use the login() method pasted in the example, then try using da1.manage_edit(title='Some title here', connection_string='my psycogpg connection string here') | 20:11 |
supton | DreadPirateBob: manage_edit() will only work after calling newSecurityManager() (permission checking) | 20:11 |
s34n_ | is there a way to dump the "file system" into a real filesystem? | 20:11 |
supton | DreadPirateBob: then you check that da1.connection_string is non-empty... hopefully, then you commit transaction once edited | 20:12 |
supton | s34n_: what do you mean? What is your intent with the content in the ZODB? | 20:12 |
supton | s34n_: that very much depends on what is stored | 20:13 |
s34n_ | I want to dissect the content of the site and move it into something more current | 20:13 |
s34n_ | I don't want to rebuild a working zope2 server in order to do it | 20:14 |
s34n_ | I'd rather build a current version of zope or grok or whatever and move it there | 20:15 |
s34n_ | but obviously I need to see the source content | 20:15 |
betabug | it will be much, much more difficult with going directly to a current zope version | 20:16 |
betabug | basically on that road, the first stop would be to get the original version of zope up and running | 20:16 |
s34n_ | I doubt the site was very complicated | 20:16 |
betabug | and as for grok, I guess it's out of the question without intricate knowledge of the old products | 20:16 |
betabug | did the old site use products or was it developed TTW (e.g. with DTML)? | 20:17 |
s34n_ | I don't think there were old products, except for ZMySQLDA | 20:17 |
s34n_ | I don't know what TTW is, but I'm guessing there were only a handful of templated pages | 20:17 |
betabug | so it *could* be that it was done TTW with "Script (Python)" objects, DTML and ZSql | 20:18 |
s34n_ | yes | 20:18 |
betabug | TTW == Through The Web | 20:18 |
s34n_ | oh. yes. totally TTW | 20:18 |
*** TomBlockley has quit IRC | 20:18 | |
supton | s34n_: if it is just Zope and ZMySQLDA that you have to deal with, it might work to use a newer Zope version (and a compatible ZMySQLDA), but YMMB | 20:18 |
s34n_ | no real admin or dev on this site | 20:18 |
supton | YMMV | 20:18 |
betabug | and you have the sql db that came with it? | 20:18 |
s34n_ | yes | 20:19 |
betabug | well, yeah, maybe do what supton said | 20:19 |
betabug | but personally I'd invest an hour more to build the "old version" site first | 20:19 |
betabug | (but that's given that I know that old stuff) | 20:19 |
supton | betabug: and I think that with newer Zope, being egg-based, things like Products.ZSQLMethods are spun off into peripheral products instead of the core, IIRC... can't remember compelete | 20:19 |
supton | s34n_: ^^ | 20:20 |
s34n_ | I did a repozo | 20:20 |
betabug | yeah, there might be dependencies that will have to be hunted down | 20:20 |
supton | s34n_: ditto do betabug's suggestion of investing a small amount of time to restore the old version | 20:20 |
betabug | dunno, do they still have dtml in 2.13? | 20:20 |
s34n_ | ok | 20:21 |
betabug | s34n_: a repozo backup gets you the ZODB, you have the sql too? | 20:21 |
supton | betabug: dunno, I'll look in my omeletee | 20:21 |
s34n_ | So repozo have me 2 files, a data file and an fs file | 20:21 |
supton | betabug: looks like App/dtml is part of the Zope2 distribution | 20:22 |
betabug | and you will need to get the Data.fs out of the repozo files again - probably best done with the same version of repozo that made the backup | 20:22 |
supton | betabug: gotta have dtml for ZMI anyway | 20:22 |
betabug | supton: ok, so they didn't yet throw it out :-) | 20:22 |
DreadPirateBob | supton, mitchell`off I think I got it. Now I need to figure out what else is causing it to hang | 20:23 |
supton | DreadPirateBob: good luck | 20:23 |
s34n_ | so grab the 2 files from repoze, plus Data.fs for good measure, and the mysql db | 20:38 |
s34n_ | and move those to a new zope 2 instance | 20:38 |
*** do3cc has quit IRC | 20:42 | |
*** eperez has joined #zope | 21:09 | |
DreadPirateBob | Yay! | 21:11 |
DreadPirateBob | I'm back! | 21:11 |
*** menesis has quit IRC | 21:11 | |
DreadPirateBob | Ok, scripting question; I've got a zope site that has a bunch of pages that may have fully qualified URL links. Any way to quickly replace them with full path URLs? | 21:12 |
*** menesis has joined #zope | 21:13 | |
supton | DreadPirateBob: for content in ZODB recursively walk all folders and items (OFS API) and check each object one-by-one; you must know the attribute name containing the content for each type of item you are storing. For content in relational database, if any, I have no idea. | 21:21 |
betabug | DreadPirateBob: in what form are they? inside text attributes on some objects? | 21:21 |
supton | DreadPirateBob: not likely a "quick" way | 21:21 |
supton | DreadPirateBob: more likely than not, this can be trivially scripted, but by that I mean that you could write 40-50 lines of Python code to do this. | 21:21 |
betabug | well, if it's inside sql, you can dump it, edit it with text tools and reimport it | 21:21 |
supton | betabug, DreadPirateBob: and you could always try dumping out whatever you have in ZODb via WebDAV to files to do mass-search-replace on (might work for dtml and page templates, never tried this). | 21:22 |
betabug | might work | 21:23 |
supton | ZODB --(DAV)--> bunch of files --(sed)--> bunch of corrected text files --(DAV upload)--> ZODB | 21:23 |
betabug | assuming they are the right kind of objects and they are well behaved | 21:24 |
betabug | if they were abused (e.g. storing stuff in properties on them) things might go wrong | 21:24 |
supton | DreadPirateBob: or set up your old site, and use funnelweb or similar to get what you need by scraping your site. ;) | 21:24 |
DreadPirateBob | This site is never destined for production use again, so I'm just going to fix up the main site template and let the client set up a hosts file if it gets too messy to keep rewriting the URL. | 21:25 |
*** teix has quit IRC | 22:11 | |
*** s34n_ is now known as s34n | 22:16 | |
*** Spanktar has quit IRC | 22:42 | |
*** goschtl has quit IRC | 23:00 | |
*** goschtl has joined #zope | 23:09 | |
*** daMaestro has quit IRC | 23:11 | |
*** daMaestro has joined #zope | 23:12 | |
*** goschtl has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!