Re: [Zope] TAG for file date

2000-06-20 Thread Dieter Maurer

CURTIS David writes:
 > I tried to add  
 > But I do not get an output displayed!!!
"bobobase_modification_time" is a method not an attribute.
You must call it:

 


You can resolve problems like this (no output) by looking
at the source of the HTML document.
In your case, you would have seen:



Because this is not a valid tag, your browser has drop it silently.


Dieter

___
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] TAG for file date

2000-06-20 Thread Dieter Maurer

CURTIS David writes:
 > I have a database file that gets copied via a cron job at night.  I would to display 
 >the new the new file date in an htlm document using Zope.  What I would like is a tag 
 >that displays the date of a specific file.  Is there such a dynamic tag?  I am 
 >thinking something like copied-file
 > Any help would be apprechiated.
You probably will need an external method -- at least, if you
speak about a file in the file system and not an object in
the ZODB.

The Python module "os" contains the function "stat" that allows you
to access the modification time. You may want to have a look
at the Python module "time" or the Zope module "DateTime.DateTime"
for ways to format the time you got with "stat".


Dieter

___
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] TAG for file date

2000-06-20 Thread CURTIS David

Greeting,

Thanks Tino for  your reply, but alas I am still not able to achieve what I want.  
Perhaps I do not understand what you are teaching.
I am trying to display the date of a document in an HTML document.  Here is what I 
tried.
Step 1.) CREATE A FILE OBJECT
I used the menu to create a file object.
ID=GuideFile
Content Type = Application/
Precondition = BLANK

Step 2.) ADD CODE TO HTML FILE
I tried to add  
But I do not get an output displayed!!!  I tried to make it a paragraph, bold etc, but 
no luck.  Although I do not get an error from Zope it does not work correctly.  I am 
using the latest version of Zope 2.1.6.

If you see where I failed, please let me know.  Thank you in advance for any 
information.  :-)
  


>>> [EMAIL PROTECTED] 06/20/00 02:52AM >>>


CURTIS David wrote:
> 
> Greetings,
> 
> I have a database file that gets copied via a cron job at night.  I would to display 
>the new the new file date in an htlm document using Zope.  What I would like is a tag 
>that displays the date of a specific file.  Is there such a dynamic tag?  I am 
>thinking something like copied-file
> Any help would be apprechiated.
> 
actually it is 
where fileobject is your actual object.

HTH
Tino Wildenhain

___
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 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] TAG for file date

2000-06-20 Thread Tino Wildenhain



CURTIS David wrote:
> 
> Greetings,
> 
> I have a database file that gets copied via a cron job at night.  I would to display 
>the new the new file date in an htlm document using Zope.  What I would like is a tag 
>that displays the date of a specific file.  Is there such a dynamic tag?  I am 
>thinking something like copied-file
> Any help would be apprechiated.
> 
actually it is 
where fileobject is your actual object.

HTH
Tino Wildenhain

___
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] TAG for file date

2000-06-19 Thread CURTIS David

Greetings,

I have a database file that gets copied via a cron job at night.  I would to display 
the new the new file date in an htlm document using Zope.  What I would like is a tag 
that displays the date of a specific file.  Is there such a dynamic tag?  I am 
thinking something like copied-file
Any help would be apprechiated.
   
   
   
   
   
   
   

___
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 )