Giter VIP home page Giter VIP logo

xindi's People

Contributors

aliaspooryorik avatar serkantueten avatar simonbingham avatar sipacate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xindi's Issues

Add license to every file

Copyright 2012, Simon Bingham

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Invalid CFML construct

I download and installed it but got this error right out of the box . I'm running CF9, mysql 5.
Invalid CFML construct found on line 46 at column 81. ColdFusion was looking at the following text: [ The CFML compiler was processing: A script statement beginning with public on line 46, column 9. The error occurred in
F:\web-development\fw1-xindi\frameworks\org\corfield\framework.cfc: l
ine 46
44 : }
45 :
46 : public void function addRoute( any routes, string target, any methods = [ ], string statusCode = '' ) {
47 : if ( !isArray( routes ) ) routes = [ routes ];
48 : if ( !isArray( methods ) ) methods = [ methods ];

Filemanager not showing directories

Could you take a look at this please? Since we added the extension filter the file manager no longer shows directories and I can't figure out how to get them to show.

Use Bob Silverberg's populate method

<cffunction name="Init" access="Public" returntype="any" output="false" hint="I build a new object.">
    <cfset variables.Metadata = getMetadata(this) />
    <cfparam name="variables.Metadata.cleanseInput" default="false" />
    <cfset configure() />
    <cfreturn this />
</cffunction>

<cffunction name="populate" access="public" returntype="any" output="false" hint="Populates the object with values from the arguments">
    <cfargument name="data" type="any" required="yes" />
    <cfargument name="propList" type="any" required="no" default="#ArrayNew(1)#" />

    <cfloop array="#variables.Metadata.properties#" index="local.theProperty">
        <!--- If a propList was passed in, use it to filter --->
        <cfif NOT ArrayLen(arguments.propList) OR ArrayContains(arguments.propList,local.theProperty.name)>
            <!--- Do columns --->
            <cfif NOT StructKeyExists(local.theProperty,"fieldType") OR local.theProperty.fieldType EQ "column">
                <cfif StructKeyExists(arguments.data,local.theProperty.name)>
                    <!--- The property has a matching argument --->
                    <cfset local.varValue = arguments.data[local.theProperty.name] />
                    <!--- For nullable fields that are blank, set them to null --->
                    <cfif (NOT StructKeyExists(local.theProperty,"notNull") OR NOT local.theProperty.notNull) AND NOT Len(local.varValue)>
                        <cfset _setPropertyNull(local.theProperty.name) />
                    <cfelse>
                        <cfset _setProperty(local.theProperty.name,local.varValue) />
                    </cfif>
                </cfif>
            <!--- do many-to-one --->
            <cfelseif local.theProperty.fieldType EQ "many-to-one">
                <cfif StructKeyExists(arguments.data,local.theProperty.fkcolumn)>
                    <cfset local.fkValue = arguments.data[local.theProperty.fkcolumn] />
                <cfelseif StructKeyExists(arguments.data,local.theProperty.name)>
                    <cfset local.fkValue = arguments.data[local.theProperty.name] />
                </cfif>
                <cfif StructKeyExists(local,"fkValue")>
                    <cfset local.varValue = EntityLoadByPK(local.theProperty.name,local.fkValue) />
                    <cfif IsNull(local.varValue)>
                        <cfif NOT StructKeyExists(local.theProperty,"notNull") OR NOT local.theProperty.notNull>
                            <cfset _setPropertyNull(local.theProperty.name) />
                        <cfelse>
                            <cfthrow detail="Trying to load a null into the #local.theProperty.name#, but it doesn't accept nulls." />
                        </cfif>
                    <cfelse>
                        <cfset _setProperty(local.theProperty.name,local.varValue) />
                    </cfif>
                </cfif>
            </cfif>
        </cfif>
    </cfloop>
</cffunction>

<!--- These private methods are used by the populate() method --->

<cffunction name="_setProperty" access="private" returntype="void" output="false" hint="I set a dynamically named property">
    <cfargument name="name" type="any" required="yes" />
    <cfargument name="value" type="any" required="false" />
    <cfset var theMethod = this["set" & arguments.name] />
    <cfif IsNull(arguments.value)>
        <cfset theMethod(javacast('NULL', '')) />
    <cfelse>
        <cfset theMethod(arguments.value) />
    </cfif>
</cffunction>

<cffunction name="_setPropertyNull" access="private" returntype="void" output="false" hint="I set a dynamically named property to null">
    <cfargument name="name" type="any" required="yes" />
    <cfset _setProperty(arguments.name) />
</cffunction>

Database Issues

What?

  1. The setup.sql fails if you cannot create a database with the name xindi. This is unable to be changed with some hosting providers (e.g. HostMediaUK).

Solution?

  1. Custom file (possibly XML, JSON) with details of the SQL Server, which is protected by the web server (Apache, IIS) or ColdFusion (Application.cfc!). Setup page which writes this file. This is similar to how WordPress does it. Will attempt :)

Invalid CFML construct

I download and installed it but got this error right out of the box. I'm running CF8, mysql 5.

Invalid CFML construct found on line 46 at column 81.

ColdFusion was looking at the following text:
[

The CFML compiler was processing:

A script statement beginning with public on line 46, column 9.

The error occurred in F:\web-development\fw1-xindi\frameworks\org\corfield\framework.cfc: line 46
44 : }
45 :
46 : public void function addRoute( any routes, string target, any methods = [ ], string statusCode = '' ) {
47 : if ( !isArray( routes ) ) routes = [ routes ];
48 : if ( !isArray( methods ) ) methods = [ methods ];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.