Skip to content

Instantly share code, notes, and snippets.

@dolftax
Last active August 29, 2015 14:19
Show Gist options
  • Save dolftax/bc263b30f95d0687cd6b to your computer and use it in GitHub Desktop.
Save dolftax/bc263b30f95d0687cd6b to your computer and use it in GitHub Desktop.
#fossasia IRC log / sTeam Web Interface Rewrite
<eMBee> note that there are also containers, which are also kind of like folders, but i want to use tem for special things only, like a multi-part document (eg a html file and images) or a multi-language document. (one file per language) or other multi-part (one file per chapter for example)
<dolftax> Special Room for this feature?
<eMBee> a key difference between rooms and containers is that a user can enter a room, but not a container. in that sense rooms are moe like directories, because you can cd to a directory
<eMBee> it's not a special room, it is a container in sTeam terms
<eMBee> sTeam has two things that can contain files: rooms and containers
<dolftax> Why can't a user enter container, if he got access to it?
<eMBee> because sTeam is implementedthat way. you can see what's inside a container, and get all files (and subcontainers) but you can't enter it
<dolftax> I couldn't get that. Please clarify
<eMBee> do you have a steam server running?
<dolftax> Yes.
<eMBee> didyou try the debug tool?
<dolftax> debug tool of the browser?
<eMBee> no, in the sTeam directory, there is a tools subdirectory
<eMBee> inside is a debug.pike tool
<eMBee> run that
<dolftax> Looking for it. Give me a moment.
<dolftax> Okay. now?
<eMBee> are you logged in?
<eMBee> OBJ("/")->get_inventory();
<dolftax> okay.
<eMBee> do you see an entry like ~root
<dolftax> Yes
<eMBee> that's you, you are inside the root-room
<eMBee> now: me->move(OBJ("/home/sTeam/"));
<eMBee> then run OBJ("/")->get_inventory();
<eMBee> see ~root missing now?
<dolftax> Exactly
<eMBee> because you entered another room
<eMBee> OBJ("/home/sTeam/")->get_inventory();
<eMBee> see it?
<dolftax> Yes.
<eMBee> now try me->move(OBJ("/tags"));
<eMBee> fails because it's a container. you can't enter a container. but you can look inside: OBJ("/tags")->get_inventory();
<dolftax> Makes sense!
<eMBee> yes, and as i said, more specifically, i want to restrict containers for special multi-part documents as explained above.
// You could find more about sTeam and its installation procedure here - https://docs.google.com/document/d/1S8CXouW34GRd4pPGzlg3KS5kJJ6eQ9bceretg6wYU3w/edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment