[Zope] Combining a search and uniqueValues..

2000-06-07 Thread Anders Holmbech Nielsen

Hi,

I want to find the unique values from a search.

This first search return (among others) som keywords (emneord) which 
unique values I want get(second search).






Is it possible to do this with standard dtml and catalog or should 
dive into some python coding ?
-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Python, Zope, and PowerPoint slides

2000-06-08 Thread Anders Holmbech Nielsen

>  >
>>[...]
>>
>>>* Amos released updated "Zope training material",
>>>  http://www.zope.org/Members/Amos/TrainingSlidesAnnounce
>>>  that he and Michel Pelletier have been working on for
>>>  the past couple weeks.
>>>
>>>There are twenty slide presentations which cover such topics
>>>as DTML, application design, and developing Python products.
>>>
>>>Note: the PowerPoint slides are built by a Python script
>>>that reads Structured Text and talks to PowerPoint over COM - cool.
>>
>>
>>How about taking the extra step and using 'PythonPoint' to make a pdf
>>presentation for non-MS'ers?
>>
>
>
>IIRC Pavlos Christoforou made a Zope product that creates pdf from stx files
>(goes to look it up) Yes. See
>http://www.zope.org/Members/gaaros/ZpdfDocument


I was quite exited when I saw this pdf possibility but I can't seem 
to get it to work. I'm running Zope on my Win NT4.0. But I have some 
questions 'bout it:

1. When I d/l the zpdf file it seems that something is missing. Where 
exactly should I put it ?
2. Is it a precompiled python file ?
3. Should'nt it have some kind of extension to it to work in a windoze env ?


>Though I agree a packed up version would be nice (I'm a windows user, so
>pythonpoint is ok for me) Any chance the python-powerpoint script could be
>made public anyway?
>
>hth
>
>Rik
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] International characters and Catalog

2000-06-19 Thread Anders Holmbech Nielsen

Hi,

I think I have a bug but want to ask YOU. It seems to me that tha 
ZCatalog index allright when you have set up locale or uses the -L 
option.

But when making my own ZClass and using "Lines" instead of string it 
doesn't get indexed according to the locale settings.

When outputting the lines attribute it just outputs \370, \346 and 
other values.

Does anyone have a solution to this ?
-- 

Regards

---------
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with the datatype "lines"

2000-06-22 Thread Anders Holmbech Nielsen

Hi Zopers,

I have found out that when using the datatype "lines" in my own 
ZClass it won't obey to the locale settings. That means that the 
words coming from "lines" look like: t/370nk. And therefore they 
don't get correctly indexed in the database.
I'm running Zope 2.1.6 (on both linux and winnt 4.0).

Is there an update to this problem or a workaround ?


Thanks in advance
-- 

Regards

-------------
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with the datatype "lines"

2000-06-25 Thread Anders Holmbech Nielsen

Hi Zopers,

I have found out that when using the datatype "lines" in my own 
ZClass it won't obey to the locale settings. That means that the 
words coming from "lines" look like: t/370nk. And therefore they 
don't get correctly indexed in the database.
I'm running Zope 2.1.6 (on both linux and winnt 4.0).

Is there an update to this problem or a workaround ?


Thanks in advance
-- 

Regards

-------------
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with the datatype "lines"

2000-06-26 Thread Anders Holmbech Nielsen

Hi Zopers,

I have found out that when using the datatype "lines" in my own 
ZClass it won't obey to the locale settings. That means that the 
words coming from "lines" look like: t/370nk. And therefore they 
don't get correctly indexed in the database.
I'm running Zope 2.1.6 (on both linux and winnt 4.0).

Is there an update to this problem or a workaround ?


Thanks in advance
-- 

Regards

-------------
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope 2.1.6 Bug?

2000-06-26 Thread Anders Holmbech Nielsen

hi,

this is a strange error. I have just tried on my win nt 4.0 Zope 
2.1.6 with the same result.

>I'm running Zope 2.1.6 under Windows 2000.  I've encountered a 
>situation where I can cause Zope to completely hang.  For example, 
>if I create a DTMLMethod called test in the root folder and give it 
>this contents  (leading spaces on the table tag are important):
>
> 
>   
> Hello
>   
> 
>
>and click the View tab, the page displays as expected.  However, if 
>I edit this to look like this:
>
> 
>   
> Hello
>   
>   
>  Goodbye
>   
> 
>
>and click View, Zope goes off and never returns.  The Python.exe 
>file continues to consume CPU but doesn't display anything.
>
>However, if I remove the leading spaces before the table tags, save 
>my changes and then click View, the contents are displayed 
>immediately.  I then experimented with adding one space before the 
>tag.  The contents displayed, but after a pause.  Two spaces paused 
>longer.
>
>Can anyone else verify this behavior?
>
>Thanks.
>
>James W. Howe  mailto:[EMAIL PROTECTED]
>Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
>Ann Arbor, MI  48103
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
>http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] error going from 2.1.6 to 2.2b3

2000-07-05 Thread Anders Holmbech Nielsen

Hi,

when trying to import  an object made in 2.1.6 into 2.2b3 i get this 
error. What could be the problem ?


Error Type: AttributeError
Error Value: stop_syn

Traceback (innermost last):
   File C:\PROGRA~1\WebSite2.2\lib\python\ZPublisher\Publish.py, line 
222, in publish_module
   File C:\PROGRA~1\WebSite2.2\lib\python\ZPublisher\Publish.py, line 
187, in publish
   File C:\PROGRA~1\WebSite2.2\lib\python\Zope\__init__.py, line 221, 
in zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File C:\PROGRA~1\WebSite2.2\lib\python\ZPublisher\Publish.py, line 
171, in publish
   File C:\PROGRA~1\WebSite2.2\lib\python\ZPublisher\mapply.py, line 
160, in mapply
 (Object: manage_importObject)
   File C:\PROGRA~1\WebSite2.2\lib\python\ZPublisher\Publish.py, line 
112, in call_object
 (Object: manage_importObject)
   File C:\PROGRA~1\WebSite2.2\lib\python\OFS\ObjectManager.py, line 
494, in manage_importObject
 (Object: ApplicationDefaultPermissions)
   File C:\PROGRA~1\WebSite2.2\lib\python\OFS\ObjectManager.py, line 
260, in _setObject
 (Object: ApplicationDefaultPermissions)
   File C:\PROGRA~1\WebSite2.2\lib\python\OFS\ObjectManager.py, line 
267, in manage_afterAdd
 (Object: ElementWithAttributes)
   File C:\PROGRA~1\WebSite2.2\lib\python\OFS\ObjectManager.py, line 
267, in manage_afterAdd
 (Object: ElementWithAttributes)
   File 
C:\PROGRA~1\WebSite2.2\lib\python\Products\ZCatalog\CatalogAwareness.py, 
line 114, in manage_afterAdd
 (Object: CatalogAware)
   File 
C:\PROGRA~1\WebSite2.2\lib\python\Products\ZCatalog\CatalogAwareness.py, 
line 182, in index_object
 (Object: CatalogAware)
   File 
C:\PROGRA~1\WebSite2.2\lib\python\Products\ZCatalog\ZCatalog.py, line 
377, in catalog_object
 (Object: ElementWithAttributes)
   File 
C:\PROGRA~1\WebSite2.2\lib\python\Products\ZCatalog\Catalog.py, line 
373, in catalogObject
   File C:\PROGRA~1\WebSite2.2\lib\python\SearchIndex\UnTextIndex.py, 
line 253, in index_object
   File C:\PROGRA~1\WebSite2.2\lib\python\SearchIndex\Lexicon.py, line 
165, in Splitter
AttributeError: (see above)
-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] error going from 2.1.6 to 2.2b3

2000-07-05 Thread Anders Holmbech Nielsen

>+----[ Anders Holmbech Nielsen ]-
>| Hi,
>|
>| when trying to import  an object made in 2.1.6 into 2.2b3 i get this
>| error. What could be the problem ?
>
>I can't help with the error, but, you can try exporting as XML and
>importing the XML. I find this to work a little more reliably between
>Zope Versions when zexp fails.


Sorry to say: That didn't do it! Same error.


>--
>Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
>The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   |
>ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
>PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]|
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] error going from 2.1.6 to 2.2b3

2000-07-05 Thread Anders Holmbech Nielsen

>+----[ Anders Holmbech Nielsen ]-
>| >+----[ Anders Holmbech Nielsen 
>]-
>| >| Hi,
>| >|
>| >| when trying to import  an object made in 2.1.6 into 2.2b3 i get this
>| >| error. What could be the problem ?
>| >
>| >I can't help with the error, but, you can try exporting as XML and
>| >importing the XML. I find this to work a little more reliably between
>| >Zope Versions when zexp fails.
>|
>|
>| Sorry to say: That didn't do it! Same error.
>
>Do you have the same classes and Zclasses installed on both ?

Yes. I have just triple checked the products, folders etc. It is not 
the catalogs either because they are in the folder I try to import. 
Could that be the problem ?

The folder I want to export/import includes two ZCatalogs, an 
user_folder, som other folders includíng own ZClass objects.

The first thing I did was to import the ZClasses I use and that worked nicely.


>--
>Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
>The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   |
>ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
>PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]|
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] getting parent document

2000-08-28 Thread Anders Holmbech Nielsen

Hi,

This should be an easy task but a just cant get it to work.

I have a dtml-method called test which I want to use like:

someurl/document/test

and in the dtml-method I want to include the document in its whole.

I have tried something with the URL like:

> this offcourse dont work... but this neither...



What to do ??
-- 

Regards

-----
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] getting parent document

2000-08-29 Thread Anders Holmbech Nielsen

Thanks for your answer. This would do too, but Stephan Richter gave 
me a nice way to do it. A dtml-method with the following:



Because of acquisition this will result in the "document" being 
included in its whole.

His suggestions:

1.
html: contains the HTML code
viewMethod:  called like: viewMethod?file=html


2. The best by far. Write your own little Zope object in Python that 
has only an id and a body.
Then you can say: URL/html/viewMethods
Inside viewMethods: 

3. Well, I found solution 3 reading the DTML Method source code pretty quick.
inside viewMethod:
  -- That returns the unprocessed body of the object 
and due to the acquisition behavior of DTML methods it looks one 
object up, which is html. so URL/html/viewMethod works


>Anders Holmbech Nielsen writes:
>  > I have a dtml-method called test which I want to use like:
>  >
>  > someurl/document/test
>  >
>  > and in the dtml-method I want to include the document in its whole.
>  >
>  > I have tried something with the URL like:
>  >
>  > > this offcourse dont work... but this neither...
>Try:
>
>   
>
>"PARENTS[0]" gives you the parent, in your case "someurl/document".
>Calling this object renders it.
>If you call it without parameters, you cut the namespace chain.
>If you pass "_.None,_", you pass the namespace explicitly.
>(This usually is done by DTML behind the scenes, but
>inside "...", you must do it yourself).
>
>
>Dieter

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Site search with squishdot and own products

2000-10-05 Thread Anders Holmbech Nielsen

Hi,

I'm having a "small" problem here. I would like to have a site search that
searches everything within a directoty on the Zope server. I'm only using
the ZODB but I have two Squishdot's installed and several ZClasses which is
indexed in a catalog. How do I approach this problem ?

Is there a Zopish/dtml/catalog way or is it the dirty way ?

Thanks in advance

Anders Nielsen
System Developer

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] CatalogReindex deletes !!!

2000-10-09 Thread Anders Holmbech Nielsen

Hi,

I just got a weird "error" this morning. I have a ZCatalog with some 
ZClasses which is index in it. But when I use the "Update Catalog" 
function it deletes ALL entries in the catalog !!!

Any ideas ??

No errors returned. Just Nothing.


Using Zope 2.2.2 on Linux. I have restarted and packed Zope and 
reinstalled the ZCatalog without success.
-- 

Regards

---------
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )