Feed aggregator

Ticket #833 (QDraggable cannot take jQuery selector as Handle) updated

Trac Timeline - Mon, 05/14/2012 - 00:00

Replying to sp:

... any string that is only alphanumerics would be a control id, since that would not be a valid selector.

Any HTML tag name is alphanumeric and is a valid jQuery selector, isn't it? So "alphanumerics only" doesn't necessarily mean QCubed control. I understand, this is unlikely to cause problems (since no one should use a selector with a tag name alone as a handle for QDraggable), but is there a way to be more "correct" here? Why do we really need to "fix" the value assigned to the property? Shouldn't the user worry about passing the proper selector, prefixing it with '#' if necessary?
If we're trying to have an easier to use version for developers, perhaps we could have another property called HandleControlId or something, which will prefix the passed in control id with '#'.

Categories: Project Activity

Ticket #844 (handle IP ranges in remote admin check) created

Trac Timeline - Sun, 05/13/2012 - 23:45

Currently the QApplication::IsRemoteAdminSession() function can only handle a list of simple IP numbers configured in ALLOW_REMOTE_ADMIN. Many people have dynamic IP's and their IP's change within a range. The attached patch adds support for IP number ranges. It handles 3 formats of range specifications like "10.1.1.1 - 10.1.1.255", "10.1.1.1/24" or "10.1.1.1/255.255.255.0".

Categories: Project Activity

Tutorials edited

Trac Timeline - Sat, 05/12/2012 - 18:14
Categories: Project Activity

PG_Remove_slashes_in_the_output.patch attached to Ticket #843

Trac Timeline - Mon, 05/07/2012 - 09:01

Removes the escaped quotes and makes them appear normal.

Categories: Project Activity

Ticket #843 (Slashes in the output with PG.) created

Trac Timeline - Mon, 05/07/2012 - 09:00

I am using PG with my app and when dealing with the varchar fields, I am getting the escaped strings as the output. This patch removes the behavior imedeately. However I think a little more inspection is required for the problem.

Categories: Project Activity

Ticket #842 (problem in collabsable QAccordion with no active panels) created

Trac Timeline - Sat, 05/05/2012 - 05:33

To demonstrate add the following tin jq_example.php

$this->Accordion->Active = false; $this->Accordion->Collapsible = true;

then expand and collapse one of the accordion panels.
The fix is to allow boolean values in the _SelectedIndex setter, since jQuery accordion's Active property accepts boolean values.

Categories: Project Activity

QcubedContributors edited

Trac Timeline - Fri, 05/04/2012 - 03:37

Added my name (Vaibhav) in the list.

(diff)
Categories: Project Activity

Ticket #654 (QEmailServer invalid encoding) updated

Trac Timeline - Wed, 05/02/2012 - 15:20

I ended up with the following code in QEmailServer

public static function WrapStringInEncodedWord($strContent, $strWordPrefix, $strWordSuffix){ //encoded word atoms seperated by space return sprintf(' %s%s%s', $strWordPrefix, $strContent, $strWordSuffix); } public static function GetEncodedWordChunks($strQuotedPrintable, $strEncodingType){ $strWordPrefix = sprintf("=?%s?Q?", $strEncodingType); $strWordSuffix = "?="; $intChunksize = 75 - (strlen($strWordPrefix) + strlen($strWordSuffix)); return preg_replace( '/(.{1,'.$intChunksize.'})/ue', "QEmailServer::WrapStringInEncodedWord( '\\1', '".$strWordPrefix."', '".$strWordSuffix."')", $strQuotedPrintable); }

in Send()

if ($objMessage->Subject){ $strSubjectQuoted = str_replace( "=\r\n", '', //needs not chunked lines, but quoted ones. self::QuotedPrintableEncode($objMessage->Subject, true)); $strEncodedWordsSubject = self::GetEncodedWordChunks($strSubjectQuoted, $strEncodingType); fwrite($objResource, "Subject: $strEncodedWordsSubject\r\n"); }

tested and verified with qcubed 2.0.2, PHP 5.3.10

Categories: Project Activity

Ticket #654 (QEmailServer invalid encoding) updated

Trac Timeline - Wed, 05/02/2012 - 13:55

Sorry there is a typo:

(the string from =? to =?, including those limiters)

should read

(the string from =? to ?=, including those limiters)

Categories: Project Activity

Ticket #654 (QEmailServer invalid encoding) updated

Trac Timeline - Wed, 05/02/2012 - 13:33

I've had my fair share of trouble with QEmailServer too in the past two days and one bug that i encountered was with long subject lines.

According to  http://www.ietf.org/rfc/rfc2047.txt a quoted-printable encoded-word "Subject" must be split into chunks of max. 75 characters.

So instead of

Subject: =?UTF-8?Q?something_very_long?=

it must be split into

Subject: =?UTF-8?Q?something?= =?UTF-8?Q?very_long?=

where each of those encoded-word "atoms" must not exceed 75 characters (the string from =? to =?, including those limiters).

It seemed weird but after what I've seen regarding emails and encodings today and a little desperateness I gave it a try and to my surprise the subjects were displayed correctly, even very long ones.

I haven't yet created some generic code to fix this.
Maybe it would be a good idea to use B (base64) by default instead of quoted_printable. From some other people's experiences that i read in forums it seems as you don't have this hassle with having to make chunks there. But i haven't tested it.

Also i have used michaelarnauts patches successfully to resolve the other problems he mentioned.

Categories: Project Activity

Changeset [1475]: Initial version, way unfinished.

Trac Timeline - Tue, 05/01/2012 - 17:12

Initial version, way unfinished.

Categories: Project Activity

Ticket #841 (Codegen not creating [Collumn]Default constants properly) updated

Trac Timeline - Mon, 04/30/2012 - 16:57

Other adapters seem to be affected too. But, since I don't run those database adapters, I cannot test them.

Categories: Project Activity

Ticket #833 (QDraggable cannot take jQuery selector as Handle) updated

Trac Timeline - Fri, 04/27/2012 - 16:01

QCubed already requires that ids only be alpha numeric, even though html allows underscores and dashes. As far as wrapper controls, yes, it would prevent you from specifying a wrapper as a handle if you only gave it the control name. The easy workaround is to include the '#' on front of the wrapper id, as in '#myControl_ctl'.

The bigger question is if we detect that it is a QCubed control id because it is only alpha numeric, should we then look to see if that control has a wrapper and then use the wrapper instead as the handle. Not sure. Will require some testing.

Categories: Project Activity

Ticket #841 (Codegen not creating [Collumn]Default constants properly) created

Trac Timeline - Thu, 04/26/2012 - 23:55

Currently all database 'Gen' classes are being created with NULL defaults constants.

For example in our table, we have a column named UserName with a default of 'Guest'. In the TableNameGen class file, there is a constant being created named UserNameDefault being set to NULL. However, it should be set to 'Guest'.

I have a fix for MySqli adapter. Line 566 in QMySqliDatabase.class.php QMySqliDatabaseField::__construct(), add right after if ($objRow["Field"] == $this->strOriginalName) {

$this->strDefault = $objRow["Default"];

After adding this, we are able to use the constant TableName::UserNameDefault, and $objTableName->Initialize() works as expected.

I have to work on learning how to generate and upload a diff.

Categories: Project Activity

Ticket #179 (Cant stack multiple QDialog boxes on top of each other) closed

Trac Timeline - Tue, 04/24/2012 - 06:37
duplicate:

Dup of #816 which is fixed in 2.1.1

Categories: Project Activity

Ticket #834 (Allowing old plugins) updated

Trac Timeline - Sun, 04/22/2012 - 03:50
milestone changed
Categories: Project Activity