Ticket #321 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

autosave-file AND -directory

Reported by: nh2 Owned by: armin
Priority: normal Milestone: Sobby 0.4.4
Component: Gobby Version: 0.4.4
Severity: normal Keywords:
Cc: Launchpad Bug:

Description

Hello,

I am using Gobby and Sobby to create HTML web sites. I use the autosave-directory parameter so that I can display the written html files on my server directly.

When I restart sobby (e.g. after a system reboot), how can I load the saved documents into the session? Sobby says I have to use autosave-file OR autosave-directory.

Thank you!

Change History

  Changed 6 years ago by armin

It is true that you can't use use autosave-file and autosave-directory together. Code-wise, there shouldn't be a problem to allow this, though. Note that for now you can load the saved documents by giving the files to load to sobby on the command line, like "./sobby your_autosave/directory/*". However, the author information (who wrote what) is lost this way.

  Changed 6 years ago by nh2

Oh, it works great! But what can I do that after loading the files into the session, the absolute path to the documents is not shown in the document list?

follow-up: ↓ 4   Changed 5 years ago by armin

  • status changed from new to closed
  • resolution set to fixed

I fixed this in Sobby. Now only the basename is used as document title. Also, both autosavers can be set simultanously.

in reply to: ↑ 3   Changed 4 years ago by rafael

Replying to armin:

I fixed this in Sobby. Now only the basename is used as document title. Also, both autosavers can be set simultanously.

I'm trying to use autosave-file and autosave-directory together because I'd like to keep the auther information but I need also the files to work with on the server. My configuration:

<autosave_file>/home/rafael/sobby/autosave.obby</autosave_file> <!--<autosave_directory>/home/rafael/sobby/session</autosave_directory>--> <autosave_interval>15</autosave_interval> <command_directory></command_directory> <port>6522</port> <session>/home/rafael/sobby/autosave.obby</session>

This works all fine but as soon as I uncomment the autosave_directory line it doesn't write to the autosave_file anymore.

I'm using sobby with Ubuntu 9.10. Starting sobby: rafael@donkey:~/sobby$ sobby --configfile=obbyconf.xml Sobby 0.4.5 starting up... Running server on port 6522 using obby 0.4.7

Am I doing something wrong?

Thank you

follow-up: ↓ 6   Changed 4 years ago by armin

This fix hasn't actually been released yet. I hope we'll soon release Sobby 0.4.6 which contains it. Sorry for the inconvenience.

in reply to: ↑ 5   Changed 4 years ago by rafael

Replying to armin:

This fix hasn't actually been released yet. I hope we'll soon release Sobby 0.4.6 which contains it. Sorry for the inconvenience.

OK, I thought it should be already fixed in 0.4.5. Is there a simple way to extract the files out of the autosave-file? So I could use the autosave-file option and extract the files to work with on the server.

  Changed 4 years ago by armin

I think you can start another sobby with that autosave-file as an argument and use --autosave-directory to dump the single files, like so:

sobby your-previous-autosaved-file.obby --autosave-directory=some-dir/

  Changed 4 years ago by rafael

Yes I tried this one. It writes the files into the autosave-directory but sobby is running afterwards (as a server). So I need a possibilty to stop the server automaticly.

  Changed 4 years ago by armin

Can't you do this with a simple shell script?

  Changed 4 years ago by armin

Sobby 0.4.6 including this fix has just been released.

Note: See TracTickets for help on using tickets.