CIA-7 | charlie_x * r116959 Products.CMFDefault/Products/CMFDefault/browser/portal/ (tests/portal_config.txt interfaces.py): Check for valid charset added and test for it. | 00:00 |
---|---|---|
*** Moo-_-_ has quit IRC | 00:14 | |
*** moo has joined #zope | 00:14 | |
*** moo is now known as Guest1936 | 00:15 | |
*** John has quit IRC | 00:17 | |
*** Wu has joined #zope | 00:22 | |
*** davisagli is now known as davisagli|away | 00:30 | |
*** davisagli|away is now known as davisagli | 00:32 | |
*** thetetet has joined #zope | 00:34 | |
*** alexpilz has left #zope | 00:35 | |
*** thetet has quit IRC | 00:38 | |
*** davisagli is now known as davisagli|away | 00:38 | |
*** mr_jolly has quit IRC | 00:43 | |
*** davisagli|away is now known as davisagli | 00:44 | |
*** mr_jolly has joined #zope | 00:46 | |
*** davisagli is now known as davisagli|away | 00:46 | |
*** RichardBarrell has joined #zope | 00:47 | |
*** John has joined #zope | 00:50 | |
*** Arfrever has joined #zope | 00:57 | |
*** John has quit IRC | 01:03 | |
*** Hypergraphe has quit IRC | 01:08 | |
*** thetetet has quit IRC | 01:11 | |
*** JaRoel|4D has quit IRC | 01:23 | |
*** davisagli|away is now known as davisagli | 01:27 | |
*** JaRoel|4D has joined #zope | 01:28 | |
*** ToreadorVampire has quit IRC | 01:43 | |
*** Theuni1 has quit IRC | 01:51 | |
*** JaRoel|4D has quit IRC | 01:51 | |
*** JaRoel|4D has joined #zope | 01:52 | |
*** JaRoel|4D has quit IRC | 01:56 | |
*** ccomb has quit IRC | 02:00 | |
*** mr_jolly has left #zope | 02:09 | |
*** John has joined #zope | 02:29 | |
*** MrTango has quit IRC | 02:47 | |
*** davisagli is now known as davisagli|away | 03:07 | |
*** davisagli|away is now known as davisagli | 03:16 | |
*** davisagli is now known as davisagli|away | 03:17 | |
*** John has quit IRC | 03:23 | |
*** huajie has joined #zope | 03:49 | |
*** davisagli|away is now known as davisagli | 04:10 | |
*** davisagli is now known as davisagli|away | 04:17 | |
*** davisagli|away is now known as davisagli | 04:18 | |
*** davisagli is now known as davisagli|away | 04:18 | |
*** davisagli|away is now known as davisagli | 04:35 | |
*** davisagli is now known as davisagli|away | 04:36 | |
*** huajie has quit IRC | 04:53 | |
*** davisagli|away is now known as davisagli | 05:08 | |
*** povbot has joined #zope | 05:14 | |
*** yvl has quit IRC | 05:14 | |
*** mgedmin has joined #zope | 05:14 | |
*** yvl has joined #zope | 05:15 | |
*** tiwula has joined #zope | 05:26 | |
*** povbot has joined #zope | 05:44 | |
-anthony.freenode.net- [freenode-info] if you're at a conference and other people are having trouble connecting, please mention it to staff: http://freenode.net/faq.shtml#gettinghelp | 05:44 | |
*** mgedmin has joined #zope | 05:45 | |
*** yvl has joined #zope | 05:46 | |
*** redir has quit IRC | 06:23 | |
*** minskmaz has joined #zope | 07:04 | |
*** davisagli is now known as davisagli|away | 07:04 | |
*** minskmaz has left #zope | 07:10 | |
*** kleist has joined #zope | 07:11 | |
*** tiwula has quit IRC | 07:23 | |
*** davisagli|away is now known as davisagli | 07:24 | |
*** mahiti_skt has joined #zope | 07:44 | |
*** davisagli is now known as davisagli|away | 07:56 | |
*** davisagli|away is now known as davisagli | 07:58 | |
*** alecm has quit IRC | 07:59 | |
*** davisagli is now known as davisagli|away | 08:01 | |
*** alecm has joined #zope | 08:05 | |
*** alecm has joined #zope | 08:05 | |
*** zagy has quit IRC | 08:09 | |
*** JaRoel|4D has joined #zope | 08:21 | |
*** milele has quit IRC | 08:41 | |
*** zagy has joined #zope | 08:43 | |
*** alexpilz has joined #zope | 08:48 | |
*** JaRoel|4D has quit IRC | 08:49 | |
*** __mac__ has joined #zope | 08:54 | |
*** sashav has joined #zope | 08:58 | |
*** redir has joined #zope | 09:07 | |
*** mcdonc has quit IRC | 09:10 | |
*** mcdonc has joined #zope | 09:19 | |
*** kiorky has quit IRC | 09:24 | |
*** d2m has joined #zope | 09:27 | |
*** kiorky has joined #zope | 09:29 | |
*** saju_m has joined #zope | 09:33 | |
*** saju_m has joined #zope | 09:33 | |
CIA-7 | icemac * r116960 /z3c.recipe.staticlxml/ (tags/0.2 tags/0.4 branches/0.2 branches/0.4): these branches are actually release tags | 09:34 |
saju_m | have any method to print values in datatype blob , for debug | 09:35 |
*** milele has joined #zope | 09:39 | |
CIA-7 | icemac * r116961 /z3c.recipe.staticlxml/branches/ (0.1 0.2.1 0.3 0.5): these brannches were equal to the tags with the same name (no difference), they can be recreated from the tags when needed | 09:48 |
CIA-7 | icemac * r116962 z3c.recipe.staticlxml/ (COPYRIGHT.txt LICENSE.txt bootstrap.py): Conform to repository policy. | 09:48 |
*** tisto has joined #zope | 09:56 | |
*** do3cc has quit IRC | 10:01 | |
CIA-7 | icemac * r116963 z3c.recipe.subprocess/ (3 files in 2 dirs): | 10:03 |
CIA-7 | - fixed namespace declaration | 10:03 |
CIA-7 | - fixed buildout.cfg to not use a not existing extra | 10:03 |
CIA-7 | - Using Python's ``doctest`` module instead of depreacted ``zope.testing.doctest``. | 10:03 |
CIA-7 | icemac * r116964 z3c.recipe.subprocess/ (bootstrap.py COPYRIGHT.txt LICENSE.txt): Conform to repository policy. | 10:03 |
*** neo|4D has joined #zope | 10:04 | |
*** JaRoel|4D has joined #zope | 10:06 | |
*** JaRoel|4D has quit IRC | 10:07 | |
*** JaRoel|4_ has joined #zope | 10:07 | |
*** MrTango has joined #zope | 10:08 | |
*** MJ has joined #zope | 10:13 | |
*** menesis has joined #zope | 10:22 | |
*** jakke has joined #zope | 10:27 | |
*** pthulin has joined #zope | 10:29 | |
*** pthulin has quit IRC | 10:30 | |
*** planetzopebot has quit IRC | 10:33 | |
*** cna has joined #zope | 10:33 | |
*** planetzopebot has joined #zope | 10:34 | |
*** pingviini has quit IRC | 10:40 | |
*** astoon has quit IRC | 10:42 | |
saju_m | what are the useful debugging functions like print and print in python? | 10:43 |
yvl | import pdb; pdb.set_trace() | 10:44 |
yvl | ;) | 10:44 |
yvl | the allmighty interactive debugger | 10:44 |
*** alexpilz has quit IRC | 10:48 | |
*** JaRoel|4_ has quit IRC | 10:50 | |
*** sunew has joined #zope | 10:52 | |
*** MatthewWilkes has joined #zope | 10:53 | |
*** pingviini has joined #zope | 10:56 | |
*** eperez has joined #zope | 10:59 | |
*** mcdonc has quit IRC | 11:03 | |
*** alexpilz has joined #zope | 11:16 | |
*** agroszer has joined #zope | 11:18 | |
saju_m | how use pprint.pprint for debugging, is it useful | 11:25 |
*** giampaolo has joined #zope | 11:26 | |
*** JaRoel|4D has joined #zope | 11:27 | |
*** agroszer has quit IRC | 11:27 | |
*** smita1 has joined #zope | 11:41 | |
*** ccomb has joined #zope | 11:43 | |
*** RichardBarrell has quit IRC | 11:48 | |
*** mr_jolly has joined #zope | 11:55 | |
*** dunny has quit IRC | 12:03 | |
CIA-7 | gotcha * r116965 /Sandbox/gotcha/five.taskqueue/ (docs/HISTORY.txt setup.py): Preparing release 0.1-alpha-1 | 12:20 |
CIA-7 | gotcha * r116966 /Sandbox/gotcha/ (five.taskqueue five.taskqueue_trunk): prepare | 12:20 |
CIA-7 | gotcha * r116967 /Sandbox/gotcha/ (five.taskqueue/tags five.taskqueue): prepare | 12:20 |
CIA-7 | gotcha * r116968 /Sandbox/gotcha/ (five.taskqueue/trunk five.taskqueue_trunk): prepare | 12:20 |
*** ccomb has quit IRC | 12:26 | |
*** hever has joined #zope | 12:28 | |
*** thetet has joined #zope | 12:30 | |
*** River_Rat has joined #zope | 12:32 | |
*** RiverRat has quit IRC | 12:34 | |
*** hever has quit IRC | 12:34 | |
*** hever has joined #zope | 12:35 | |
CIA-7 | gotcha * r116969 /Sandbox/gotcha/ (z3c.taskqueue z3c.taskqueue_trunk): prepare | 12:37 |
CIA-7 | gotcha * r116970 /Sandbox/gotcha/ (z3c.taskqueue/tags z3c.taskqueue): prepare | 12:37 |
CIA-7 | gotcha * r116971 /Sandbox/gotcha/ (z3c.taskqueue/trunk z3c.taskqueue_trunk): prepareprepareprepareprepareprepareprepareprepareprepare | 12:37 |
CIA-7 | gotcha * r116972 /Sandbox/gotcha/five.taskqueue/tags/0.1-alpha-1: Tagging 0.1-alpha-1 | 12:37 |
CIA-7 | gotcha * r116973 /Sandbox/gotcha/five.taskqueue/trunk/ (docs/HISTORY.txt setup.py): Back to development: 0.1-alpha-2 | 12:37 |
CIA-7 | gotcha * r116974 /Sandbox/gotcha/z3c.taskqueue/trunk/ (docs/HISTORY.txt setup.py): Preparing release 0.1-alpha-1 | 12:37 |
CIA-7 | gotcha * r116975 /Sandbox/gotcha/z3c.taskqueue/tags/0.1-alpha-1: Tagging 0.1-alpha-1 | 12:37 |
CIA-7 | gotcha * r116976 /Sandbox/gotcha/z3c.taskqueue/trunk/ (docs/HISTORY.txt setup.py): Back to development: 0.1-alpha-2 | 12:37 |
*** wosc has joined #zope | 12:42 | |
*** wosc has quit IRC | 12:43 | |
*** astoon has joined #zope | 12:47 | |
CIA-7 | tlotze * r116977 gocept.zeoraid/ (versions.cfg base.cfg): pinned last package versions known to work | 12:50 |
*** teix has joined #zope | 12:52 | |
*** sunew has quit IRC | 13:03 | |
*** sunew has joined #zope | 13:04 | |
*** hever has quit IRC | 13:10 | |
*** hever has joined #zope | 13:11 | |
*** JaRoel|4D has quit IRC | 13:23 | |
*** menesis has quit IRC | 13:29 | |
*** JaRoel|4D has joined #zope | 13:29 | |
*** wosc has joined #zope | 13:33 | |
*** sunew has quit IRC | 13:37 | |
*** sunew has joined #zope | 13:37 | |
*** tisto is now known as tisto|lunch | 13:39 | |
CIA-7 | tlotze * r116978 gocept.zeoraid/versions.cfg: updated to newest ZODB 3.9 | 13:47 |
*** shastry has joined #zope | 13:49 | |
*** shastry has joined #zope | 13:49 | |
*** John[a] has joined #zope | 13:49 | |
*** shastry has quit IRC | 13:53 | |
saju_m | func_defaults return default values in function calls.have any article or doc describing about this kinds of tricks in python??. have any book for python tricks? | 13:55 |
*** shastry has joined #zope | 13:56 | |
*** mr_jolly has left #zope | 13:57 | |
*** mr_jolly_ has joined #zope | 13:58 | |
*** mr_jolly has joined #zope | 13:58 | |
*** mr_jolly has left #zope | 13:59 | |
*** astoon has quit IRC | 14:00 | |
betabug | saju_m: try asking in #python | 14:06 |
*** sunew has quit IRC | 14:09 | |
*** thetet has quit IRC | 14:10 | |
*** sunew has joined #zope | 14:10 | |
*** sunew has quit IRC | 14:14 | |
*** sunew has joined #zope | 14:14 | |
*** menesis has joined #zope | 14:15 | |
*** John[a] is now known as msg | 14:29 | |
*** msg has joined #zope | 14:29 | |
*** Arfrever has quit IRC | 14:35 | |
*** benji has joined #zope | 14:37 | |
*** ccomb has joined #zope | 14:42 | |
*** tisto|lunch is now known as tisto | 14:44 | |
CIA-7 | tlotze * r116979 gocept.zeoraid/src/gocept/zeoraid/storage.py: | 14:51 |
CIA-7 | - made starting storage recovery atomic | 14:51 |
CIA-7 | - keep tests from printing exceptions by solving thread ordering problems | 14:51 |
CIA-7 | tlotze * r116980 gocept.zeoraid/CHANGES.txt: updated changelog | 14:51 |
*** agroszer has joined #zope | 14:55 | |
*** msg has quit IRC | 15:01 | |
CIA-7 | andig * r116981 /Zope/branches/andig-compositeindex: Making a Zope branch for CompositeIndex implementation | 15:09 |
*** touff has joined #zope | 15:15 | |
*** sashav has quit IRC | 15:15 | |
*** Arfrever has joined #zope | 15:24 | |
*** thetet has joined #zope | 15:29 | |
*** tisto has quit IRC | 15:31 | |
*** fredvd has joined #zope | 15:39 | |
CIA-7 | adamg * r116982 zodbupdate/src/zodbupdate/tests.py: os.close needed to avoid windows failures | 15:46 |
*** Arfrever has quit IRC | 15:48 | |
*** tisto has joined #zope | 15:49 | |
*** tisto has quit IRC | 15:57 | |
*** pepeu has joined #zope | 16:00 | |
CIA-7 | adamg * r116983 zodbupdate/ (src/zodbupdate/update.py CHANGES.txt src): More debug logging shows now the currently processed OID | 16:02 |
*** mitchell`off is now known as mitchell` | 16:14 | |
*** tisto has joined #zope | 16:15 | |
*** dayne has quit IRC | 16:30 | |
CIA-7 | tlotze * r116984 gocept.zeoraid/src/gocept/zeoraid/ (storage.py tests/test_basics.py tests/test_recovery.py): improved thread synchronisation to make tests more stable | 16:33 |
*** __mac__ has quit IRC | 16:33 | |
*** fredvd has quit IRC | 16:34 | |
*** wosc has quit IRC | 16:46 | |
*** mahiti_skt has quit IRC | 16:48 | |
*** dvschramm has joined #zope | 16:51 | |
*** hever has quit IRC | 16:59 | |
*** touff has quit IRC | 17:02 | |
*** touff has joined #zope | 17:02 | |
*** dayne has joined #zope | 17:11 | |
*** Scooter has joined #zope | 17:11 | |
Scooter | hey, I have a question about zodb transactions | 17:12 |
Scooter | I know that if one transaction commits, others in processing will start over | 17:13 |
Scooter | but if I use subtransactions, will they start over from the beginning or just from the last subtransaction? | 17:13 |
*** webmaven has joined #zope | 17:13 | |
betabug | start over? I wouldn't say that | 17:18 |
betabug | if there is a conflict, there will be replays | 17:18 |
betabug | but only if there are conflicts | 17:18 |
betabug | and they will not replay when the other one commits, but when they want to commit themselves and notice that there is a conflict IIRC | 17:19 |
Scooter | well, I'm working with Plone, and dealing with files there it's basically every time | 17:20 |
*** hever has joined #zope | 17:24 | |
MatthewWilkes | Scooter: If you're getting write conflict errors on every request you're doing something wrong | 17:24 |
MatthewWilkes | what exactly are you doing to cause them? | 17:25 |
*** cr3 has joined #zope | 17:25 | |
Scooter | see #plone | 17:25 |
*** Scooter has left #zope | 17:25 | |
d2m | heh | 17:26 |
MatthewWilkes | k | 17:26 |
*** MrWu has joined #zope | 17:31 | |
*** alvaro has joined #zope | 17:33 | |
cr3 | buildout question: is there a way to leverage buildout someone to build against package versions available in a particular OS release to make sure the code will work on that release? | 17:38 |
*** MatthewWilkes has quit IRC | 17:38 | |
*** MatthewWilkes has joined #zope | 17:39 | |
d2m | cr3: if you pin the versions needed the packages will be installed on the particular OS | 17:40 |
cr3 | d2m: will buildout know where to get those versions? I've tried pin'ing and I recall getting somekind of error that the version doesn't match | 17:41 |
d2m | cr3: buildout will download and install the exact version, if another version is already loaded by another package you will get an mismatch error | 17:42 |
cr3 | d2m: I don't understand the second part, "if another version is already..." | 17:43 |
d2m | installing packages installs all their needed packages too | 17:43 |
d2m | if a package depends on a certain version you can not install a different release with another package later | 17:44 |
d2m | (in the same buildout run) | 17:45 |
cr3 | d2m: when you say "packages", do you mean OS packages (debian packages for example), or do you mean Python packages (eggs for example)? | 17:48 |
d2m | eggs | 17:48 |
cr3 | d2m: gotcha, makes sense | 17:49 |
*** evilbungle has joined #zope | 17:49 | |
d2m | cr3, most conflicts can be solved by pinning the correct versions in your buildout | 17:50 |
cr3 | d2m: exactly, it's a painful process but shouldn't take that long :) | 17:51 |
*** saju_m has quit IRC | 17:53 | |
*** evilbungle has quit IRC | 17:56 | |
*** dayne has quit IRC | 17:58 | |
*** dayne has joined #zope | 17:59 | |
*** MJ has quit IRC | 18:01 | |
*** mcdonc has joined #zope | 18:07 | |
*** alecm has quit IRC | 18:14 | |
*** vangheem has joined #zope | 18:18 | |
*** alecm has joined #zope | 18:19 | |
*** cna has quit IRC | 18:26 | |
*** daMaestro has joined #zope | 18:28 | |
*** davisagli|away is now known as davisagli | 18:33 | |
*** davisagli is now known as davisagli|away | 18:35 | |
*** zagy has quit IRC | 18:36 | |
vangheem | I'm setting up public facing plone site as read-only and occasionally come across times where plone will try to write to the database and cause the page to completely error. Is there anyway to make it not throw errors and just not write to the zodb silently? | 18:38 |
vangheem | thanks for any tips | 18:38 |
d2m | vangheem: what is a read-only site? | 18:39 |
vangheem | sorry, read-only database | 18:40 |
*** tiwula has joined #zope | 18:40 | |
d2m | vangheem: how do you make the db read-only? | 18:40 |
vangheem | by setting the zope.conf and zeo.conf to make the db read-only | 18:41 |
*** JaRoel|4D has quit IRC | 18:41 | |
d2m | like a demo-storage? | 18:41 |
*** sunew has quit IRC | 18:41 | |
*** thetet has quit IRC | 18:42 | |
vangheem | no, just zodb in read-only mode' | 18:43 |
d2m | think again | 18:43 |
vangheem | what? | 18:44 |
*** pepeu has quit IRC | 18:45 | |
*** MatthewWilkes has quit IRC | 18:45 | |
d2m | vangheem: maybe this helps: http://plone.org/documentation/faq/plone-read-only-mode | 18:49 |
vangheem | I have it in read-only mode already | 18:49 |
vangheem | the problem is that I don't want the site to completely error if for some reason it tries to write to the database yet | 18:50 |
*** tisto has quit IRC | 18:51 | |
vangheem | we're using zrs to replicate our read-write database to these read-only database servers which will actually serve the content--we can't have it erroring because plone still tries to write to the database in some odd cases | 18:51 |
d2m | could be this is a question for zope.com support? | 18:52 |
vangheem | perhaps I'll give that a try | 18:52 |
*** pepeu has joined #zope | 18:54 | |
*** neo|4D has quit IRC | 18:55 | |
*** jakke has quit IRC | 18:56 | |
*** jakke has joined #zope | 18:57 | |
*** dayne has quit IRC | 19:00 | |
*** jakke has quit IRC | 19:01 | |
*** ccomb has quit IRC | 19:02 | |
*** dayne has joined #zope | 19:02 | |
*** alvaro is now known as alvaro_a | 19:12 | |
*** alvaro_a is now known as alvaro_3 | 19:12 | |
*** davisagli|away is now known as davisagli | 19:12 | |
*** alexpilz has quit IRC | 19:13 | |
*** alvaro_3 is now known as alvaro_gc | 19:13 | |
*** benji is now known as benji-lunch | 19:14 | |
*** alvaro_gc is now known as alvaro_o | 19:15 | |
*** Arfrever has joined #zope | 19:17 | |
*** evilbungle has joined #zope | 19:34 | |
*** milele has quit IRC | 19:38 | |
*** milele has joined #zope | 19:38 | |
*** evilbungle has quit IRC | 19:43 | |
*** neo|4D has joined #zope | 19:46 | |
*** kiorky_ has joined #zope | 19:49 | |
*** f10w has quit IRC | 19:49 | |
*** f10w has joined #zope | 19:50 | |
CIA-7 | ldr adapterize-wfstatus-wfhistory * r116985 Products.CMFCore/Products/CMFCore/ (WorkflowTool.py tests/test_WorkflowTool.py): Workflow storage adapters adapt IWorkflowAware | 19:51 |
*** kiorky has quit IRC | 19:52 | |
*** mitchell` is now known as mitchell`off | 19:53 | |
*** alexpilz has joined #zope | 19:59 | |
*** hever has quit IRC | 20:00 | |
*** alexpilz1 has joined #zope | 20:01 | |
*** mgedmin has quit IRC | 20:01 | |
*** mgedmin has joined #zope | 20:01 | |
*** alexpilz has quit IRC | 20:03 | |
*** eperez has quit IRC | 20:05 | |
*** JaRoel|4D has joined #zope | 20:12 | |
*** minskmaz has joined #zope | 20:12 | |
*** benji-lunch is now known as benji | 20:16 | |
*** menesis has quit IRC | 20:17 | |
*** neo|4D has quit IRC | 20:37 | |
CIA-7 | ldr adapterize-wfstatus-wfhistory * r116986 Products.CMFCore/Products/CMFCore/CHANGES.txt: add changelog entry | 20:42 |
*** touff has quit IRC | 20:46 | |
*** giampaolo has quit IRC | 20:47 | |
*** ccomb has joined #zope | 20:49 | |
*** sunew has joined #zope | 20:51 | |
*** menesis has joined #zope | 20:59 | |
CIA-7 | fdrake * r116987 ZConfig/ (4 files in 4 dirs): support for IPv6 addresses, contributed by Martin von L?wis | 21:03 |
CIA-7 | ldr adapterize-wfstatus-wfhistory * r116988 Products.CMFCore/Products/CMFCore/ (CHANGES.txt CMFCatalogAware.py): notifyWorkflowCreated only to IWorkflowAware, possibly following adaption on IObjectAddedEvent. | 21:03 |
*** zagy has joined #zope | 21:08 | |
*** MrWu has quit IRC | 21:09 | |
*** sunew has quit IRC | 21:09 | |
*** pepeu has quit IRC | 21:18 | |
mgedmin | how do you render widget errors with z3c.form? | 21:29 |
CIA-7 | fafhrd * r116989 /Zope/ (4 files in 4 dirs): | 21:36 |
CIA-7 | It's not possible to use xrange inside __getslice__ in 64bit python on | 21:36 |
CIA-7 | Windows, because xrange uses 32bit integers and __getslice__ gets 64bit integers | 21:36 |
*** touff has joined #zope | 21:40 | |
*** alecm has quit IRC | 21:47 | |
CIA-7 | fafhrd * r116990 Acquisition/ (CHANGES.txt src/Acquisition/tests.py): The problem is sys.maxint on 32bit and 64bit python on windows are same. | 21:50 |
*** pwerneck has joined #zope | 21:52 | |
*** dunny has joined #zope | 21:52 | |
*** mr_jolly_ has quit IRC | 21:53 | |
pwerneck | I'm on zope 2, I'd like to make an adapter available for all interfaces but one... how can I exclude that one when using for="*" on the zcml? | 21:54 |
mgedmin | well, you can register a different adapter for that particular interface | 21:57 |
*** lucmult has joined #zope | 21:57 | |
mgedmin | or in your adapter's constructor you can check if the context provides your forbidden interface and then return None instead of the adapter | 21:57 |
mgedmin | the latter technique works better if you register a function rather than a class | 21:58 |
mgedmin | but having to type-check that way is inelegant | 21:58 |
mgedmin | what problem are you solving? | 21:58 |
*** River_Rat is now known as RiverRat | 21:59 | |
*** touff has quit IRC | 22:01 | |
*** kiorky_ has quit IRC | 22:01 | |
pwerneck | I'm using archetypes schema extender to add geolocation for all content types but one, the content type location which already implements it its own way | 22:02 |
mgedmin | ok, I'm not familiar with archetypes | 22:03 |
*** John has joined #zope | 22:03 | |
mgedmin | typically in this sort of problem there would be an interface for geolocation | 22:03 |
mgedmin | and you'd provide an adapter for * providing that | 22:03 |
mgedmin | but that one particular content type would implement this interface directly | 22:03 |
pwerneck | exactly | 22:03 |
mgedmin | so when you do IGeolocation(obj), no adapter lookup would be done for that content type | 22:03 |
mgedmin | that's how the zope component architecture works, at least using InterfaceName(obj) syntax | 22:04 |
mgedmin | I think zope.component.getAdapter(obj) ignores interfaces provided by obj, but I may be wrong | 22:04 |
pwerneck | ok, thanks | 22:05 |
*** alexpilz1 has quit IRC | 22:05 | |
*** John has quit IRC | 22:06 | |
*** kiorky has joined #zope | 22:11 | |
*** teix has left #zope | 22:13 | |
*** alecm has joined #zope | 22:15 | |
*** John has joined #zope | 22:15 | |
*** menesis has quit IRC | 22:23 | |
*** menesis has joined #zope | 22:24 | |
*** zagy has quit IRC | 22:29 | |
*** agroszer has quit IRC | 22:38 | |
*** John[a] has joined #zope | 22:38 | |
*** John has quit IRC | 22:38 | |
*** daMaestro has quit IRC | 22:42 | |
*** daMaestro has joined #zope | 22:44 | |
*** alexpilz has joined #zope | 23:05 | |
*** alexpilz1 has joined #zope | 23:06 | |
*** alexpilz has quit IRC | 23:06 | |
*** pwerneck has quit IRC | 23:28 | |
*** Guest1936 is now known as Moo--__ | 23:28 | |
*** pepeu has joined #zope | 23:29 | |
*** John[a] has quit IRC | 23:32 | |
*** daMaestro has quit IRC | 23:38 | |
*** John has joined #zope | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!