[Xerte-dev] Re: Moodle integration and troubles saving projects

Pat Lockley patrick.lockley at googlemail.com
Thu Jun 28 16:54:05 BST 2012


A file is deleted when it is deleted from the recycle bin

You can use the admin (management.php) to delete materials

On Thu, Jun 28, 2012 at 4:29 PM, Jose Diaz <xt4mhz at yahoo.com> wrote:
> Hi Pat and thanks for your reply.
>
> So its a fact that we will have one directory by project.
>
> There is another thing that I'm not sure if is working properly:
>
> When I delete a project from XOT the directory still is in "USER-FILES"
>
> Shouldn't be deleted when I delete the project from XOT?
>
> Let say that I have 100 teachers using XOT and they create one project each
> one. After one week, 50% of them delete the project and create anothers.
>
> How can I keep "clean" the "USER-FILES" directory with "ghosts" projects?
>
> Thanks in advance.
>
> José.
>
> --
> Lic. José Gregorio Díaz Unda.
> Asesor de Tecnologías de Información y Comunicación.
> Tel.: 58.0412.5518085
> Skype: xt4mhz
> Web: www.usb.ve - jgdu.blogspot.com
> ________________________________
> De: Pat Lockley <patrick.lockley at googlemail.com>
> Para: Jose Diaz <xt4mhz at yahoo.com>; For Xerte technical developers
> <xerte-dev at lists.nottingham.ac.uk>
> Enviado: Jueves, 28 de junio, 2012 8:02:48
> Asunto: Re: [Xerte-dev] Re: Moodle integration and troubles saving projects
>
> USER-FILES contains 1 folder for each project
>
> (id)-(creator)-(template)
>
> A shared project will share one folder.
>
> On Thu, Jun 28, 2012 at 1:27 PM, Jose Diaz <xt4mhz at yahoo.com> wrote:
>> Hi Ron.
>>
>> I added at the top of the "config.php" file the line
>> "require("/var/www/moodle/config.php");" and the projects are saved know.
>>
>> I tested adding some images to title pages and all of them are saved into
>> the media folder as expected.
>>
>> A question:
>>
>> Each time a user (profesor) creates a project a directory in "USER-FILES"
>> will be created? Or it should be into the unique "ID-profesor-Nottinghman"
>> directory?
>>
>> This is the content of "USER-FILES" after creatin two more projects:
>>
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 18:10 1-guest-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:05 2-admin-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:12
>> 3-profesor-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:14
>> 4-profesor-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:45
>> 5-profesor-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-28 07:45
>> 6-profesor-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-28 07:50
>> 7-profesor-Nottingham
>>
>> The directories "6-profesor-Nottingham" and "7-profesor-Nottingham" are
>> new
>> after creating two more projects.
>>
>> Thanks for the help.
>>
>> José.
>>
>> --
>> Lic. José Gregorio Díaz Unda.
>> Asesor de Tecnologías de Información y Comunicación.
>> Tel.: 58.0412.5518085
>> Skype: xt4mhz
>> Web: www.usb.ve - jgdu.blogspot.com
>> ________________________________
>> De: Ron Mitchell <ronm at mitchellmedia.co.uk>
>> Para: 'Jose Diaz' <xt4mhz at yahoo.com>; 'For Xerte technical developers'
>> <xerte-dev at lists.nottingham.ac.uk>
>> Enviado: Jueves, 28 de junio, 2012 3:27:48
>> Asunto: RE: [Xerte-dev] Moodle integration and troubles saving projects
>>
>>> Thats why "profesor" is repeating but I dont know why<
>> This is normall - all project folders contain the username as well as the
>> id
>> and template
>>
>>> BUT the files are not saved<
>> Try adding the path to your moodle config at the top of the xot config.php
>> e.g.
>> require("/var/www/moodle/config.php");
>>
>> Test by creating a new LO. Let us know if that resolves the issue?
>>
>> HTH
>> Ron
>>
>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Jose Diaz
>> Sent: 28 June 2012 04:21
>> To: For Xerte technical developers
>> Subject: [Xerte-dev] Moodle integration and troubles saving projects
>>
>> Hi guys, I hope you be ok.
>>
>> Recently I installed XOT from trunk and did the integration process for
>> MOODLE.
>>
>> The workflow for login is working well.
>>
>> The problem is when I login in to MOODLE and visit XOT installation, I
>> create a project and publish (save) it, BUT the files are not saved. When
>> I
>> get back to XOT (after MOODLE login), the project list is empty. However,
>> the directory in "USER-FILES" for the user is created too.
>>
>> Some additional info:
>>
>> 1. Installation directories:
>>
>> MOODLE: /var/www/moodle
>> XOT: /var/www/xot-demo
>>
>> 2. Content and permissions into "USER-FILES":
>>
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 18:10 1-guest-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:05 2-admin-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:12
>> 3-profesor-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:14
>> 4-profesor-Nottingham
>> drwxrwxrwx  3 www-data www-data   24 2012-06-27 22:45
>> 5-profesor-Nottingham
>>
>> Note: "profesor" is the user used to login to MOODLE and visit XOT. Each
>> time I try to create LO from XOT, a new directory is created for the same
>> user. Thats why "profesor" is repeating but I dont know why.
>>
>> The contents into "5-profesor-Nottingham" are:
>>
>> /var/www/xot-demo/USER-FILES/5-profesor-Nottingham# ls -al
>> total 12
>> drwxrwxrwx 3 www-data www-data  24 2012-06-27 22:45 .
>> drwxr-xr-x 8 www-data www-data  64 2012-06-27 22:45 ..
>> -rw-rw-rw- 1 www-data www-data 868 2012-06-27 22:47 data.xml
>> drwxrwxrwx 2 www-data www-data   1 2012-06-27 22:45 media
>> -rwxrwxrwx 1 www-data www-data 868 2012-06-27 22:48 preview.xml
>> What could be wrong?
>>
>> Thanks a lot in advance.
>>
>> Take care.
>>
>> José.
>>
>> --
>> Lic. José Gregorio Díaz Unda.
>> Asesor de Tecnologías de Información y Comunicación.
>> Tel.: 58.0412.5518085
>> Skype: xt4mhz
>> Web: www.usb.ve - jgdu.blogspot.com
>>
>> This message and any attachment are intended solely for the addressee and
>> may contain confidential information. If you have received this message in
>> error, please send it back to me, and immediately delete it. Please do not
>> use, copy or disclose the information contained in this message or in any
>> attachment. Any views or opinions expressed by the author of this email do
>> not necessarily reflect the views of the University of Nottingham.
>> This message has been checked for viruses but the contents of an
>> attachment
>> may still contain software viruses which could damage your computer
>> system:
>> you are advised to perform your own checks. Email communications with the
>> University of Nottingham may be monitored as permitted by UK legislation.
>>
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> This message and any attachment are intended solely for the addressee and
>> may contain confidential information. If you have received this message in
>> error, please send it back to me, and immediately delete it.   Please do
>> not
>> use, copy or disclose the information contained in this message or in any
>> attachment.  Any views or opinions expressed by the author of this email
>> do
>> not necessarily reflect the views of the University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an
>> attachment
>> may still contain software viruses which could damage your computer
>> system:
>> you are advised to perform your own checks. Email communications with the
>> University of Nottingham may be monitored as permitted by UK legislation.
>>
>>
>
>
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do not
> use, copy or disclose the information contained in this message or in any
> attachment.  Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>



More information about the Xerte-dev mailing list