Re: vsaCore.utils

<VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org> (Medur) Mon, 03 May 2004 13:54:21 +0000
Newsgroups gmane.org.misc.vasudeva-server.web
Message-ID <[email protected]>
Hi Jagrata,

Following is a summary of some issues regarding the code 
review session we had on Saturday:

1. eol-native - It is my understanding that a file committed 
via subversion will have all occurrences of the EOL string 
stripped and replaced by the unix version ( \n ) when the 
eol-style setting is set to "native" in the file's subversion 
properties.    When a file stored in this manner on the 
repository is updated or checked out to a local machine then 
the local-machine's version of the eol string is inserted to 
replace the existing unix one.  

If this is an incorrect understanding of this setting then 
kindly let me know.

2. Python scripting in a Plone site:  You asked me whether we 
could instantiate an external method in a DirectoryView.  A 
DirectoryView is a product deployed in the CMF product family. 
 To expose python scripting to the zmi in a DirectoryView a 
file in a DirectoryView'ed directory must have the file 
extension: 'py' or 'cpy'.  This provides for the creation of 
an FSPythonScript object in the zmi DirectoryView object which 
is a python script with its source code stored in a file on 
the file system.  The convenience of this arrangement is not 
to be underestimated, however the usage of pythonscripts in a 
Plone skin also has disadvantages: (chiefly performance 
slowdown and security/permission issues).  An external python 
method performs a similar function except that it has no 
permission restrictions  except those of a python script 
running on the file system outside of zope.  Unfortunately, as 
of the current release of PLone/CMF there is no provision for 
an external python method to be exposed in a DirectoryView. 
 The DirectoryView only supports zope objects of the following 
types:

Page Template
Script (Python)
Properties Object
Image
Controller Page Template
Controller Python Script
STX Method
Controller Validator
File
Z SQL Method
FSForm
DTML Method

This is pretty much a final list for now.

Best Regards
Medur

On Sat, 01 May 2004 09:28:38 -0700
  <VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org> (Jagrata Minardi) 
wrote:
>utils.py is a module in the latest revision of vsaCore.
>
>  (Dhyani) wrote:
>
>> Hi Jagrata,
>> 
>> I don't understand your message. What is vsaCore.utils? I 
>>don't have
>> anything called utils inside vsaCore. I must be deeply 
>>misunderstanding
>> something...
>> 
>> Dhyani
>> 
>> 
>> 
>> 
>>>Hi Medur,
>>>
>>>Let's go it one step at a time. Mallikarjun
>>>and Dhyani, please review vsaCore.utils and
>>>give some feedback. Refer to Medur's note
>>>from 4/28/2004 describing the use.
>>>
>>>Dhyani, would this solve the difficulty with
>>>displayContentTab?
>>>
>>>Is the functionality of getOptionsFromIniFile()
>>>something that we don't get by writing products
>>>in the plonish way?
>>>
>>>-Jagrata
>>>
>>>
>>>
>>>  (Medur) wrote:
>>>
>>>
>>>>Hey Jagrata
>>>>
>>>>I am starting to build new code structures here in the vsaSQL 
>>>>product.
>>>>I have successfully deployed a utility in the 
>>>>vsaCore.utils.py file
>>>>which accepts parameter data from the file system at run 
>>>>time.  This has
>>>>been covered in a previous message.  My question is:
>>>>What is your feeling about using this in a more general way 
>>>>for
>>>>all/most/some configuration settings for this product or for 
>>>>any other
>>>>product in the pipe-line?
>>>>
>>>>Before I start committing new modules in the vsaSQL product I 
>>>>would like
>>>>to set some of these types of standards.
>>>>
>>>>Best Regards
>>>>Medur
>>>>
>>>
>>>--------------------------------------------------------------------------
>>>
>>>>This message is sent to you because you are subscribed to the 
>>>>mailing
>>>>list <VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org>.
>>>>Vasudeva Service home: http://www.vasudevaservice.com/
>>>>Browse list: 
>>>>nntp://news.gmane.org/gmane.org.misc.vasudeva-server.web
>>>>List archive:
>>>>https://pop.vasudevaserver.org:13031/Lists/VasudevaService/List.html
>>>
>>>--------------------------------------------------------------------------
>>>
>>>
>>>--------------------------------------------------------------------------
>>>This message is sent to you because you are subscribed to the 
>>>mailing list
>> 
>> <VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org>.
>> 
>>>Vasudeva Service home: http://www.vasudevaservice.com/
>>>Browse list: 
>>>nntp://news.gmane.org/gmane.org.misc.vasudeva-server.web
>>>List archive:
>> 
>> https://pop.vasudevaserver.org:13031/Lists/VasudevaService/List.html
>> 
>>>--------------------------------------------------------------------------
>> 
>> 
>> 
>> --------------------------------------------------------------------------
>> This message is sent to you because you are subscribed to 
>>the mailing list <VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org>.
>> Vasudeva Service home: http://www.vasudevaservice.com/
>> Browse list: 
>>nntp://news.gmane.org/gmane.org.misc.vasudeva-server.web
>> List archive: 
>>https://pop.vasudevaserver.org:13031/Lists/VasudevaService/List.html
>> --------------------------------------------------------------------------
>> 
>
>
>--------------------------------------------------------------------------
>This message is sent to you because you are subscribed to the 
>mailing list <VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org>.
>Vasudeva Service home: http://www.vasudevaservice.com/
>Browse list: 
>nntp://news.gmane.org/gmane.org.misc.vasudeva-server.web
>List archive: 
>https://pop.vasudevaserver.org:13031/Lists/VasudevaService/List.html
>--------------------------------------------------------------------------


--------------------------------------------------------------------------
This message is sent to you because you are subscribed to the mailing list <VasudevaService-K9y3B4ipJAZZAIG4hdpdiNBPR1lH4CV8@public.gmane.org>.