1. David Boddie
  2. AccessPlusPython

Commits

Author Commit Message Date Builds
David Boddie
Updated version number.
David Boddie
Updated version number and fixed future-proofed RISC OS date handling. Peer.send_file: Changed D message so that the offset within a current block being transferred is returned to the remote host. Before, it was assumed that the absolute offset was used. Changed R message at the end of a block so that the absolute value of the end offset is given. Before, the offset relative to the start of the block was given. Additionally, the length of data transferred in the bl…
David Boddie
Fixed long integers for later versions of Python and added a non-Access+ option to avoid using port 32771.
David Boddie
Updated the version number to 0.27.
David Boddie
Using long values rather than int values when constructing RISC OS date values to fit in 32 bit words.
David Boddie
Updated version number.
David Boddie
Made some changes to hopefully improve compatibility with Python versions before 2.2 (explicitly specified longs and included a definition for ox.extsep).
David Boddie
Finishing example file.
David Boddie
Made the access.py file friendlier to run as a script and added license details. Added terse documentation and a sample configuration file.
David Boddie
Added "user" attribute to Directory objects for consistency.
David Boddie
Added address filtering through a new _recvfrom method for the Ports class. File objects now have a "user" attribute to prevent multiple users modifying files simultaneously. Started work on the web front end.
David Boddie
Renaming file
David Boddie
Added the MimeMap file.
David Boddie
Adding license and filetype mapping files. Updated the version number in the setup.py file.
David Boddie
Some support for local printers introduced. Support for printer definition files needs generalising.
David Boddie
Added file which will be modified to create a peer which can perform administration tasks as well as serve shares and printers.
David Boddie
Updated version number.
David Boddie
Initial support for local printers added.
David Boddie
Fixed some problems with putting files onto a remote server by adding an open file test rather than a catalogue test on the destination path and adding a default "truncate" presentation attribute to the RemoteShare class.
David Boddie
Commented out open print statement.
David Boddie
Reverted permissions checked for reading and writing by remote clients to the "other" permissions on files. This means that we don't have to check who the owner is before trying to determine whether the permissions allow reading or writing. Changed the Messages object so that it uses a dictionary internally to organise messages. When our client expects messages using a certain ID, it asks the Messages object to add an entry for this ID in its internal dictionary; reply-type messages ("D", "R", "S", "E", "d", "r", "w") are discarded if they do not have a corresponding entry in this dictionary. When no more messages using the ID are ex…
David Boddie
Changed the filetype-suffix translation to hopefully avoid problems with files from RISC OS which already have suffixes. Added DistUtils files.
David Boddie
Hopefully fixed renaming behaviour and added some support for hexadecimal suffixes to encode filetype information. Copying files to a local share with a suffix causes the RISC OS filer to complain as it is represented as a differently titled file on the share (with truncation enabled).
David Boddie
Preliminary support for file protection using local file attributes. Directories can be created on both local and remote machines.
David Boddie
Added a send_file method to Peer to handle the RISC OS filer's attempts to fetch files from our machine. Note that the message checking methods in the Ports class rely on the derived classes having valid Messages attributes called "share_messages". These should be shared between a Peer and its RemoteShare objects.
David Boddie
Moved much functionality into separate classes: - Ports: communication base class - Translate: filename translation base class - Share: local share operations - RemoteShare: remote share operations, objects created through Peer.open_share - Files: file handle management - Messages: storage for received messages - File: abstraction over the local filesystem Discovered that the code to handle remote clients fetching files from the loca…
David Boddie
Started to move the communications functionality into a Ports class.
David Boddie
Experimented with the messages that the remote client sends during put operations. Discarding short "d" messages, which give only the file position of the start of the previous block sent, data is retrieved as expected. Tweaked the receive buffer used to collect this data as otherwise the remote client would be constantly attempting to align the file pointer with an 8K boundary. Consequently, I've removed the condition that the file pointer must equal the current fil…
David Boddie
Started to move share-related functions into new Share and RemoteShare classes. Fixed stupid bug in File.write which was setting the length method rather than the _length attribute. Investigated problems with transfer_file which were partly imaginary: added check for the position in the file received with data in put operations so that, only when the position is as expected, is the data written to the File object. The pput method was not increasing the start position within…
David Boddie
Added tries and delay named parameters to the _send_request method for flexibility. Starting reorganisation into classes for shares and printers.
  1. Prev
  2. Next