[Xerte-dev] Re: Feedback from Xerte session at Glasgow Uni

Smith, John J.J.Smith at gcu.ac.uk
Tue May 28 12:56:06 BST 2013


Hmm... passwords stored in plain text is never a good idea... if someone got hold of then they would have access to the account

I was thinking more along the lines of application API keys that could then be revoked/changed

I have the basics now of a working API that you can get at both the collection of/individual templates and the same for users... of limited value but what else might you want to get from the API?

So for now these all work quite well... with various combinations of the options...

        /api/v1/templates.json?offset=15&limit=10
        /api/v1/templates/12.json?offset=15&limit=10&callback=MyCustomCallback
        /api/v1/users.xml
        /api/v1/users/3.xml

Or for non .htaccess users

        /api/v1/index.php/templates.json?offset=15&limit=10
        /api/v1/index.php/templates/12.json?offset=15&limit=10&callback=MyCustomCallback
        /api/v1/index.php/users.xml
        /api/v1/index.php/users/3.xml

I've created an abstract XerteBaseController class which you just need to extend and override some default methods to create a new controller for a particular route and the rest of the classes (XerteAPIRequest/XerteAPIResponse etc) take care of parsing the incoming request and building the outgoing response.

Let me work on the loose ends for a day or two and then I'll send you a zip to drop in that you can test.

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University


-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: Friday, May 24, 2013 8:19 PM
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Feedback from Xerte session at Glasgow Uni

Post your password as a variable?

On 24 May 2013, at 20:11, "Smith, John" <J.J.Smith at gcu.ac.uk> wrote:

> Yeah i know - I did kinda make a start on it but didn't get very far and then started thinking about the best way to authenticate and never got beyond that really...
>
> Think I decided on just having keys in a file.
>
> Have you had any thoughts in that area?
>
> Regards
>
> John Smith
> Learning Technologist
> School of Health and Life Sciences
>
> Sent from Samsung Galaxy SII
>
>
>
> "Pat @ Pgogy" <xerte at pgogywebstuff.com> wrote:
>
>
> Also - maybe start the API?
>
> On 24 May 2013, at 19:39, "Smith, John" <J.J.Smith at gcu.ac.uk> wrote:
>
>> The media and quota must do a relatively good job of checking which media is in use... I'll start there when it comes to copying media...
>>
>> Regards
>>
>> John Smith
>> Learning Technologist
>> School of Health and Life Sciences
>>
>> Sent from Samsung Galaxy SII
>>
>>
>> "Pat @ Pgogy" <xerte at pgogywebstuff.com> wrote:
>>
>>
>> Did all those CETIS conferences count for nothing
>>
>> On 24 May 2013, at 14:03, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
>>
>>> Pretty much always 'url' but I'm not sure if that's every time.
>>>
>>> -----Original Message-----
>>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @
>>> Pgogy
>>> Sent: 24 May 2013 13:56
>>> To: For Xerte technical developers
>>> Subject: [Xerte-dev] Re: Feedback from Xerte session at Glasgow Uni
>>>
>>> Do all uploaded files sit in the same attribute?
>>>
>>> On 24 May 2013, at 10:42, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
>>>
>>>> In essence it's easy: put the xml somewhere for a 'copy' action, get it and put it somewhere new for a 'paste' action but the somewhere can't be the clipboard - you can write to it, but not read from it in flash: would have to be some sort of local storage which HTML5 now provides, or the flash player already provides. There is more difficulty with copying media if that page includes it, especially if linked to rather than set up as a property: perhaps that needs the somewhere to be on the server, using temp folders or something?
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: xerte-dev-bounces at lists.nottingham.ac.uk
>>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of
>>>> Smith, John
>>>> Sent: 24 May 2013 10:29
>>>> To: xerte-dev at lists.nottingham.ac.uk
>>>> Subject: [Xerte-dev] Feedback from Xerte session at Glasgow Uni
>>>>
>>>> Hi Julian,
>>>>
>>>> Just something I thought I would feedback.
>>>>
>>>> I took part in a great Xerte session on Tuesday at Glasgow University, led by Ron and something that was asked several times was "How do you copy a page from one LO to another?" We described the various ways you can do this:
>>>>
>>>> Copy the LO and delete the pages you don't want Open two editors and copy the parameters into the new one...
>>>>
>>>> But is this something that is easily doable with the Flash version - a context menu when you right click on a page with "Copy to another LO" or something? Would need a popup to list the LOs you have access to that are not locked.
>>>>
>>>> Then the next question would be: Is it worth doing? I'd like this in the HTML5 wizard but is it worth the effort to retrofit to the Flash one... We could also add other functionality to this menu... "Copy", "Paste (after selected item)", "Duplicate", "Delete", etc etc to this context menu too I suppose?
>>>>
>>>> Regards,
>>>>
>>>> John Smith | Learning Technologist
>>>> Room A251, Govan Mbeki Building | School of Health & Life Sciences
>>>> | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA
>>>>
>>>> Glasgow Caledonian University is a registered Scottish charity,
>>>> number
>>>> SC021474
>>>>
>>>> Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
>>>> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/nam
>>>> e,6
>>>> 219,en.html
>>>>
>>>> Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
>>>> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/nam
>>>> e,1 5691,en.html _______________________________________________
>>>> Xerte-dev mailing list
>>>> Xerte-dev at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>> _______________________________________________
>>>> Xerte-dev mailing list
>>>> Xerte-dev at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>>
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>> _______________________________________________
>>> Xerte-dev mailing list
>>> Xerte-dev at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>>
>> Glasgow Caledonian University is a registered Scottish charity,
>> number SC021474
>>
>> Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
>> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,
>> 6219,en.html
>>
>> Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
>> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,
>> 15691,en.html _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> Glasgow Caledonian University is a registered Scottish charity, number
> SC021474
>
> Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6
> 219,en.html
>
> Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,1
> 5691,en.html _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html


More information about the Xerte-dev mailing list