uploading a python filetype to wiki

I'm trying to upload a python file to the wiki - an example on how to use python sdk, unfortunately i can't do it: Permitted file types: png, gif, jpg, jpeg, odp, odt, ods, pdf, jnlp, vsd. is there a way we can make it happen, if not where would be the appropriate place to put it in. Moran.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/16/2012 04:00 AM, Moran Goldboim wrote:
I'm trying to upload a python file to the wiki - an example on how to use python sdk, unfortunately i can't do it: Permitted file types: png, gif, jpg, jpeg, odp, odt, ods, pdf, jnlp, vsd.
is there a way we can make it happen, if not where would be the appropriate place to put it in.
We can theoretically make it happen. Is there a security risk to attaching a Python script to the wiki? I'm unclear on the exact reasons MediaWiki restricts file types, so I'll look in to that. As another thought, is this something that should be in git? Maybe a new repo of examples? - - Karsten - -- name: Karsten 'quaid' Wade, Sr. Community Architect team: Red Hat Community Architecture & Leadership uri: http://communityleadershipteam.org http://TheOpenSourceWay.org gpg: AD0E0C41 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFPFGsl2ZIOBq0ODEERAvikAKDPDlmz2grEasZXNE4XpEbz9mMJ+wCgt0go HrSHuburVU0f+TKSECQM0fI= =/CTY -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/16/2012 04:00 AM, Moran Goldboim wrote:
I'm trying to upload a python file to the wiki - an example on how to use python sdk, unfortunately i can't do it: Permitted file types: png, gif, jpg, jpeg, odp, odt, ods, pdf, jnlp, vsd.
is there a way we can make it happen, if not where would be the appropriate place to put it in.
So the concern about uploading scripts to MediaWiki is about how I figured it. If there is a flaw in MediaWiki (or possibly the web server), uploaded scripts can be an attack vector. Since we're likely to want more and more examples for people, I think opening a new git repo for cross-project examples (with sub-directories per sub-project?), or just putting examples directly in other repos is probably the way to go. We should be able to provide direct links from the wiki to download scripts via HTTP. You can always paste the contents of a script in to a <pre/> block, which helps with annotating in the wiki etc. - - Karsten - -- name: Karsten 'quaid' Wade, Sr. Community Architect team: Red Hat Community Architecture & Leadership uri: http://communityleadershipteam.org http://TheOpenSourceWay.org gpg: AD0E0C41 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFPFHDg2ZIOBq0ODEERAs4rAJ4pL8MQo0PCGE6NHRY6rpKJJDnxYgCgs0YU tJKgu+4UPr8pHLAT2wdfghw= =fQ6w -----END PGP SIGNATURE-----

--7DO5AaGCk89r4vaK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 16, 2012 at 10:48:00AM -0800, Karsten 'quaid' Wade wrote:
You can always paste the contents of a script in to a <pre/> block, which helps with annotating in the wiki etc.
And if you're interested, there are also some extensions that can be installed for syntax highlighting inside a <pre> block. --=20 Ian Weller, Intern and Doer of Stuff <iweller@redhat.com> Red Hat, Inc. -- communityleadershipteam.org --7DO5AaGCk89r4vaK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8UeHEACgkQ5bUBEgCkS8h03wCeJr00LtnD+3hIhRUjid/zrnCf kw4AoLAC+Gflud5xcNCDm5BlWLv8+n00 =PGNc -----END PGP SIGNATURE----- --7DO5AaGCk89r4vaK--
participants (3)
-
Ian Weller
-
Karsten 'quaid' Wade
-
Moran Goldboim