"NLPIaux" class

Description

Owner: NLPIaux

This is the mix-in class for NLPIProduct and gets imported on startup of Zope.

Parent classes:

Operations:

Examples

Description

Instances:

"" instance

Links:

"Znlpiaux_addNLPI" operation

Description

public Znlpiaux_addNLPI (
self in object ,
REQUEST in object ,
PARENTS in list )
Adjusts properties and the icl file name when a NLPI product gets added.

Parameters:

"Znlpiaux_actualize" operation

Description

public Znlpiaux_actualize (
self in object ,
REQUEST in object ,
PARENTS in list )
Znlpi_manager.py

Actualize a resource given by refSymbol and return the html ouput generated by the actualizing methods.

Parameters:

"Znlpiaux_actualizeThis" operation

Description

public Znlpiaux_actualizeThis (
self in object ,
REQUEST in object ,
PARENTS in list ,
refSymbol in string )
Znlpi_manager.py

Actualize a resource given by explicitely given refSymbol and return the html ouput generated by the actualizing methods.

Parameters:

"Znlpiaux_outputOfActualize" operation

Description

public Znlpiaux_outputOfActualize (
self in object ,
REQUEST in object ,
PARENTS in list )
Znlpi_manager.py

Print just the output of the last actualizing action.

Parameters:

"Znlpiaux_ageResource" operation

Description

public Znlpiaux_ageResource (
self in object ,
REQUEST in object ,
PARENTS in list ,
refSymbol in string )
Znlpi_manager.py

Age a resource given by refSymbol in the current instance.

Parameters:

"Znlpiaux_getParentURL" operation

Description

public Znlpiaux_getParentURL (
self in object ,
PARENTS in list )
Znlpi_utilities.py

Reutrns the relative path to the nearest parent NLPI class instance susing getParentNLPI

Parameters:

"Znlpi_iclRead" operation

Description

public Znlpi_iclRead (
self in object ,
REQUEST in object ,
PARENTS in list )
Read in inform sources and extract objects into the persistent object store.

Parameters:

"Znlpi_infObjRead" operation

Description

public Znlpi_infObjRead (
self in object ,
REQUEST in object ,
PARENTS in list )
Znlpi_infObj.py

Read in inform sources and extract objects into the persistent object store.

Parameters:

"Znlpi_getattr" operation

Description

public Znlpi_getattr (
self in object ,
object in object ,
attribute in string )
return object
Needed because simple attributes are not available via zope (because of lack of a documentation string).

! can only call immediate attributes, no inheritance !

Parameters:

"Znlpi_setattr" operation

Description

public Znlpi_setattr (
self in object ,
object in object ,
attribute in string ,
value in object )
As above to set attributes.

Parameters:

"Znlpi_addPicture" operation

Description

public Znlpi_addPicture (
self in object ,
REQUEST=None in object ,
PARENTS=None in list )
return list
Add a picture to the current inform project

Returns a list of current pictures to mix into the form.

Parameters:

"Znlpi_managePicture" operation

Description

public Znlpi_managePicture (
self in object ,
REQUEST in object ,
PARENTS in list )
Remove or change a picture from the current inform project

Parameters:

"Znlpi_infOutWrite" operation

Description

public Znlpi_infOutWrite (
self in object ,
REQUEST in object ,
PARENTS in list )
Writes new icl file and inform sources into var

Parameters:

"Znlpi_infOutCompile" operation

Description

public Znlpi_infOutCompile (
self in object ,
REQUEST in object ,
PARENTS in list )
Invokes the (glulx) inform compiler

Parameters:

"Znlpi_infOutTextEdit" operation

Description

public Znlpi_infOutTextEdit (
self in object ,
REQUEST in object ,
PARENTS in list )
Invokes your favorite text editor

Parameters:

"Znlpi_infOutPlay" operation

Description

public Znlpi_infOutPlay (
self in object ,
REQUEST in object ,
PARENTS in list )
Invokes any Z-code-interpreter (usually Glulxe)

Parameters:

"Znlpi_blorbWrite" operation

Description

public Znlpi_blorbWrite (
self in object ,
REQUEST in object ,
PARENTS in list )
Writes a blorb file into the var directory

Parameters:

"Znlpi_downloadGameFile" operation

Description

public Znlpi_downloadGameFile (
self in object ,
REQUEST in object ,
PARENTS in list ,
What in string )
return string
Returns the filename or the creation date of the game to download

Parameters:

"Znlpi_setTimeStamp" operation

Description

public Znlpi_setTimeStamp (
self in object ,
PARENTS in list )
Sets a time stamp from dtml

Parameters:

"Znlpiaux_ZipMachine_open" operation

Description

public Znlpiaux_ZipMachine_open (
self in object ,
REQUEST in object ,
PARENTS in list )
Starts a dumb-frotz instance in the Zope tty window.

Returns when the user quits the game.

Parameters:

"Znlpiaux_ZipOneTurn" operation

Description

public Znlpiaux_ZipOneTurn (
self in object ,
REQUEST in object ,
PARENTS in list ,
userInput in string ,
terminal=1 in boolean )
Performas one turn on an open ZipMachine.

If terminal==1 then output is written to the Zope tty window.

Parameters:

"Znlpiaux_ZipLoop_tty" operation

Description

public Znlpiaux_ZipLoop_tty (
self in object ,
REQUEST in object ,
PARENTS in list )
Gives control (in a spawned thread) to a dumb-frotz instance openen by Znlpiaux_ZipMachine_open and returns only if user quits it explicitely.

Parameters:

"Znlpiaux_ZipWalkthroughForm" operation

Description

public Znlpiaux_ZipWalkthroughForm (
self in object ,
REQUEST in object ,
PARENTS in list )
Prints the walkthrough for the Znlpidtml_localWalkForm form to change Znlpiprop_ZipWalkthroughPosition.

Parameters:

"Znlpiaux_ZipWalkthroughChangePosition" operation

Description

public Znlpiaux_ZipWalkthroughChangePosition (
self in object ,
REQUEST in object ,
PARENTS in list )
Updates the Znlpiprop_ZipWalkthroughPosition property of the caller dtml method.

Parameters:

"Znlpiaux_ZipWalkthroughSaveRequest" operation

Description

public Znlpiaux_ZipWalkthroughSaveRequest (
self in object ,
REQUEST in object ,
PARENTS in list )
Saves any data in a global request variable. It lives only for the whole duration of the request and redirect process.

Parameters:

"Znlpiaux_ZipWalkthroughRequest" operation

Description

public Znlpiaux_ZipWalkthroughRequest (
self in object ,
symbol in string )
Get any above value back from the global variable (as long as no second request was done).

Parameters:

"Znlpiaux_getGlobalVar" operation

Description

public Znlpiaux_getGlobalVar (
self in object ,
varString in string )
return undefined
This is currently attached to one particular class, Znlpi_ZipMachine. It is used to get the global dumb-frotz status variable.

Parameters:

"Znlpiaux_setGlobalVar" operation

Description

public Znlpiaux_setGlobalVar (
self in object ,
varString in string ,
value in undefined )
Pendant to Znlpiaux_getGlobalVar. Not in use.

Parameters:

"Znlpiaux_ZipWalkCheckIn" operation

Description

public Znlpiaux_ZipWalkCheckIn (
self in object ,
REQUEST in object ,
PARENTS in list )
Save walk data into the local Walk instance.

Parameters: