If you run plucker-build with the 1.4 beta1 parser from sitescooper,
which uses the deprecated db_file and db_name options, the parser dies:
Traceback (most recent call last):
File "/home/akkana/bin/plucker-build", line 1620, in ?
sys.exit(realmain(None))
File "/home/akkana/bin/plucker-build", line 1605, in realmain
retval = main (config, exclusion_lists)
File "/home/akkana/bin/plucker-build", line 1056, in main
deprecated( "db_file", "doc_file" )
NameError: global name 'deprecated' is not defined
The problem appears to be that in Spider.py, deprecated is being
called from within main, but it's only defined inside realmain
(which is separate from main).
I tried moving the definition of deprecated (just two lines)
up to line 932 (right before main) and that fixed the error.
I can make a patch of this on request, but it's a trivial fix
and I wasn't sure where you'd want the routine to live.
Of course, this is also a sitescooper bug. I belive the bug is
actually fixed in sitescooper's CVS (at least, I submitted a patch
for it and got an acknowledgement), but there have been no
sitescooper releases for a long time, so nobody actually has the fix.
But I think the intent in Spider.py was to warn about the error and
continue gracefully, as 1.2 did, rather than bombing out with python
errors, so I hope you'll consider this fix. Thanks!
...Akkana
_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list