Dragonfly 0.60 Released!

Started by itistoday, January 06, 2010, 08:37:55 AM

Previous topic - Next topic

itistoday

Hey Dragonfly Fans - A New Year's present for you!



http://code.google.com/p/dragonfly-newlisp/downloads/list">Dragonfly 0.60 Is Now Available For Download!



Check out the http://www.rundragonfly.com/changes">complete list of changes, highlights include:



[*] Dragonfly DB Interface included as a plugin
  • [*] Objective newLISP included as part of the core

  • [*] New handy DF_SELF, DF_PAGE and DF_SELF_DIR global variables

  • [*] New route Route.CGI! (inactive by default)

  • [*] New file path manipulation functions: file-ext del-ext basename dirname

  • [*] DF:viewname removed, use DF_SELF or DF_PAGE + new path functions as replacements

  • [*] Request:urlencode/decode functions now properly handle UTF8 characters (renamed to utf8-urlencode/utf8-urldecode)
  • [/list]


    If you've written your own routes, be sure to update them to use the new SET_DF_SELF function as http://www.rundragonfly.com/dragonfly_create_routes">described in the updated guide.



    Enjoy, and check out the http://www.rundragonfly.com/dragonfly_welcome">updated user guide, which now contains several new sections and now comes with syntax highlighting*! :-)



    * If you don't see it, refresh the site to clear your cache.
    Get your Objective newLISP groove on.

    cormullion

    #1
    Cool - I will let you know how the upgrade goes over the next few days... :)



    Are you using the ObjNL anywhere, or is it just there for the DB interface?

    itistoday

    #2
    Quote from: "cormullion"Cool - I will let you know how the upgrade goes over the next few days... :)



    Are you using the ObjNL anywhere, or is it just there for the DB interface?


    It's just there for the DB interface, and to allow you to easily implement object-oriented code in your Dragonfly web apps.
    Get your Objective newLISP groove on.

    cormullion

    #3
    Upgrade seemed to go well - I think I found most of the files that needed replacing. I want to get round to ObjNL some time, but at least it's now in place.

    cormullion

    #4
    There's something odd going on on my computer:



    1 Download Dragonfly 0.60 from rundragonfly.

    2 cd to example site.

    3 Run server ./newlispServer

    4 go to localhost:8080. Everything is OK.

    5 Stop server in terminal.

    6 Restart server.

    7 go to localhost:8080. Error:



    ERR: missing argument in function set

    called from user defined function load-once

    called from user defined function load-files-in-dir



    8 quit and restart Safari and server

    9 Everything is OK again.



    I'm using Safari/Snow Leopard 10.6.2/. I'm trying to investigate this weirdness, but any clues as to where to look would be helpful...

    itistoday

    #5
    That's odd, I've tried but I haven't been able to reproduce this. Try re-downloading a fresh copy perhaps?



    I'm not really sure what to suggest other than that. If anyone else is seeing this let us know!
    Get your Objective newLISP groove on.

    cormullion

    #6
    Tried with a new download, same thing. Since the only thing I'm doing is Ctrl-C -ing the server process, perhaps the problem's related to that. But I don't understand the error



    "ERR: missing argument in function set

    called from user defined function load-once

    called from user defined function load-files-in-dir"



    - like there's some file/directory error somewhere...?



    wait...



    Ah - this only happens with Safari!! Opera and Firefox are fine. Only Safari does it every time...

    itistoday

    #7
    Quote from: "cormullion"Ah - this only happens with Safari!! Opera and Firefox are fine. Only Safari does it every time...


    I'm still not able to reproduce this unfortunately, even after clearing Safari's cache. :-(
    Get your Objective newLISP groove on.

    cormullion

    #8
    After a bit more investigation, it seems that it's the second and subsequent pages which generate that error; the first one I load loads OK. I don't need to restart the server to see the error. No problems in Firefox, Opera, or Chrome. Conclusion - a weird Safari bug only on my machine that affects only locally-hosted Dragonfly sites... Weird!

    Hexs

    #9
    Thanks for this interesting thing. But when I begin use it, I don't understand, how protect my configuration files without Apache. My .htaccess contains:


    <Files ~ ".lsp$">
    Order deny,allow
    Deny from all
    </Files>


    but when I request sitename/dragonfly-framework/config.lsp for example...

    I see it :(

    itistoday

    #10
    That's odd, that should protect it. Is it possible that your .htaccess file isn't being read in at all by Apache?



    Try adding some obviously broken stuff and see if that causes 500 Internal Server errors.
    Get your Objective newLISP groove on.

    Hexs

    #11
    If I don't use Apache, how I can make .lsp (or other) files unreadable from stangers?

    itistoday

    #12
    Quote from: "Hexs"If I don't use Apache, how I can make .lsp (or other) files unreadable from stangers?


    You'll have to consult the documentation for whatever server you're using.
    Get your Objective newLISP groove on.

    Hexs

    #13
    QuoteYou'll have to consult the documentation for whatever server you're using.


    Nothing :). Dragonfly only.

    itistoday

    #14
    Quote from: "Hexs"Nothing :). Dragonfly only.


    Dragonfly isn't a server though. Dragonfly is a web framework. It runs on top of a server. For example, it could run on top of the newLISP server, which may be what you're referring to, however the newLISP web server should never be used to host a real live site, it's just useful for testing purposes.
    Get your Objective newLISP groove on.