Re: [Aikiframework-devel] [Question #174954]: Can normal files run through AIKI

2011-10-18 Thread Bassel Safadi
the urls should look like:
http://localhost/aiki/assets/javascript/jquery/plugins/jstree/tree_component.css
not
http://localhost/aiki/?pretty=/assets/javascript/jquery/plugins/jstree/tree_component.css

since those files exist in the filesystem there is no need to call them via
aiki. actually adding ?pretty= will make the files not accessible since aiki
will not do any routing for files that exist.
you can't load the css files through aiki. why do you need to?

On Mon, Oct 17, 2011 at 11:30 PM, Jakub Jankiewicz <
question174...@answers.launchpad.net> wrote:

> New question #174954 on aikiframework:
> https://answers.launchpad.net/aikiframework/+question/174954
>
> I made few changes into aiki - cleaning the code and now changing class
> names to capitalized and filenames to match new class names so they can be
> properly loaded in runtime, everything is working but in Admin Panel I have
> errors when loading CSS files which runs through aiki:
>
>
> http://localhost/aiki/?pretty=/assets/javascript/jquery/plugins/jstree/tree_component.css
>
> http://localhost/aiki/?pretty=/assets/javascript/jquery/css/smoothness/jquery-ui-1.7.1.custom.css
> http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css
>
> Is those supposed to return the content of those files?
>
> --
> You received this question notification because you are a member of Aiki
> Framework Developers, which is an answer contact for aikiframework.
>
> ___
> Mailing list: https://launchpad.net/~aikiframework-devel
> Post to : aikiframework-devel@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~aikiframework-devel
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Bassel Safadi
http://bassel.ws
http://aikilab.org
Global +1 323-545-3855
Singapore +65 93488349
___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #174954]: Can normal files run through AIKI

2011-10-18 Thread Bassel Safadi
Question #174954 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/174954

Status: Open => Answered

Bassel Safadi proposed the following answer:
the urls should look like:
http://localhost/aiki/assets/javascript/jquery/plugins/jstree/tree_component.css
not
http://localhost/aiki/?pretty=/assets/javascript/jquery/plugins/jstree/tree_component.css

since those files exist in the filesystem there is no need to call them via
aiki. actually adding ?pretty= will make the files not accessible since aiki
will not do any routing for files that exist.
you can't load the css files through aiki. why do you need to?

On Mon, Oct 17, 2011 at 11:30 PM, Jakub Jankiewicz <
question174...@answers.launchpad.net> wrote:

> New question #174954 on aikiframework:
> https://answers.launchpad.net/aikiframework/+question/174954
>
> I made few changes into aiki - cleaning the code and now changing class
> names to capitalized and filenames to match new class names so they can be
> properly loaded in runtime, everything is working but in Admin Panel I have
> errors when loading CSS files which runs through aiki:
>
>
> http://localhost/aiki/?pretty=/assets/javascript/jquery/plugins/jstree/tree_component.css
>
> http://localhost/aiki/?pretty=/assets/javascript/jquery/css/smoothness/jquery-ui-1.7.1.custom.css
> http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css
>
> Is those supposed to return the content of those files?
>
> --
> You received this question notification because you are a member of Aiki
> Framework Developers, which is an answer contact for aikiframework.
>
> ___
> Mailing list: https://launchpad.net/~aikiframework-devel
> Post to : aikiframework-devel@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~aikiframework-devel
> More help   : https://help.launchpad.net/ListHelp
>


-- 
Bassel Safadi
http://bassel.ws
http://aikilab.org
Global +1 323-545-3855
Singapore +65 93488349

You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #174954]: Can normal files run through AIKI

2011-10-18 Thread Jakub Jankiewicz
Question #174954 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/174954

Status: Answered => Solved

Jakub Jankiewicz confirmed that the question is solved:
Thanks Bassel Safadi, that solved my question.

-- 
You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #174954]: Can normal files run through AIKI

2011-10-18 Thread Jakub Jankiewicz
Question #174954 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/174954

Jakub Jankiewicz posted a new comment:
I don't want to load them through aiki. Admin panel did this.

in InsertVariable-in.sql there is:



but in source code for admin panel there is

http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css"/>

In SQL there are other [root] but there are expended properly.

I'll report bug for this.

-- 
You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #174954]: Can normal files run through AIKI

2011-10-18 Thread Jakub Jankiewicz
Question #174954 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/174954

Linked to bug: #877304
https://bugs.launchpad.net/bugs/877304
"Aiki don't expand [root] properly in admin panel"

-- 
You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


[Aikiframework-devel] [Bug 877304] [NEW] Aiki don't expand [root] properly in admin panel

2011-10-18 Thread Jakub Jankiewicz
Public bug reported:

This is for Admin Panel for widget admin_javascript

in InsertVariable-in.sql there is:



the same in database but in source code for admin panel there is

http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css"/>

In the content of that widget there are others [root] but there are
expended properly and this is only for CSS.

** Affects: aikiframework
 Importance: Undecided
 Status: New

** Description changed:

  This is for Admin Panel for widget admin_javascript
  
  in InsertVariable-in.sql there is:
  
  
  
  the same in database but in source code for admin panel there is
  
  http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css"/>
  
- In SQL there are other [root] but there are expended properly this is
- only for CSS.
+ In the content of that widget there are others [root] but there are
+ expended properly and this is only for CSS.

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/877304

Title:
  Aiki don't expand [root] properly in admin panel

Status in Aiki Framework:
  New

Bug description:
  This is for Admin Panel for widget admin_javascript

  in InsertVariable-in.sql there is:

  

  the same in database but in source code for admin panel there is

  http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css"/>

  In the content of that widget there are others [root] but there are
  expended properly and this is only for CSS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/877304/+subscriptions

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


[Aikiframework-devel] [Bug 877542] [NEW] Aiki parse headers in admin panel content

2011-10-18 Thread Jakub Jankiewicz
Public bug reported:

If you create a widget with header location you will not be able to edit
that widget because in widget.php file it first call parsDBpars and then
parse_header

So in the widget "admin_tools/edit/" if you edit a widget that contain:
(#(header:Location: [root]/admin|false|301)#)
when it render "admin_tools/edit/" widget it first render
(#(header:Location: [root]/admin|false|301)#)
and then it parse the header in the widget content

This can be fixed in new admin panel.

** Affects: aikiframework
 Importance: High
 Status: Confirmed

** Changed in: aikiframework
   Importance: Undecided => High

** Changed in: aikiframework
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/877542

Title:
  Aiki parse headers in admin panel content

Status in Aiki Framework:
  Confirmed

Bug description:
  If you create a widget with header location you will not be able to
  edit that widget because in widget.php file it first call parsDBpars
  and then parse_header

  So in the widget "admin_tools/edit/" if you edit a widget that contain:
  (#(header:Location: [root]/admin|false|301)#)
  when it render "admin_tools/edit/" widget it first render
  (#(header:Location: [root]/admin|false|301)#)
  and then it parse the header in the widget content

  This can be fixed in new admin panel.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/877542/+subscriptions

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


[Aikiframework-devel] [Question #175108]: Can I delete this if statement

2011-10-18 Thread Jakub Jankiewicz
New question #175108 on aikiframework:
https://answers.launchpad.net/aikiframework/+question/175108

This will fix this bug: https://bugs.launchpad.net/aikiframework/+bug/877304

the code is in processVars function in aiki.php file, the code is as follow:

$pretty = $aiki->config->get('pretty_urls', 1);
$url = $aiki->config->get('url');
...
$bufferReplace = array (
...
'[root]'  => $url,
...
if ($pretty) {
/* TODO improve this*/  
$text = preg_replace(
'/href\=\"\[root\](.*)\"/U',
'href="[root]?pretty=\\1"', 
$text);
}

$text = strtr($text, $bufferReplace);

What is the purpose of that if statement?

-- 
You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #175108]: Can I delete this if statement

2011-10-18 Thread Jakub Jankiewicz
Question #175108 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/175108

Jakub Jankiewicz gave more information on the question:
Or changing the regex to '/]*href\=\"\[root\](.*)\"/U' or
'/https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


[Aikiframework-devel] [Bug 877304] Re: Aiki don't expand [root] properly in admin panel

2011-10-18 Thread Jakub Jankiewicz
** Changed in: aikiframework
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/877304

Title:
  Aiki don't expand [root] properly in admin panel

Status in Aiki Framework:
  New

Bug description:
  This is for Admin Panel for widget admin_javascript

  in InsertVariable-in.sql there is:

  

  the same in database but in source code for admin panel there is

  http://localhost/aiki/?pretty=/assets/javascript/codemirror/css/docs.css"/>

  In the content of that widget there are others [root] but there are
  expended properly and this is only for CSS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/877304/+subscriptions

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #175108]: Can I delete this if statement

2011-10-18 Thread rg1024
Question #175108 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/175108

Status: Open => Answered

rg1024 proposed the following answer:
first, it has a error

if ( !pretty).. (no pretty)

 now, it is easy to understand: if no pretty url  are disabled,  the last "if" 
converts every  http://www.aiki.org/foo/var"; ..
to http://www.aiki.org?pretty=foo/bar";>

Thanks jakub.

-- 
You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #175108]: Can I delete this if statement

2011-10-18 Thread rg1024
Question #175108 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/175108

rg1024 proposed the following answer:
the bug related can be corrected with you regexp. 
thanks again.

PD: now i can push changes...but the correction is
if (!$pretty) {
/* TODO improve this*/  
$text = preg_replace(
'/]*)href\s*=\s*(["\'])\[root\](.*)\\2/U',
'https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


[Aikiframework-devel] revno: 917

2011-10-18 Thread Jakub Jankiewicz
I finish cleaning the code and start changing the names of the classes
to capitalized camelcase and file names to match the class names so
they can be loaded from $aiki->Class the wiki need to be updated to
match new names.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp


Re: [Aikiframework-devel] [Question #175108]: Can I delete this if statement

2011-10-18 Thread Jakub Jankiewicz
Question #175108 on aikiframework changed:
https://answers.launchpad.net/aikiframework/+question/175108

Jakub Jankiewicz posted a new comment:
Consider this url for downloading javascript file

download
mysql.jquery.plugin.js

and it replace it with

http://www.aiki.org/?pretty=js/mysql.jquery.plugin.js";>download
mysql.jquery.plugin.js

and you can't download this file.

maybe add check if file don't exists or better if this url is used for
any widget.

-- 
You received this question notification because you are a member of Aiki
Framework Developers, which is an answer contact for aikiframework.

___
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : aikiframework-devel@lists.launchpad.net
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp