"Znlpi_infOut" class

Description

Owner: Znlpi_infOut

Class for creating compilable inform files in NLPI's var directory.

Parent classes:

Sent data flows: Operations:

"Znlpi_inf_out_write_main" operation

Description

public Znlpi_inf_out_write_main (
self in object ,
REQUEST in object ,
PARENTS in list )
return ZClass
Writes the sources to the temporary directory. Step by step:

- first get the parent ZClass

- set up local path definitions

- create the adjusted .icl file

- update infSrcTask for modifying

- copy the "in tree" source files

Parameters:

"Znlpi_inf_out_compile_main" operation

Description

public Znlpi_inf_out_compile_main (
self in object ,
REQUEST in object ,
PARENTS in list )
return ZClass
Compile an inform game and add links in inform output error messages to be opened in the text editor.

The attributes for invoking the compiler are derived from Znlpi_propLocal.

If only a zcode game file is given (Znlpiprop_uploadFileType == 3) 'compiling' means to copy it to the NLPI var directory. This resource ('zcodeGameCodeFile') becomes thus a base resource (see Znlpi_manager).

Parameters:

"Znlpi_inf_out_text_edit_main" operation

Description

public Znlpi_inf_out_text_edit_main (
self in object ,
REQUEST in object ,
PARENTS in list )
return string
invoke a text editor with line X (usually where an error ocurred). Step by Step:

- find the path to the file (out of icl information)

- _file_path is the normal source_id this is used to compute the offset-corrected _line. Reason: inf_out_write_main might have inserted lines.

- invoke text editor if a path was found

Parameters:

"Znlpi_inf_out_play_main" operation

Description

public Znlpi_inf_out_play_main (
self in object ,
REQUEST in object ,
PARENTS in list )
play an inform game :-)

Invokes either Frotz in the CMD window where Zope is running or a new window with WinFrotz.

Parameters:

"Znlpi_download_game_file_name_main" operation

Description

public Znlpi_download_game_file_name_main (
self in object ,
REQUEST in object ,
PARENTS in list ,
What in string )
return string
Return the file name (incl. link to the file) or the creation date of the actual game.

The 'What' argument is either 'file' or something else (='time').

Parameters: