1
0
Fork
You've already forked p
0

Addresses #31 for images only #32

Closed
alon wants to merge 1 commit from 31 into master
pull from: 31
merge into: tsyesika:master
tsyesika:master
alon commented 2014年10月31日 22:15:28 +01:00 (Migrated from github.com)
Copy link
No description provided.
moggers87 commented 2014年11月01日 02:32:23 +01:00 (Migrated from github.com)
Copy link

You should probably be using p.output.log instead of print.

Also, will that regex give the URL to the created note or the image itself?

You should probably be using `p.output.log` instead of `print`. Also, will that regex give the URL to the created note or the image itself?
alon commented 2014年11月01日 08:37:43 +01:00 (Migrated from github.com)
Copy link

Testing shows for images it does. I didn't test with a note since I don't have a server that allows notes.

The regex gives the scheme plus the host name - http://example.com/ - to which I add the PyPump url which seems to be the location of the new item. I've tested with mediagoblin.

Shall I do a new pull request with s/print/p.output.log/ ?

Testing shows for images it does. I didn't test with a note since I don't have a server that allows notes. The regex gives the scheme plus the host name - http://example.com/ - to which I add the PyPump url which seems to be the location of the new item. I've tested with mediagoblin. Shall I do a new pull request with s/print/p.output.log/ ?
moggers87 commented 2014年11月01日 10:34:31 +01:00 (Migrated from github.com)
Copy link

You can either amend the current commit or push a second commit to your "31" branch. Either way, it'll all end up here.

Once you've made that change and I (or someone else) has tested it with a normal Pump server, I think this will be ready for merging.

You can either amend the current commit or push a second commit to your "31" branch. Either way, it'll all end up here. Once you've made that change and I (or someone else) has tested it with a normal Pump server, I think this will be ready for merging.
alon commented 2014年11月01日 10:51:34 +01:00 (Migrated from github.com)
Copy link

done. neat, didn't know, I thought I'd need to close this pull request and open a new one.

done. neat, didn't know, I thought I'd need to close this pull request and open a new one.
moggers87 commented 2014年11月01日 12:45:12 +01:00 (Migrated from github.com)
Copy link
(p)[moggers@orpheus p]$ p post image --title "doge test" --to public doge.jpg 
https://microca.st/ttps://microca.st/moggers87/image/6lVmJXdsSni2eJ6PKZo2Yg

@xray7224 I think I'm going to pass this over to you :)

``` (p)[moggers@orpheus p]$ p post image --title "doge test" --to public doge.jpg https://microca.st/ttps://microca.st/moggers87/image/6lVmJXdsSni2eJ6PKZo2Yg ``` @xray7224 I think I'm going to pass this over to you :)
alon commented 2014年11月01日 13:00:13 +01:00 (Migrated from github.com)
Copy link

updated - although this is just covering the error, which is that image.url is not always a url, but is sometimes a path. Actually I should have noted that to begin with. What is the target you were sending to?

updated - although this is just covering the error, which is that image.url is not always a url, but is sometimes a path. Actually I should have noted that to begin with. What is the target you were sending to?

The AS 1.0 docs do say that the "url" attribute should contain an IRI to the HTML representation, the URL/IRI should always be a full qualified URL and not a partial path. This looks like it is a issue with MediaGoblin giving partial paths in the API when it should be fully qualified. This needs issuing upstream (to my work on GMG), it's an easy fix.

The AS 1.0 docs do say that the "url" attribute should contain an IRI to the HTML representation, the URL/IRI should always be a full qualified URL and not a partial path. This looks like it is a issue with MediaGoblin giving partial paths in the API when it should be fully qualified. This needs issuing upstream (to my work on GMG), it's an easy fix.

The latest mediagoblin master has the URL/IRI issue fixed. The MediaGoblin specific code can now be removed.

Future note: if MediaGoblin is different from pump.io that should raise alarm bells as they're suppose to be completely compatible so double check before writing specific mediagoblin code.

The latest mediagoblin master has the URL/IRI issue fixed. The MediaGoblin specific code can now be removed. _Future note: if MediaGoblin is different from pump.io that should raise alarm bells as they're suppose to be completely compatible so double check before writing specific mediagoblin code._
alon commented 2014年11月04日 11:49:18 +01:00 (Migrated from github.com)
Copy link

I've only tested with mediagoblin, my bad. What is a good reference?

I've only tested with mediagoblin, my bad. What is a good reference?

pump.io is the reference to use, it's what PyPump, p and MediaGoblin are writing to. You can get an account to test mediagoblin by going to http://pump.io/tryit.html

pump.io is **the** reference to use, it's what PyPump, p and MediaGoblin are writing to. You can get an account to test mediagoblin by going to http://pump.io/tryit.html
kabniel commented 2015年06月01日 22:22:40 +02:00 (Migrated from github.com)
Copy link

Closing as p post note and p post image now have a --return option for this.

Closing as `p post note` and `p post image` now have a `--return` option for this.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tsyesika/p!32
Reference in a new issue
tsyesika/p
No description provided.
Delete branch "31"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?