beno - wrote:
Therefore, it would appear that the requests coming from these clients
aren't reaching Zope. DO YOU AGREE WITH THAT CONCLUSION?
However, if they *aren't* reaching Zope, why do they receive a screen
message like this: Zope \n Welcome to Web.vi where web.vi is my
personal site?
Hi Oliver,
Oliver Hookins wrote:
I'd missed that you were using the reverse proxy technique - I'd
strongly recommend rewrite rules.
Without meaning to be greedy, can you suggest an example?
As Jonathan says, the Zope book has examples. The most recent version
I'm aware of is at: -
Hi Oliver
You can also look inside the logs of your Apache for the IP addresses?!
That's not always possible in our virtual hosting environment, and besides
it
makes no sense to have to look in two different places for the same
information.
I would also look for that information in the
Sidnei da Silva wrote:
I am going to give a try to the Visual C Express 2005 one of these
days. Heard reports of people that managed to build extensions for
Python 2.4 with it.
Be careful - I've heard rumours that the Express editions use a
non-optimising compiler, which would be bad for the
On 8/17/06, Chris Withers [EMAIL PROTECTED] wrote:
Sidnei da Silva wrote:
I am going to give a try to the Visual C Express 2005 one of these
days. Heard reports of people that managed to build extensions for
Python 2.4 with it.
Be careful - I've heard rumours that the Express editions use a
Hi,
I have managed to
get my LDAPUserFolder configured, connected and all setup. I have no
problems searching for users from within the ZMI. But the problem that i get is
that when i start up my plone site, it prompts me for my zope username/password.
I currently only have 1 user in zope
--On 17. August 2006 09:05:21 -0400 Siddharth Sethi
[EMAIL PROTECTED] wrote:
Hi,
I have managed to get my LDAPUserFolder configured, connected and all
setup. I have no problems searching for users from within the ZMI. But
the problem that i get is that when i start up my plone site, it
Since upgrading from Zope 2.8.something to 2.9.3, many of our customers
can no longer view PDFs that we send them. If they're using Internet
Explorer, they often get a blank page when trying to view them (and we
haven't been able to nail down the exact combination of Windows + IE +
Acrobat that
I have a Python script that transmits a file to the user. An excerpt:
if not skipctypeheader:
# Set the content type if one is defined for the file
ctype = file.getProperty('content_type', d=None)
if ctype:
RESPONSE.setHeader('Content-Type', ctype)
--On 16. August 2006 17:28:00 -0500 Kirk Strauser [EMAIL PROTECTED] wrote:
I have a Python script that transmits a file to the user. An excerpt:
if not skipctypeheader:
# Set the content type if one is defined for the file
ctype = file.getProperty('content_type', d=None)
Would some IE users please let me know whether they can view this PDF
normally?
http://web2.xrsnet.com/publicstore/download?filename=print.pdfpassword=foo
Any speculation about what might be causing this is extremely welcome. I'm
*not* looking forward to rolling back to 2.8.x (and Python
On Thursday 17 August 2006 9:54 am, Brian Sullivan wrote:
I am running IE7 beta 3 -- on my machine the pdf file seems to load --
so no content disposition problem but there are messages about missing
fonts from the PDF reader *7.0.8 btw) -- no real information is
displayed so I am guessing
Andreas Jung wrote:
--On 16. August 2006 17:28:00 -0500 Kirk Strauser [EMAIL PROTECTED]
wrote:
I have a Python script that transmits a file to the user. An excerpt:
if not skipctypeheader:
# Set the content type if one is defined for the file
ctype =
On 8/17/06, Kirk Strauser [EMAIL PROTECTED] wrote:
Nuts. I was trying to generate a clean PDF for testing purposes but looks
like it didn't work. I re-uploaded the test file (same URL) with Times New
Roman and embedded fonts.
OK -- that seems to be more what I would call normal. I see the
On Thursday 17 August 2006 11:02 am, Brian Sullivan wrote:
OK -- that seems to be more what I would call normal. I see the page
with This is a test in Adobe reader -- but also a page/tab is
created that is blank. Is that the problem?
Nope - customers are actually getting a single blank page
On 8/17/06, Kirk Strauser [EMAIL PROTECTED] wrote:
On Thursday 17 August 2006 11:02 am, Brian Sullivan wrote:
OK -- that seems to be more what I would call normal. I see the page
with This is a test in Adobe reader -- but also a page/tab is
created that is blank. Is that the problem?
Nope -
On Thursday 17 August 2006 11:24 am, Brian Sullivan wrote:
It looks like you have changed to remove the Content-Disposition header?
Now it comes up inline (I guess the default?).
No, it's still there (and still set to inline). I did, however, follow
David H's advice to add the
Siddharth Sethi wrote at 2006-8-17 09:05 -0400:
...
But
the problem that i get is that when i start up my plone site, it prompts
me for my zope username/password. I currently only have 1 user in zope
and that is the admin account and the only other username/password that
works in this prompt is
Kirk Strauser wrote at 2006-8-16 17:28 -0500:
I have a Python script that transmits a file to the user. An excerpt:
if not skipctypeheader:
# Set the content type if one is defined for the file
ctype = file.getProperty('content_type', d=None)
if ctype:
Dear Trusted Zope Zealots,This subject was a bit too broad to do a google search on, because I've tried and the lack of relevancy was astounding.I've probably been committing a cardinal sin in DTML, but I couldn't figure any other work around.
I have an HTML form in a DTML Document say:form
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 17 Aug 2006, at 14:57, Muk Yan wrote:
What my question is, is there anyway to directly access
first_name from the form in the python script without having to
have to call the dtml-call REQUEST.SESSION.set('firstName',
first_name) and then
On Thursday 17 August 2006 1:57 pm, Muk Yan wrote:
Name:input type=text name:first_name
Make that:
input type=text name=first_name
DTML Method, process_this_form:
dtml-call REQUEST.SESSION.set ('firstName', first_name)
dtml-call this_is_a_python_script()
and in the Python Script,
On Thursday 17 August 2006 2:02 pm, Jens Vagelpohl wrote:
request.get(MY_VARIABLE) ???
The one major problem with that is that it ties you to getting information
from the request. Better to write a script with explicit parameters and
call it with those parameters. Then, you can pull values
Form variables are stored in REQUEST. In a python
script you gain access to REQUEST by:
REQUEST= container.REQUEST
you can then access the form variables
by:
fname = REQUEST['first_name']
you can check for the presence of a form variable
by
if
REQUEST.has_key('first_name'):
or
if
At Thursday 17/8/2006 11:41, Kirk Strauser wrote:
stockexception = 'FileUnavailableError'
# Does the file exist?
if not filename in context.files.objectIds():
raise stockexception
This is unrelated to your main question, but using string exceptions
is discouraged...
On Thursday 17 August 2006 2:39 pm, Gabriel Genellina wrote:
This is unrelated to your main question, but using string exceptions
is discouraged...
Yeah, I'm in the process of gradually upgrading from look at me, I'm
learning Python! code to something a little more presentable.
--
Kirk
On Thursday 17 August 2006 1:28 pm, Dieter Maurer wrote:
Your PDF file appears to be small.
It was pretty dinky earlier (a single line of text).
I am also surprised that in your earlier post you returned
the File object itself. I would rather expect
str(fileObject.data).
Without looking at
Hey Jonathan, All,
Thanks I tried your solution, but it doesn't seem to work. Can anybody
shed some more light on this situation, since what Jonathan provides is
exactly what I want to do, but it's not working.
Am I forgetting to put parameteres or some other newbie mistake like that?
Thanks in
What does "it doesn't seem to work" mean?
Error messages/traceback? What does your form script contain? More
info on the problem is definitely required!
Jonathan
- Original Message -
From:
Muk Yan
To: Jonathan ; zope@zope.org
Sent: Thursday, August 17, 2006 4:20
Hey All,Sorry about that, what I meant is that I get a KeyError. It says that the first_name in REQUEST['first_name'] is not found, when I try to set the variable in line in the script where
fname = REQUEST['first_name'].Thanks in advance.Cheers,MukOn 8/17/06, Jonathan
[EMAIL PROTECTED] wrote:
If you have a line like
input type="text" name="first_name"
value="default value"
in your html file then if you try the following in
your script file
print REQUEST['first_name']
return printed
you should see "default value" printed
out
you can try:
print REQUEST
to see the entire
At Thursday 17/8/2006 17:40, Muk Yan wrote:
Sorry about that, what I meant is that I get a KeyError. It says
that the first_name in REQUEST['first_name'] is not found, when I
try to set the variable in line in the script where fname =
REQUEST['first_name'].
Read the previous responses, you
The CMF developer community is pleased to announce the release of
version 1.5.7-beta of the Zope Content Management Framework (CMF).
This release is intended for testing purposes only; we
do not recommend deploying it to production servers. The final release
of version 1.5.6 is expected on
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dieter Maurer wrote:
Kirk Strauser wrote at 2006-8-16 17:28 -0500:
I have a Python script that transmits a file to the user. An excerpt:
if not skipctypeheader:
# Set the content type if one is defined for the file
ctype =
The CMF developer community is pleased to announce the release of
version 1.5.7-beta of the Zope Content Management Framework (CMF).
This release is intended for testing purposes only; we
do not recommend deploying it to production servers. The final release
of version 1.5.6 is expected on
35 matches
Mail list logo