{"id":492,"date":"2007-11-07T00:21:01","date_gmt":"2007-11-07T00:21:01","guid":{"rendered":"http:\/\/blografia.net\/vicm3\/?p=492"},"modified":"2007-11-07T00:21:01","modified_gmt":"2007-11-07T00:21:01","slug":"zope-continuado","status":"publish","type":"post","link":"https:\/\/blografia.net\/vicm3\/2007\/11\/zope-continuado\/","title":{"rendered":"Zope&#8230; continuado."},"content":{"rendered":"<p>Indagando mucho mas en la migracion de squishdot de zope2.7 a 2.9, <a href=\"http:\/\/www.nabble.com\/Broken-postings-after-migration-to-2.8.4.-t828997.html\">finalmente he dado con:<\/a><\/p>\n<p>\u00bbRe: Broken postings after migration to 2.8.4.<\/p>\n<p>by Ignacio Valdes Jan 20, 2006; 08:06am :: Rate this Message: <\/p>\n<p>**Hello all, thanks to Chris Withers magic, here is the fix for old<br \/>\nSquishdot sites migrating to Zope 2.8:<\/p>\n<p>First, the problem: \u00abintSet has been deprecated for about 5 years, and<br \/>\nSquishdot hasn&#8217;t used it in about as long. Sadly, Squishdot sites<br \/>\ncreated before then will, apparently, still have some intSet&#8217;s in<br \/>\nthem. In 2.8, the class was finally removed, and so Zope no longer<br \/>\nknows what to do with the data that makes up the intSet object, hence<br \/>\nthe KeyErrors you were getting. fixdot basically goes through all the<br \/>\npostings and replaces any intSets it finds with IISets, which are the<br \/>\nnew version.\u00bb<br \/>\n**<\/p>\n<p>To run fixdot, create the file fixdot.py in the Extensions<br \/>\nsubdirectory in the filesystem of your current zope that is NOT 2.8.x<br \/>\nie you must run this BEFORE you migrate to 2.8.x.  fixdot.py should<br \/>\ncontain the following code:<\/p>\n<p>from StringIO import StringIO<br \/>\nfrom intSet import intSet<br \/>\nfrom BTrees.IIBTree import IISet<\/p>\n<p>def fixdot(self):<br \/>\n     output = StringIO()<br \/>\n     for id,posting in self.data.items():<br \/>\n         if isinstance(posting.ids,intSet):<br \/>\n             posting.ids = IISet(posting.ids)<br \/>\n             print >> output, &#8216;Fixed &#8216;,id<\/p>\n<p>     print >> output, &#8216;Done!&#8217;<br \/>\n     return output.getvalue()<\/p>\n<p>After creating fixdot.py in the Extensions folder, go to the ZMI and<br \/>\nin the Squishdot site subdirectory, Add an External Method. Fill in<br \/>\nfixdot for all of the fields it asks for. Then run it. For example, it<br \/>\ncan be invoked as follows: http:\/\/localhost:8080\/squishinstance\/fixdot<\/p>\n<p>where squishinstance is the name of your old squishinstance. After<br \/>\nthis has run, it should be migratable to 2.8.x Good luck!<\/p>\n<p>Other edits I did:<\/p>\n<p>http:\/\/download.soth.at\/Squishdot-Zope-2.8.1-final-addSquishdotForm-patch.txt <br \/>\nWhich are linked from the article discussion at:<br \/>\nhttp:\/\/www.squishdot.org\/1120592957\/index_html<\/p>\n<p>There may also be an issue with TinyTablePlus on 2.8.x that requires a<br \/>\nsmall edit but I&#8217;m no longer sure what that is.<\/p>\n<p>&#8212; IV<br \/>\n\u00bb<\/p>\n<p>Ahora en lo que estoy trabajando es en un par de chroots (uno de sarge y otro de etch, realmente prefiero hacer un tiradero en el par de chroots, creados con debootstrap, eso y que la conexion con nisamox, desde mi oficina es de casi 2mbits)  donde he estado trabajando puesto que el servidor de producci\u00f3n ya esta viejito&#8230; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Indagando mucho mas en la migracion de squishdot de zope2.7 a 2.9, finalmente he dado con: \u00bbRe: Broken postings after migration to 2.8.4. by Ignacio Valdes Jan 20, 2006; 08:06am :: Rate this Message: **Hello all, thanks to Chris Withers &hellip; <a href=\"https:\/\/blografia.net\/vicm3\/2007\/11\/zope-continuado\/\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":845,"url":"https:\/\/blografia.net\/vicm3\/2012\/02\/scratch-on-debian\/","url_meta":{"origin":492,"position":0},"title":"Scratch on Debian","author":"vicm3","date":"7 febrero, 2012","format":false,"excerpt":"For some unknown reason, at least for me (license most likely) there is no Scratch package in Debian as long I remember the problem could be that the name and the mascot are trademarks (same problem that with Firefox \/ Iceweasel), any case there is a .deb package for Ubuntu,\u2026","rel":"","context":"En \u00abDebraye\u00bb","block_context":{"text":"Debraye","link":"https:\/\/blografia.net\/vicm3\/category\/debraye\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":710,"url":"https:\/\/blografia.net\/vicm3\/2010\/01\/how-to-help-someone-use-a-computer\/","url_meta":{"origin":492,"position":1},"title":"How to help someone use a computer.","author":"vicm3","date":"26 enero, 2010","format":false,"excerpt":"Computer people are generally fine human beings, but nonetheless they do a lot of inadvertent harm in the ways they \"help\" other people with their computer problems. Now that we're trying to get everyone on the net, I thought it might be helpful to write down in one place everything\u2026","rel":"","context":"En \u00abSin categor\u00eda\u00bb","block_context":{"text":"Sin categor\u00eda","link":"https:\/\/blografia.net\/vicm3\/category\/sin-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1407,"url":"https:\/\/blografia.net\/vicm3\/2014\/12\/two-things-are-infinite-the-universe-and-human-stupidity\/","url_meta":{"origin":492,"position":2},"title":"Two things are infinite: the universe and human stupidity","author":"vicm3","date":"10 diciembre, 2014","format":false,"excerpt":"I think that reality is better than fiction, so take this as a fiction story... well short of... The full quote that gives nave to this post it's \"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.\" Albert Einstein. Monday lost five hours\u2026","rel":"","context":"En \u00abDebraye\u00bb","block_context":{"text":"Debraye","link":"https:\/\/blografia.net\/vicm3\/category\/debraye\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":57,"url":"https:\/\/blografia.net\/vicm3\/2005\/02\/on_php_flags\/","url_meta":{"origin":492,"position":3},"title":"On php flags","author":"vicm3","date":"15 febrero, 2005","format":false,"excerpt":"Well as this post was originally on english and i have two powerful reasons to no translate is lefted as in the original... apologies to the spanish readers: Posted: Mon Feb 14, 2005 1:48 pm Before i have complained about had to use register_globals & magic_quotes... as for we host\u2026","rel":"","context":"En \u00abGeneral\u00bb","block_context":{"text":"General","link":"https:\/\/blografia.net\/vicm3\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1104,"url":"https:\/\/blografia.net\/vicm3\/2013\/09\/svn-and-its-new-sqlite-format-again\/","url_meta":{"origin":492,"position":4},"title":"SVN and its new sqlite format again","author":"vicm3","date":"10 septiembre, 2013","format":false,"excerpt":"I been a user of svn for a quite long time now, and had to work around certain \"features\", like berkeley.db locking on multiuser home directories, the migration to FS logs, and problems working with multi platform environments, most of it its documented on this blog. Yeah, git is sexy,\u2026","rel":"","context":"En \u00abDebraye\u00bb","block_context":{"text":"Debraye","link":"https:\/\/blografia.net\/vicm3\/category\/debraye\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1378,"url":"https:\/\/blografia.net\/vicm3\/2014\/09\/wordpress-xmlrpc-ddos-mitigation\/","url_meta":{"origin":492,"position":5},"title":"WordPress xmlrpc DDOS mitigation","author":"vicm3","date":"27 septiembre, 2014","format":false,"excerpt":"Well not long ago DH contacted me with this dreaded message: Hello, I'm writing you about your domain: foo.bar Specifically the file: xmlrpc.php This file is used for modifying your wordpress install from 3rd party\u00a0programs, like mobile site designers, desktop client programs, and pretty\u00a0much anything besides the wordpress control panel\u2026","rel":"","context":"En \u00abplanetalinux\u00bb","block_context":{"text":"planetalinux","link":"https:\/\/blografia.net\/vicm3\/category\/planetalinux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":0,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blografia.net\/vicm3\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}