Re: [Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
Don't think that is it because it works fine if I change Zope to port 80.  
And, I was accessing apache on port 80 using the ip number, localhost, the 
machine's real name, and the URL domain  it just wouldn't rewrite to 8086.
nslookup showed name was still set to my ip number.
Thomas


On Wednesday 25 April 2007 15:50, Jonathan wrote:
> - Original Message -
> From: "Thomas Bennett" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, April 25, 2007 4:15 PM
> Subject: Re: [Zope] apache rewrite quit working
>
> > web-dav server  is listening on 9800
> > http server is now listening on 80
> > http was listening on 8086 until rewrite quit working, explained below.
> >
> > Thanks anyway,
>
> Any chance your nameserver settings got changed?
>
> Jonathan

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

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


Re: [Zope] Zope unusable on my Virtual Private Server

2007-04-25 Thread Dieter Maurer
Maurits van Rees wrote at 2007-4-23 21:36 +:
>I recently got a virtual private server on server4you.nl.  All looked
>fine, until I started trying to get Zope to run on it.
>
>It is a Debian Sarge server.  I want Zope 2.9 on it, but even the zope
>2.7 that this Debian version has official Debian packages for is
>giving problems.  After starting up and trying to access it (from the
>same box with lynx):
>
>2007-04-23T22:37:58 ERROR(200) ZServer Server Error: thread.error, can't start 
>new thread
>: file: /usr/lib/zope2.7/lib/python/ZServer/PubCore/ZRendezvous.py line: 44

Zope tried to start a new thread -- and failed.

You might need C level debugging to find out why.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
web-dav server  is listening on 9800
http server is now listening on 80
http was listening on 8086 until rewrite quit working, explained below. 

Thanks anyway,

Thomas

PS: for what its worth, I found out in the mean time that NetDrive can cause 
Zope process to use over 95% of the cpu when the login in NetDrive is set and 
the password has changed on the Zope server and not on NetDrive.  It 
continuously tries to connect.  (NetDrive is a Novell program that allows you 
to map a webdav site as a drive on an MS Windows PC.)

On Wednesday 25 April 2007 14:46, Jonathan wrote:
> - Original Message -
> From: "Thomas Bennett" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, April 25, 2007 3:24 PM
> Subject: [Zope] apache rewrite quit working
>
> > Zope Version (Zope 2.9.7-final, python 2.4.4, linux2)
> > Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red
> > Hat 4.1.1-30)]
> > System Platform linux2
> > SOFTWARE_HOME /var/zope/lib/python
> > ZOPE_HOME /var/zope
> > INSTANCE_HOME /var/zope
> > CLIENT_HOME /var/zope/var
> > Network Services ZServer.HTTPServer.zhttp_server (Port: 80)
> > ZServer.HTTPServer.zwebdav_server (Port: 9800)
> >
> > (Red Hat 4.1.1-30) is actually Fedora Core 6
> >
> > NameVirtualHost 152.10.10.8:80
> >
> > 
> >  ServerAdmin [EMAIL PROTECTED]
> >  ServerName www.library.appstate.edu
> >  ServerSignature Off
> >  RewriteLog /var/log/httpd/libweb-rewrite_log
> >  ErrorLog /var/log/httpd/libweb-error_log
> >  LogLevel warn
> >  TransferLog /var/log/httpd/libweb-access_log
> >  ProxyVia on
> >  RewriteEngine On
> >  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> >  RewriteRule .* - [F]
> >  RewriteRule ^/(.*)
> > http://localhost:8086/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostR
> >oot/$1 [L,P]
> > 
> >
> > Since apache quit rewriting I have changed the Zope port to 80 so we
> > could get back online.  The rewrites
> >
> >  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> >  RewriteRule .* - [F]
> >
> > Any suggestions on getting or testing apache rewrite, or problems seen
> > with my rewrite rules would be appreciated.
>
> Your rewrite rule points to port 8086 but according to your information
> ZServer is listening on port 9800?
>
>
> Jonathan

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

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


Re: [Zope] apache rewrite quit working

2007-04-25 Thread Jonathan


- Original Message - 
From: "Thomas Bennett" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 25, 2007 3:24 PM
Subject: [Zope] apache rewrite quit working



Zope Version (Zope 2.9.7-final, python 2.4.4, linux2)
Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red 
Hat 4.1.1-30)]

System Platform linux2
SOFTWARE_HOME /var/zope/lib/python
ZOPE_HOME /var/zope
INSTANCE_HOME /var/zope
CLIENT_HOME /var/zope/var
Network Services ZServer.HTTPServer.zhttp_server (Port: 80)
ZServer.HTTPServer.zwebdav_server (Port: 9800)

(Red Hat 4.1.1-30) is actually Fedora Core 6

NameVirtualHost 152.10.10.8:80


 ServerAdmin [EMAIL PROTECTED]
 ServerName www.library.appstate.edu
 ServerSignature Off
 RewriteLog /var/log/httpd/libweb-rewrite_log
 ErrorLog /var/log/httpd/libweb-error_log
 LogLevel warn
 TransferLog /var/log/httpd/libweb-access_log
 ProxyVia on
 RewriteEngine On
 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]
 RewriteRule ^/(.*) 
http://localhost:8086/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/$1 
[L,P]



Since apache quit rewriting I have changed the Zope port to 80 so we
could get back online.  The rewrites

 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]

Any suggestions on getting or testing apache rewrite, or problems seen
with my rewrite rules would be appreciated.


Your rewrite rule points to port 8086 but according to your information 
ZServer is listening on port 9800?



Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
Zope Version(Zope 2.9.7-final, python 2.4.4, linux2) 
Python Version  2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 
4.1.1-30)] 
System Platform linux2 
SOFTWARE_HOME   /var/zope/lib/python 
ZOPE_HOME   /var/zope 
INSTANCE_HOME   /var/zope 
CLIENT_HOME /var/zope/var 
Network ServicesZServer.HTTPServer.zhttp_server (Port: 80)
ZServer.HTTPServer.zwebdav_server (Port: 9800)

(Red Hat 4.1.1-30) is actually Fedora Core 6

Campus maintenance tested the backup generator this morning.  
When the power was cut off the circuit breaker tripped on the battery
 backup that kicks in momentarily until the generator takes over so 
all hardware rebooted.  After starting zeostorage and zope I found 
the apache rewrite rule that has been working since at least April 3,
 2007 has quit working.  Zeo, Zope, and apache have been restarted 
quite a few times since April 3 and worked fine.  This is the first time 
the server has totally rebooted since that date.  

NameVirtualHost 152.10.10.8:80


  ServerAdmin [EMAIL PROTECTED]
  ServerName www.library.appstate.edu
  ServerSignature Off
  RewriteLog /var/log/httpd/libweb-rewrite_log
  ErrorLog /var/log/httpd/libweb-error_log
  LogLevel warn
  TransferLog /var/log/httpd/libweb-access_log
  ProxyVia on
  RewriteEngine On
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
  RewriteRule ^/(.*) 
http://localhost:8086/VirtualHostBase/http/%{SERVER_NAME}:80/VirtualHostRoot/$1 
[L,P]


Since apache quit rewriting I have changed the Zope port to 80 so we 
could get back online.  The rewrites

  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]

were added in after a nessus3 scan from suggestions on the report 
but the server had been running fine after that.  The syntax is correct 
according to httpd -t.

Any suggestions on getting or testing apache rewrite, or problems seen
with my rewrite rules would be appreciated.  


Thomas
-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

If it's not as simple as possible to try it, then the barrier to entry is too 
high.

Library Systems Help Desk: http://www.library.appstate.edu/help/

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


Re: [Zope] extract page title

2007-04-25 Thread SpiderX

It escapes the characters inside the SCRIPT block before processing, why is
why you can't do any TALES or anything else really in there...

On 4/24/07, Andreas Jung <[EMAIL PROTECTED]> wrote:




--On 25. April 2007 00:41:19 -0500 Jeff Rush <[EMAIL PROTECTED]> wrote:

> Andreas Jung wrote:
>>
>> As far as I can recall: you can't use TALES within a SCRIPT block.
>> That's why you must generate your stuff outside inside a script.
>
> Ah thanks I wasn't aware of that exclusion, never having tried it or
> found it documented.  Then yes your approach is the only one left.
>

The reason is obvious: Usually you don't have any markup with
... Still not getting why generate  within a

Re: [Zope] extract page title

2007-04-25 Thread Dean Hale


Hello all,

Thanks very much for all of your help.

thanks
dean

On 24 Apr 2007, at 16:20, Andreas Jung wrote:



--On 24. April 2007 09:56:41 -0500 Jeff Rush <[EMAIL PROTECTED]> wrote:



I don't see above him putting a  tag within the   
tag.  He
wants to put the *value* of the  tag inside the <script>  
</tt><tt>tag.  It
</tt><tt>seems some form of a string: expression would do it, assuming the  
</tt><tt>title
</tt><pre style="margin: 0em;">
is not literally in the zpt but rather expanded from a variable.

<script language='JavaScript1.1' type='text/javascript'>
 <noscript>
<img tal:attributes="src
<a  rel="nofollow" href="http://domain/xxx/xxx/s?websitename.${title_or_id}"">http://domain/xxx/xxx/s?websitename.${title_or_id}"</a>;  width="1"
height="1" alt="" />
</noscript>




As far as I can recall: you can't use TALES within a SCRIPT block.
That's why you must generate your stuff outside inside a script.

-aj


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

</pre></span>
</blockquote><br>
    <h2></h2>
  </div>
  <div class="aside" role="complementary">
    <div class="logo">
      <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a>
    </div>
    <h2>7 matches</h2>
    <br>
    
<ul><li><a href="/search?l=zope%40zope.org&q=date%3A20070425&a=1&o=newest&f=1">Advanced search</a></li></ul>
<form class="overflow" action="/search" method="get">
<input type="hidden" name="l" value="zope@zope.org">
<label class="hidden" for="q">Search the list</label>
<input class="submittext" type="text" id="q" name="q" placeholder="Search zope" value="date:20070425">
<input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit">
</form>

    
    <div class="nav margintop" id="nav" role="navigation">
      <h2 class="hidden">
                               Site Navigation
      </h2>
      <ul class="icons font16">
        <li class="icons-home"><a href="/">The Mail Archive home</a></li>
        <li class="icons-list">
          <a href="/zope@zope.org" title="c" id="c">zope - all messages</a></li>
        <li class="icons-about">
          <a href="/zope@zope.org/info.html">zope  - about the list</a></li>
        <li class="icons-expand"><a href="/search?l=zope%40zope.org&q=date%3A20070425&o=newest" title="e" id="e">Expand</a></li>
      </ul>
    </div>

    <div class="listlogo margintopdouble">
      <h2 class="hidden">
  				Mail list logo
      </h2>
      
    </div>
  </div>
  <div class="footer" role="contentinfo">
    <h2 class="hidden">
	        	      Footer information
    </h2>
    <ul>
      <li><a href="/">The Mail Archive home</a></li>
      <li><a href="/faq.html#newlist">Add your mailing list</a></li>
      <li><a href="/faq.html">FAQ</a></li>
      <li><a href="/faq.html#support">Support</a></li>
      <li><a href="/faq.html#privacy">Privacy</a></li>
    </ul>
  </div>
<script language="javascript" type="text/javascript">
document.onkeydown = NavigateThrough;
function NavigateThrough (event)
{
  if (!document.getElementById) return;
  if (window.event) event = window.event;
  if (event.target.tagName == 'INPUT') return;
  if (event.ctrlKey || event.metaKey) return;
  var link = null;
  switch (event.keyCode ? event.keyCode : event.which ? event.which : null) {
    case 69:
      link = document.getElementById ('e');
      break;
    }
  if (link && link.href) document.location = link.href;
}
</script>
</body>
</html>