You are here

Comment Generator for the Test Releases page

9 posts / 0 new
Last post
Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Comment Generator for the Test Releases page

I've made this a while ago and decided to share it with the community. This page takes the app data from a form and generates the content of a properly formatted comment for the Test Releases page, preventing the burden of editing the code directly and inadvertently removing some tag. It also automatically escapes special characters.

The import and export buttons do... well, they save and load the form data to a file. Uselful for updates.

The interface is at http://kalug.users.sourceforge.net/temp/kyra/pages/test_release_generato..., with the hard work being done by http://kalug.users.sourceforge.net/temp/kyra/lib/pages/test_release_gene... (on LyCWeb.addCallback).

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Good!

That's something I have on my list of things for PADT (including producing for the Beta Testing topic as well), this looks like it should do people very nicely until I do it in PADT.

Edit: didn't seem to work for me. Haven't tried analysing it at all.

Also, ampersands will need to be doubly escaped - e.g. Graphics & Pictures needs to be output for inclusion in the <pre> tag as Graphics &amp;amp; Pictures. Didn't notice your escapeHtml function, glad you noticed the issue.

Come to think of it, it would make a fair amount of sense to put this into test/releases itself, including submitting the comment.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Try again

It should work now, except by the import/export functionality.
Can some web developer tell me what event on a <input type="file"> pops up the "Open File" dialog?

Previously known as kAlug.

vf2nsr
vf2nsr's picture
Offline
Last seen: 7 years 6 months ago
Developer
Joined: 2010-02-13 17:10
wow

potential a Noble prize candidate, after filling in blanks I get bombed...does not like any url tried using PA, Google and Gmail, keeps giving me a tye in ur, same with the poratble version number

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
?

I really don't understood what do you said... anyway, try to download and import (select) this file. It should be fully validated.
EDIT: And regarding the version, it's designed for development tests, so they need to match /^(.+) (?:DT|Dev(?:elopment)? Test) (\d+)$/.

Previously known as kAlug.

Ken Herbert
Ken Herbert's picture
Online
Last seen: 5 min 52 sec ago
DeveloperModerator
Joined: 2010-05-25 18:19
The onclick event should do

The onclick event should do it in most browsers. For some, onfocus may also work.

Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Nope

What I want is a button that, when clicked, pops up that dialog. This works on Firefox 4, but not on Chrome or Opera:

$('#import_button').click(function () {
	$('#import_file').click();
});

, where

<input type="button" id="import_button" value="Import..."/>
<input type="file"   id="import_file"/>

If this works, I can hide the file input entirely.
EDIT: And focus() doesn't work too.

Previously known as kAlug.

Aluísio A. S. G.
Offline
Last seen: 7 years 9 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
New Site+Page

I've rewritten my website, and this means a new URL and improved support (tested on Chrome 14, Firefox 6 and Opera 11.50): http://kalug.net/TestReleaseGenerator.
Please try it again if it haven't worked for you before, and report any issues.

I'll make the source code available as soon as the website structure becomes stable enough and I make a Mercurial repo.

Previously known as kAlug.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 1 week ago
Developer
Joined: 2008-09-30 19:18
it works

Very nice, by the way.

Log in or register to post comments